alternative to assert
[gtkD.git] / wrap / APILookup.txt
blob6f48046928edcdf4611128a294a9a69d59c90fb8
2 # This file is part of duit.
3
4 # duit is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU Lesser General Public License as published by
6 # the Free Software Foundation; either version 2.1 of the License, or
7 # (at your option) any later version.
8
9 # duit is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 # GNU Lesser General Public License for more details.
13
14 # You should have received a copy of the GNU Lesser General Public License
15 # along with duit; if not, write to the Free Software
16 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
20 # define the license to use
21 license: start
23  * This file is part of duit.
24  *
25  * duit is free software; you can redistribute it and/or modify
26  * it under the terms of the GNU Lesser General Public License as published by
27  * the Free Software Foundation; either version 2.1 of the License, or
28  * (at your option) any later version.
29  *
30  * duit is distributed in the hope that it will be useful,
31  * but WITHOUT ANY WARRANTY; without even the implied warranty of
32  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
33  * GNU Lesser General Public License for more details.
34  *
35  * You should have received a copy of the GNU Lesser General Public License
36  * along with duit; if not, write to the Free Software
37  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
38  */
40 // generated automatically - do not change
41 // find conversion definition on APILookup.txt
42 // implement new conversion functionalities on the wrap.utils pakage
45 license: end
47 includeComments: y
49 # defines the simple token substitution
50 # TODO allow to create real aliases on the code and simple static token replacement
51 alias: const
52 alias: volatile
53 alias: G_CONST_RETURN
54 alias: gint int
55 alias: guint uint
56 alias: gboolean int
57 alias: gpointer void*
58 alias: gconstpointer void*
59 alias: gchar char
60 alias: gchar*char[]
61 alias: gchar* char[]
62 alias: guchar char
63 alias: gshort short
64 alias: gushort ushort
65 alias: glong int
66 alias: gulong uint
67 alias: gint8 byte
68 alias: guint8 byte
69 alias: gint16 short
70 alias: guint16 ushort
71 alias: gint32 int
72 alias: gint64 long
73 alias: guint32 uint
74 alias: guint64 ulong
75 alias: gfloat float
76 alias: gdouble double
77 alias: gsize uint
78 alias: gssize int
79 alias: va_list void*
80 alias: unichar dchar
81 alias: unichar2 wchar
82 alias: uchar ubyte
84 #alias: gunichar dchar
85 #alias: gunichar2 wchar
87 alias: size_t int
88 alias: time_t uint
89 alias: tm* void*
91 alias: function funct
92 alias: Function Funct
93 alias: default defaulx
94 alias: foreach foreac
95 alias: package p
96 alias: delete delet
97 alias: module modul
98 alias: instance instanc
99 alias: union unio
100 alias: version versio
101 alias: in inn
103 alias: GLIB_SYSDEF_POLLIN =1
104 alias: GLIB_SYSDEF_POLLOUT =4
105 alias: GLIB_SYSDEF_POLLPRI =2
106 alias: GLIB_SYSDEF_POLLHUP =16
107 alias: GLIB_SYSDEF_POLLERR =8
108 alias: GLIB_SYSDEF_POLLNVAL =32
110 # ok, I'm not sure how to do this but I need to know the enum type for some enum entries
111 enumType: G_TOKEN_LAST TokenType.LAST
112 enumType: G_SIGNAL_RUN_FIRST SignalFlags.RUN_FIRST
113 enumType: G_SIGNAL_RUN_LAST SignalFlags.RUN_LAST
114 enumType: G_SIGNAL_NO_RECURSE SignalFlags.NO_RECURSE
115 enumType: G_SIGNAL_ACTION SignalFlags.ACTION
116 enumType: G_SIGNAL_NO_HOOKS SignalFlags.NO_HOOKS
117 enumType: G_PARAM_READABLE ParamFlags.READABLE
118 enumType: G_PARAM_WRITABLE ParamFlags.WRITABLE
119 enumType: G_PARAM_CONSTRUCT ParamFlags.CONSTRUCT
120 enumType: G_PARAM_CONSTRUCT_ONLY ParamFlags.CONSTRUCT_ONLY
123 # define the lookup and destination directories
124 # "src" and "obj" will be added to outputRoot
125 inputRoot: /home/ruimt/data/down/GTK/API/
126 outputRoot: /home/ruimt/devel/D/Duit/trunk/
128 # define the packages to process
129 package: glib glib
130 package: gthread gthread
131 package: gobject gobject
132 package: cairo cairoLib
133 package: pango pango
134 package: atk atk
135 package: gdk-pixbuf gdkpixbuf
136 package: gdk gdk
137 package: gtk gtk
138 package: glgdk glgdk
139 package: glgtk glgtk
140 # define other packages to create
141 src: lib
143 # define package by package, file by file
144 # sections with extra definitions for the typedefs.d package file
145 # these sections start with "<token>: start"
146 # and end with "<token>: end"
147 # addTypedefs   // any definition on the top of the file
148 # addAliases    // aliases definitions 
149 # addEnums      // enum definitions 
150 # addStructs    // struct definitions 
151 # addTypes      // type definitions 
152 # addFuncts     // functs definitions 
153 # addUnions     // unions definitions 
154 # addConstants  // constants definitions 
156 # wrap: the current package
157 # file: the current file - must be the first no a new processing group
158 # struct: the main strcuture to be wrapped
159 # nostruct: the structs not to declare (probably will be declared on another file)
160 # class: - the output class (empty when output is not a class)
161 #          More then one class is valid but each class needs a correspondent prefix
162 # prefix: - the gtk prefix that members to include (and to be omited)
163 #          More then one prefix is valid and at least ont prefix must exist pre class
164 # noPrefix: Do not include functions that start with the prefix
165 # alias: define a local alias table
166 # import: create import
167 # strcutWrap: the strcut to wrap/unwrap in a Duit class
168 # outFile: the output file - need to be present to write the source code out
171 ###########################################################
172 ### predifined: lib
173 ###########################################################
174 wrap: lib
176 copy: paths.d
177 copy: Loader.d
179 lookup: APILookupGLib.txt
180 lookup: APILookupGThread.txt
181 lookup: APILookupGObject.txt
182 lookup: APILookupCairo.txt
183 lookup: APILookupPango.txt
184 lookup: APILookupAtk.txt
185 lookup: APILookupGdkPixbuf.txt
186 lookup: APILookupGdk.txt
187 lookup: APILookupGtk.txt
188 lookup: APILookupGLd.txt
189 lookup: APILookupGLt.txt
191 htod: wrap/HTODopenGL.txt