From: Juerg Billeter Date: Fri, 2 May 2008 19:31:06 +0000 (+0000) Subject: fix g_rand*_int and g_rand*_double bindings, patch Ondrej Jirman, fixes X-Git-Tag: VALA_0_3_2~50 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4e781d6b111cdcc359fbf1c796abae225dc0b346;p=thirdparty%2Fvala.git fix g_rand*_int and g_rand*_double bindings, patch Ondrej Jirman, fixes 2008-05-02 Juerg Billeter * vapi/glib-2.0.vapi: fix g_rand*_int and g_rand*_double bindings, patch Ondrej Jirman, fixes bug 530207 svn path=/trunk/; revision=1333 --- diff --git a/ChangeLog b/ChangeLog index ae7f23a48..cb377c51a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-05-02 Jürg Billeter + + * vapi/glib-2.0.vapi: fix g_rand*_int and g_rand*_double bindings, + patch Ondrej Jirman, fixes bug 530207 + 2008-05-02 Jürg Billeter * gobject-introspection/scanner.c: (g_igenerator_add_symbol): diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi index 210835615..2fa39e1d1 100644 --- a/vapi/glib-2.0.vapi +++ b/vapi/glib-2.0.vapi @@ -1690,8 +1690,10 @@ namespace GLib { [NoArrayLength ()] public void set_seed_array (uint32[] seed, uint seed_length); public bool boolean (); + [CCode (cname = "g_rand_int")] public uint32 next_int (); public int32 int_range (int32 begin, int32 end); + [CCode (cname = "g_rand_double")] public double next_double (); public double double_range (double begin, double end); } @@ -1699,8 +1701,10 @@ namespace GLib { public static class Random { public static void set_seed (uint32 seed); public static bool boolean (); + [CCode (cname = "g_random_int")] public static uint32 next_int (); public static int32 int_range (int32 begin, int32 end); + [CCode (cname = "g_random_double")] public static double next_double (); public static double double_range (double begin, double end); }