44 #include <sys/types.h>
48 #define MAXDEFINES 512
74 #define IFGUESSFALSE 19
75 #define ELIFGUESSFALSE 20
81 extern int _debugmask;
91 #define debug(level,arg) { if (_debugmask & (1 << level)) warning arg; }
93 #define debug(level,arg) {}
126 #ifndef X_NOT_STDC_ENV
128 #if defined(macII) && !defined(__STDC__)
129 char *malloc(), *realloc();
159 char *
copy(
char *str);
163 int match(
const char *str,
const char **list);
164 void redirect(
char *line,
char *makefile);
165 #if NeedVarargsPrototypes
167 void warning(
const char *, ...);
179 inclist *file_red,
int recursion,
bool failOK);
191 inclist *file_red,
char *include,
bool dot,
bool failOK);
192 void pr(
inclist *ip,
char *file,
char *base,
bool rc_file);
int find_includes(filepointer *filep, inclist *file, inclist *file_red, int recursion, bool failOK)
symtab * fdefined(char *symbol, inclist *file, inclist **srcfile)
int deftype(char *line, filepointer *filep, inclist *file_red, inclist *file, int parse_it)
inclist * inc_path(char *file, char *include, bool dot, bool &failure_okay)
void add_include(filepointer *filep, inclist *file, inclist *file_red, char *include, bool dot, bool failOK)
void freefile(filepointer *fp)
void define2(char *name, char *val, inclist *file)
void undefine(char *symbol, inclist *file)
int cppsetup(char *line, filepointer *filep, inclist *inc)
void redirect(char *line, char *makefile)
symtab * isdefined(char *symbol, inclist *file, inclist **srcfile)
inclist * newinclude(char *newfile, char *incstring)
char * getline(filepointer *filep)
filepointer * getfile(char *file)
void included_by(inclist *ip, inclist *newfile)
char * base_name(char *file)
void pr(inclist *ip, char *file, char *base, bool rc_file)
int gobble(filepointer *filep, inclist *file, inclist *file_red)
void define(char *def, inclist *file)
symtab * slookup(char *symbol, inclist *file)
void recursive_pr_include(inclist *head, char *file, char *base)
int zero_value(char *exp, filepointer *filep, inclist *file_red)
int match(const char *str, const char **list)
void warning1(const char *msg, x1, x2, x3, x4, x5, x6, x7, x8, x9)
void fatalerr(char *msg, x1, x2, x3, x4, x5, x6, x7, x8, x9)
void warning(const char *msg, x1, x2, x3, x4, x5, x6, x7, x8, x9)