[vala/0.50] glib-2.0: Add return codes to FileStream.putc/puts(), like posix
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.50] glib-2.0: Add return codes to FileStream.putc/puts(), like posix
- Date: Fri, 23 Oct 2020 14:19:33 +0000 (UTC)
commit 64fe4144c96b0e24ff101f6f030df80299928a72
Author: Reuben Thomas <rrt sc3d org>
Date: Wed Oct 21 21:59:41 2020 +0200
glib-2.0: Add return codes to FileStream.putc/puts(), like posix
The corresponding C functions return a status code; make the GLib types
the same as the Posix types.
This gives these functions the correct type signature for use where a
putc-like function is required.
vapi/glib-2.0.vapi | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi
index ec15fef92..d024eb294 100644
--- a/vapi/glib-2.0.vapi
+++ b/vapi/glib-2.0.vapi
@@ -3800,9 +3800,9 @@ namespace GLib {
[CCode (cname = "vfprintf")]
public void vprintf (string format, va_list args);
[CCode (cname = "fputc", instance_pos = -1)]
- public void putc (char c);
+ public int putc (char c);
[CCode (cname = "fputs", instance_pos = -1)]
- public void puts (string s);
+ public int puts (string s);
[CCode (cname = "fgetc")]
public int getc ();
[CCode (cname = "ungetc", instance_pos = -1)]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]