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