]> gitweb.factorcode.org Git - factor.git/commitdiff
change typedef of gboolean (gint with automatic boxing/unboxing to/from factor's...
authorAnton Gorenko <ex.rzrjck@gmail.com>
Mon, 24 May 2010 13:47:16 +0000 (19:47 +0600)
committerAnton Gorenko <ex.rzrjck@gmail.com>
Mon, 24 May 2010 13:47:16 +0000 (19:47 +0600)
basis/glib/glib.factor

index 903915be9916bb82652fa8ea14dcbff634d743f4..454484c6a1864588f5bb9d0539a98556ccf3bc31 100644 (file)
@@ -1,7 +1,7 @@
 ! Copyright (C) 2009 Anton Gorenko.
 ! See http://factorcode.org/license.txt for BSD license.
-USING: alien alien.c-types alien.libraries alien.syntax combinators gir
-kernel system vocabs.parser words ;
+USING: accessors alien alien.c-types alien.libraries alien.syntax
+combinators compiler.units gir kernel system vocabs.parser words ;
 
 <<
 "glib" {
@@ -23,7 +23,15 @@ TYPEDEF: long glong
 TYPEDEF: ulong gulong
 TYPEDEF: int gint
 TYPEDEF: uint guint
-TYPEDEF: bool gboolean
+
+SYMBOL: gboolean
+<<
+gint c-type clone
+    [ >c-bool ] >>unboxer-quot
+    [ c-bool> ] >>boxer-quot
+    object >>boxed-class
+gboolean typedef
+>>
 
 TYPEDEF: char gint8
 TYPEDEF: uchar guint8