Data Structures |
| struct | includelogicentry_t |
| struct | marg_t |
| struct | mtext_t |
| struct | pp_entry_t |
| struct | include_state_t |
| struct | cval_t |
| struct | pp_status |
Defines |
| #define | MAXIFSTACK 64 /* If this isn't enough you should alter the source... */ |
| #define | SIZE_CHAR 1 |
| #define | SIZE_SHORT 2 |
| #define | SIZE_INT 3 |
| #define | SIZE_LONG 4 |
| #define | SIZE_LONGLONG 5 |
| #define | SIZE_MASK 0x00ff |
| #define | FLAG_SIGNED 0x0100 |
| #define | __attribute__(x) /*nothing*/ |
Typedefs |
| typedef long | wrc_sll_t |
| typedef unsigned long | wrc_ull_t |
Enumerations |
| enum | def_arg_t { arg_single,
arg_list
} |
| enum | def_exp_t { exp_text,
exp_concat,
exp_stringize,
exp_subst
} |
| enum | def_type_t { def_none,
def_define,
def_macro,
def_special
} |
| enum | pp_if_state_t {
if_false,
if_true,
if_elif,
if_elsefalse,
if_elsetrue,
if_ignore,
if_error
} |
| enum | ctype_t {
cv_sint = SIZE_INT + FLAG_SIGNED,
cv_uint = SIZE_INT,
cv_slong = SIZE_LONG + FLAG_SIGNED,
cv_ulong = SIZE_LONG,
cv_sll = SIZE_LONGLONG + FLAG_SIGNED,
cv_ull = SIZE_LONGLONG
} |
Functions |
| void * | pp_xmalloc (size_t) |
| void * | pp_xrealloc (void *, size_t) |
| char * | pp_xstrdup (const char *str) |
| pp_entry_t * | pplookup (const char *ident) |
| int | pp_push_define_state (void) |
| void | pp_pop_define_state (void) |
| pp_entry_t * | pp_add_define (const char *def, const char *text) |
| pp_entry_t * | pp_add_macro (char *ident, marg_t *args[], int nargs, mtext_t *exp) |
| void | pp_del_define (const char *name) |
| void * | pp_open_include (const char *name, const char *parent_name, char **newpath) |
| void | pp_push_if (pp_if_state_t s) |
| void | pp_next_if_state (int) |
| pp_if_state_t | pp_pop_if (void) |
| pp_if_state_t | pp_if_state (void) |
| int | pp_get_if_depth (void) |
| int | ppy_error (const char *s,...) __attribute__((format(printf |
| int int | ppy_warning (const char *s,...) __attribute__((format(printf |
| int int void | pp_internal_error (const char *file, int line, const char *s,...) __attribute__((format(printf |
| int | ppy_lex (void) |
| void | pp_do_include (char *fname, int type) |
| void | pp_push_ignore_state (void) |
| void | pp_pop_ignore_state (void) |
| void | pp_writestring (const char *format,...) __attribute__((format(printf |
| void int | ppy_parse (void) |
Variables |
| struct wpp_callbacks * | wpp_callbacks |
| struct pp_status | pp_status |
| include_state_t | pp_incl_state |
| includelogicentry_t * | pp_includelogiclist |
| FILE * | ppy_in |
| FILE * | ppy_out |
| char * | ppy_text |
| int | pp_flex_debug |
| int | ppy_debug |