My Project
Loading...
Searching...
No Matches
pp.h
Go to the documentation of this file.
1
4
5#ifndef __PP
6#define __PP
7
12
13typedef struct PPState_ {
14 void *state;
15 union {
17 void * data;
18 };
19 char* filename;
23
24typedef struct PP_ {
25 struct Vector_ state;
26 struct Hash_ * macros;
27 struct Vector_ global_undef;
28 struct Macro_ *entry;
29 struct Vector_ data;
30 int npar;
32
33ANN PPState *new_ppstate(MemPool, char *name);
34ANEW PP *new_pp(MemPool p, const uint size, char *name);
35ANN void free_pp(MemPool p, PP *pp, void *data);
36#endif
struct loc_t_ loc_t
Definition absyn.h:355
struct MacroArg_ * MacroArg
Definition macro.h:8
struct PP_ PP
pptype
Definition pp.h:8
@ pptype_handle
Definition pp.h:10
@ pptype_arg
Definition pp.h:9
struct PPState_ PPState
ANN PPState * new_ppstate(MemPool, char *name)
Definition pp.c:5
ANN void free_pp(MemPool p, PP *pp, void *data)
Definition pp.c:38
ANEW PP * new_pp(MemPool p, const uint size, char *name)
Definition pp.c:11
Definition macro.h:22
Definition pp.h:13
void * state
Definition pp.h:14
enum pptype type
Definition pp.h:21
void * data
Definition pp.h:17
char * filename
Definition pp.h:19
MacroArg arg
Definition pp.h:16
loc_t loc
Definition pp.h:20
Definition pp.h:24
struct Hash_ * macros
Definition pp.h:26
struct Macro_ * entry
Definition pp.h:28
struct Vector_ global_undef
Definition pp.h:27
int npar
Definition pp.h:30
struct Vector_ state
Definition pp.h:25
struct Vector_ data
Definition pp.h:29