vala r815 - in trunk: . vapi
- From: juergbi svn gnome org
- To: svn-commits-list gnome org
- Subject: vala r815 - in trunk: . vapi
- Date: Wed, 9 Jan 2008 21:54:26 +0000 (GMT)
Author: juergbi
Date: Wed Jan 9 21:54:25 2008
New Revision: 815
URL: http://svn.gnome.org/viewvc/vala?rev=815&view=rev
Log:
2008-01-09 Juerg Billeter <j bitron ch>
* vapi/glib-2.0.vapi: add size_t and ssize_t
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 Wed Jan 9 21:54:25 2008
@@ -173,6 +173,34 @@
}
[SimpleType]
+[CCode (cname = "gsize", cheader_filename = "glib.h", type_id = "G_TYPE_ULONG", marshaller_type_name = "ULONG", get_value_function = "g_value_get_ulong", set_value_function = "g_value_set_ulong", default_value = "0UL")]
+[IntegerType (rank = 15)]
+public struct size_t {
+ [CCode (cname = "0UL")]
+ public static ulong MIN;
+ [CCode (cname = "G_MAXSIZE")]
+ public static ulong MAX;
+
+ [InstanceLast]
+ [CCode (cname = "g_strdup_printf")]
+ public string! to_string (string! format = "%zu");
+}
+
+[SimpleType]
+[CCode (cname = "gssize", cheader_filename = "glib.h", type_id = "G_TYPE_LONG", marshaller_type_name = "LONG", get_value_function = "g_value_get_long", set_value_function = "g_value_set_long", default_value = "0L")]
+[IntegerType (rank = 14)]
+public struct ssize_t {
+ [CCode (cname = "G_MINSSIZE")]
+ public static long MIN;
+ [CCode (cname = "G_MAXSSIZE")]
+ public static long MAX;
+
+ [InstanceLast]
+ [CCode (cname = "g_strdup_printf")]
+ public string! to_string (string! format = "%zi");
+}
+
+[SimpleType]
[CCode (cname = "gint8", cheader_filename = "glib.h", type_id = "G_TYPE_CHAR", marshaller_type_name = "CHAR", get_value_function = "g_value_get_char", set_value_function = "g_value_set_char", default_value = "0")]
[IntegerType (rank = 3)]
public struct int8 {
@@ -186,7 +214,7 @@
}
[SimpleType]
-[CCode (cname = "guint8", cheader_filename = "glib.h", default_value = "0U")]
+[CCode (cname = "guint8", cheader_filename = "glib.h", type_id = "G_TYPE_UCHAR", marshaller_type_name = "UCHAR", get_value_function = "g_value_get_uchar", set_value_function = "g_value_set_uchar", default_value = "0U")]
[IntegerType (rank = 4)]
public struct uint8 {
[CCode (cname = "0U")]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]