70 for(ccptr =
name; *ccptr; ccptr++)
85 if(
type && parent_name)
210 ppy_warning(
"Redefinition of %s\n%s:%d: note: previous definition was here",
215 memset( ppp, 0,
sizeof(*ppp) );
251 ppy_warning(
"Redefinition of %s\n%s:%d: note: previous definition was here",
256 memset( ppp, 0,
sizeof(*ppp) );
303 for(cptr =
dir; *cptr; cptr++)
332 if (newpath) *newpath =
path;
400 error(
"#if-stack overflow; #{if,ifdef,ifndef} nested too deeply (> %d)\n",
MAXIFSTACK);
427 ppy_error(
"#{endif,else,elif} without #{if,ifdef,ifndef} (#if-stack underflow)");
int strcmp(const char *String1, const char *String2)
ACPI_SIZE strlen(const char *String)
char * strchr(const char *String, int ch)
char * xstrdup(const char *s)
static void list_remove(struct list_entry *entry)
static void list_add_head(struct list_entry *head, struct list_entry *entry)
static void list_init(struct list_entry *head)
void pp_push_ignore_state(void)
void pp_pop_ignore_state(void)
void WINAPIV int ppy_parse(void)
GLuint GLuint GLsizei GLenum type
GLenum GLuint GLenum GLsizei const GLchar * buf
GLenum GLenum GLenum input
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
_Check_return_opt_ _CRTIMP int __cdecl fprintf(_Inout_ FILE *_File, _In_z_ _Printf_format_string_ const char *_Format,...)
_Check_return_opt_ _CRTIMP int __cdecl vfprintf(_Inout_ FILE *_File, _In_z_ _Printf_format_string_ const char *_Format, va_list _ArgList)
_Check_return_ _CRTIMP FILE *__cdecl fopen(_In_z_ const char *_Filename, _In_z_ const char *_Mode)
_Check_return_opt_ _CRTIMP int __cdecl fclose(_Inout_ FILE *_File)
#define memmove(s1, s2, n)
char * strmake(size_t *lenp,...)
static int sum(int x_, int y_)
_CRTIMP struct tm *__cdecl localtime(const time_t *_Time)
#define LIST_FOR_EACH_ENTRY(elem, list, type, field)
#define LIST_FOR_EACH_ENTRY_SAFE(cursor, cursor2, list, type, field)
size_t CDECL strftime(char *str, size_t max, const char *format, const struct tm *mstm)
includelogicentry_t * iep
union pp_entry::@276 subst
_In_ ULONG _In_ ULONG_PTR ident
void int int ULONGLONG int va_list * ap
static void free_pp_entry(pp_entry_t *ppp, int idx)
static pp_if_state_t if_stack[MAXIFSTACK]
void wpp_add_cmdline_define(const char *value)
pp_entry_t * pp_add_define(const char *def, const char *text)
pp_if_state_t pp_if_state(void)
static void add_special_defines(void)
int pp_get_if_depth(void)
static struct list cmdline_defines
int ppy_warning(const char *s,...)
void * pp_open_include(const char *name, int type, const char *parent_name, char **newpath)
void wpp_set_debug(int lex_debug, int parser_debug, int msg_debug)
static char * wpp_lookup(const char *name, int type, const char *parent_name)
static struct strarray includes
void wpp_del_define(const char *name)
int wpp_parse(const char *input, FILE *output)
void pp_next_if_state(int i)
static int pphash(const char *str)
void pp_push_if(pp_if_state_t s)
static const char *const pp_if_state_str[]
static void pp_free_define_state(void)
pp_entry_t * pplookup(const char *ident)
char * wpp_find_include(const char *name, const char *parent_name)
static void generic_msg(const char *s, const char *t, const char *n, va_list ap)
static void pp_init_define_state(void)
pp_if_state_t pp_pop_if(void)
pp_entry_t * pp_add_macro(char *id, char *args[], int nargs, int variadic, mtext_t *exp)
static void wpp_add_define(const char *name, const char *value)
static struct list pp_defines[HASHKEY]
void wpp_add_include_path(const char *path)
int ppy_error(const char *s,...)
static void add_cmdline_defines(void)
void pp_del_define(const char *name)