From: Reuben Thomas Date: Wed, 21 Oct 2020 19:59:41 +0000 (+0200) Subject: glib-2.0: Add return codes to FileStream.putc/puts(), like posix X-Git-Tag: 0.51.1~202 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0695f9e52a7ab5eece7f18dd1047d5dc050bc953;p=thirdparty%2Fvala.git 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. --- 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)]