From: Jürg Billeter Date: Thu, 14 Oct 2010 13:51:28 +0000 (+0200) Subject: glib-2.0: Add ungetc binding X-Git-Tag: 0.11.1~113 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7e1be2bba97a82b6dcbe5e2262b8b22ec8a66ff7;p=thirdparty%2Fvala.git glib-2.0: Add ungetc binding Fixes bug 629665. --- diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi index 705f9dcd5..a4191e4e3 100644 --- a/vapi/glib-2.0.vapi +++ b/vapi/glib-2.0.vapi @@ -2826,6 +2826,8 @@ namespace GLib { public void puts (string s); [CCode (cname = "fgetc")] public int getc (); + [CCode (cname = "ungetc", instance_pos = -1)] + public int ungetc (int c); [CCode (cname = "fgets", instance_pos = -1)] public unowned string gets (char[] s); [CCode (cname = "feof")]