vala r1333 - in trunk: . vapi
- From: juergbi svn gnome org
- To: svn-commits-list gnome org
- Subject: vala r1333 - in trunk: . vapi
- Date: Fri, 2 May 2008 20:31:06 +0100 (BST)
Author: juergbi
Date: Fri May 2 19:31:06 2008
New Revision: 1333
URL: http://svn.gnome.org/viewvc/vala?rev=1333&view=rev
Log:
2008-05-02 Juerg Billeter <j bitron ch>
* vapi/glib-2.0.vapi: fix g_rand*_int and g_rand*_double bindings,
patch Ondrej Jirman, fixes bug 530207
Modified:
trunk/ChangeLog
trunk/vapi/glib-2.0.vapi
Modified: trunk/vapi/glib-2.0.vapi
==============================================================================
--- trunk/vapi/glib-2.0.vapi (original)
+++ trunk/vapi/glib-2.0.vapi Fri May 2 19:31:06 2008
@@ -1690,8 +1690,10 @@
[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 @@
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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]