parser state
More...
Go to the source code of this file.
parser state
Definition in file pp.h.
◆ PP
◆ PPState
◆ pptype
Enumerator |
---|
pptype_file | |
pptype_arg | |
pptype_handle | |
Definition at line 8 of file pp.h.
◆ free_pp()
ANN void free_pp |
( |
MemPool | p, |
|
|
PP * | pp, |
|
|
void * | data ) |
Definition at line 38 of file pp.c.
38 {
40 vector_release(&pp->
state);
43 mp_free(p, Hash, pp->
macros);
44 vector_release(&pp->
data);
46}
static void pp_post(PP *pp, void *data)
struct Vector_ global_undef
◆ new_pp()
ANEW PP * new_pp |
( |
MemPool | p, |
|
|
const uint | size, |
|
|
const char * | name ) |
Definition at line 11 of file pp.c.
11 {
12 PP *pp = (
PP *)mp_calloc(p,
PP);
13 vector_init(&pp->
data);
14 pp->
macros = (Hash)mp_calloc(p, Hash);
17 vector_init(&pp->
state);
22 vector_add(&pp->
state, (vtype)pps);
23 return pp;
24}
ANN void pos_ini(pos_t *pos)
ANN PPState * new_ppstate(MemPool p, const char *filename)
◆ new_ppstate()
ANN PPState * new_ppstate |
( |
MemPool | p, |
|
|
const char * | name ) |
Definition at line 5 of file pp.c.
5 {
8 return ppstate;
9};