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