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
24 #include <host/typedefs.h>
25 #define S_OK ((HRESULT)0x00000000L)
26 #define S_FALSE ((HRESULT)0x00000001L)
27 #define E_OUTOFMEMORY ((HRESULT)0x8007000EL)
28 #define TYPE_E_IOERROR ((HRESULT)0x80028CA2L)
32 #include "wine/rpcfc.h"
39 typedef struct _attr_t attr_t
;
40 typedef struct _expr_t expr_t
;
41 typedef struct _type_t type_t
;
42 typedef struct _typeref_t typeref_t
;
43 typedef struct _var_t var_t
;
44 typedef struct _func_t func_t
;
45 typedef struct _ifref_t ifref_t
;
46 typedef struct _typelib_entry_t typelib_entry_t
;
47 typedef struct _importlib_t importlib_t
;
48 typedef struct _importinfo_t importinfo_t
;
49 typedef struct _typelib_t typelib_t
;
51 #define DECL_LINK(type) \
55 #define LINK(x,y) do { x->l_next = y; if (y) y->l_prev = x; } while (0)
57 #define INIT_LINK(x) do { x->l_next = NULL; x->l_prev = NULL; } while (0)
58 #define NEXT_LINK(x) ((x)->l_next)
59 #define PREV_LINK(x) ((x)->l_prev)
61 #define END_OF_LIST(list) \
64 while (NEXT_LINK(list)) \
65 list = NEXT_LINK(list); \
82 ATTR_DEFAULTVALUE_EXPR
,
83 ATTR_DEFAULTVALUE_STRING
,
97 ATTR_HELPSTRINGCONTEXT
,
104 ATTR_IMPLICIT_HANDLE
,
166 TKIND_PRIMITIVE
= -1,
184 /* parser-internal */
195 const typeref_t
*tref
;
200 /* parser-internal */
210 func_t
*funcs
; /* interfaces and modules */
211 var_t
*fields
; /* interfaces, structures and enumerations */
212 ifref_t
*ifaces
; /* coclasses */
213 int ignore
, is_const
, sign
;
214 int defined
, written
, user_types_registered
;
216 /* parser-internal */
231 var_t
*args
; /* for function pointers */
236 /* parser-internal */
245 /* parser-internal */
253 /* parser-internal */
257 struct _typelib_entry_t
{
267 DECL_LINK(typelib_entry_t
);
270 struct _importinfo_t
{
278 importlib_t
*importlib
;
281 struct _importlib_t
{
287 importinfo_t
*importinfos
;
292 DECL_LINK(importlib_t
);
299 typelib_entry_t
*entry
;
300 importlib_t
*importlibs
;