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"
28 typedef struct _attr_t attr_t;
29 typedef struct _type_t type_t;
30 typedef struct _typeref_t typeref_t;
31 typedef struct _var_t var_t;
32 typedef struct _func_t func_t;
34 #define DECL_LINK(type) \
38 #define LINK(x,y) do { x->l_next = y; if (y) y->l_prev = x; } while (0)
39 #define LINK_LAST(x,y) do { if (y) { attr_t *_c = x; while (_c->l_next) _c = _c->l_next; LINK(_c, y); } } while (0)
40 #define LINK_SAFE(x,y) do { if (x) LINK_LAST(x,y); else { x = y; } } while (0)
42 #define INIT_LINK(x) do { x->l_next = NULL; x->l_prev = NULL; } while (0)
43 #define NEXT_LINK(x) ((x)->l_next)
44 #define PREV_LINK(x) ((x)->l_prev)
102 /* parser-internal */
111 /* parser-internal */