[vala/staging] 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/staging] glib-2.0: Add return codes to FileStream.putc/puts(), like posix
- Date: Wed, 21 Oct 2020 20:01:50 +0000 (UTC)
commit 0695f9e52a7ab5eece7f18dd1047d5dc050bc953
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]