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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 #ifndef __WIDL_WIDLTYPES_H
22 #define __WIDL_WIDLTYPES_H
26 #include "wine/rpcfc.h"
36 #define LOWORD(l) ((unsigned short)(l))
37 #define HIWORD(l) ((unsigned short)((unsigned long)(l) >> 16))
38 #define MAKELONG(low,high) ((unsigned long)(((unsigned short)(low)) | (((unsigned long)((unsigned short)(high))) << 16)))
40 typedef struct _attr_t attr_t
;
41 typedef struct _expr_t expr_t
;
42 typedef struct _type_t type_t
;
43 typedef struct _typeref_t typeref_t
;
44 typedef struct _var_t var_t
;
45 typedef struct _func_t func_t
;
46 typedef struct _ifref_t ifref_t
;
47 typedef struct _class_t class_t
;
49 #define DECL_LINK(type) \
53 #define LINK(x,y) do { x->l_next = y; if (y) y->l_prev = x; } while (0)
55 #define INIT_LINK(x) do { x->l_next = NULL; x->l_prev = NULL; } while (0)
56 #define NEXT_LINK(x) ((x)->l_next)
57 #define PREV_LINK(x) ((x)->l_prev)
129 /* parser-internal */
145 /* parser-internal */
157 int ignore
, is_const
, sign
;
158 int defined
, written
;
160 /* parser-internal */
175 var_t
*args
; /* for function pointers */
181 /* parser-internal */
190 /* parser-internal */
198 /* parser-internal */
207 /* parser-internal */