[vala/0.40] glib-2.0: Add return codes to FileStream.putc/puts(), like posix



commit 465cef64805afcc87d98df349a4bb6167bc9914f
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 ce2df7039..221e48f5b 100644
--- a/vapi/glib-2.0.vapi
+++ b/vapi/glib-2.0.vapi
@@ -3648,9 +3648,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]