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.40.25~34 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=465cef64805afcc87d98df349a4bb6167bc9914f;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 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)]