4 * Copyright 2002 Ove Kaaven
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
21 #ifndef __WIDL_WIDLTYPES_H
22 #define __WIDL_WIDLTYPES_H
26 #include "wine/rpcfc.h"
27 #include "wine/list.h"
37 typedef struct _attr_t attr_t;
38 typedef struct _expr_t expr_t;
39 typedef struct _type_t type_t;
40 typedef struct _typeref_t typeref_t;
41 typedef struct _var_t var_t;
42 typedef struct _func_t func_t;
43 typedef struct _ifref_t ifref_t;
44 typedef struct _typelib_entry_t typelib_entry_t;
45 typedef struct _importlib_t importlib_t;
46 typedef struct _importinfo_t importinfo_t;
47 typedef struct _typelib_t typelib_t;
49 typedef struct list attr_list_t;
50 typedef struct list str_list_t;
51 typedef struct list func_list_t;
52 typedef struct list expr_list_t;
53 typedef struct list var_list_t;
54 typedef struct list ifref_list_t;
55 typedef struct list array_dims_t;
70 ATTR_DEFAULTVALUE_EXPR,
71 ATTR_DEFAULTVALUE_STRING,
85 ATTR_HELPSTRINGCONTEXT,
154 TKIND_PRIMITIVE = -1,
166 struct str_list_entry_t
178 /* parser-internal */
189 const typeref_t *tref;
194 /* parser-internal */
203 const attr_list_t *attrs;
204 func_list_t *funcs; /* interfaces and modules */
205 var_list_t *fields; /* interfaces, structures and enumerations */
206 ifref_list_t *ifaces; /* coclasses */
207 type_t *orig; /* dup'd types */
208 int ignore, is_const, sign;
209 int defined, written, user_types_registered;
224 var_list_t *args; /* for function pointers */
229 /* parser-internal */
238 /* parser-internal */
246 /* parser-internal */
250 struct _typelib_entry_t {
255 struct _importinfo_t {
263 importlib_t *importlib;
266 struct _importlib_t {
272 importinfo_t *importinfos;
285 struct list importlibs;
288 void init_types(void);
290 type_t *duptype(type_t *t, int dupname);
291 type_t *alias(type_t *t, const char *name);
293 int is_ptr(const type_t *t);
294 int is_var_ptr(const var_t *v);
295 int cant_be_null(const var_t *v);