diff options
Diffstat (limited to 'def.h')
-rw-r--r-- | def.h | 21 |
1 files changed, 11 insertions, 10 deletions
@@ -52,7 +52,7 @@ in this Software without prior written authorization from The Open Group. #define TRUE 1 #define FALSE 0 -/* the following must match the directives table in main.c */ +/* the following must match the directives table in parse.c */ #define IF 0 #define IFDEF 1 #define IFNDEF 2 @@ -137,23 +137,22 @@ struct filepointer { #include <stdlib.h> +/* main.c */ int match(const char *str, const char *const *list); -char *base_name(const char *file); char *getnextline(struct filepointer *fp); -struct symtab **slookup(const char *symbol, struct inclist *file); -struct symtab **isdefined(const char *symbol, struct inclist *file, - struct inclist **srcfile); -struct symtab **fdefined(const char *symbol, struct inclist *file, - struct inclist **srcfile); struct filepointer *getfile(const char *file); +void freefile(struct filepointer *fp); + +/* include.c */ void included_by(struct inclist *ip, struct inclist *newfile); struct inclist *newinclude(const char *newfile, const char *incstring, const char *incpath); void inc_clean(void); struct inclist *inc_path(const char *file, const char *include, int type); -void freefile(struct filepointer *fp); - +/* parse.c */ +struct symtab **isdefined(const char *symbol, struct inclist *file, + struct inclist **srcfile); void define2(const char *name, const char *val, struct inclist *file); void define(char *def, struct inclist *file); void undefine(const char *symbol, struct inclist *file); @@ -161,15 +160,18 @@ int find_includes(struct filepointer *filep, struct inclist *file, struct inclist *file_red, int recursion, boolean failOK); +/* pr.c */ void recursive_pr_include(struct inclist *head, const char *file, const char *base); void add_include(struct filepointer *filep, struct inclist *file, struct inclist *file_red, const char *include, int type, boolean failOK); +/* cppsetup.c */ int cppsetup(const char *filename, const char *line, struct filepointer *filep, struct inclist *inc); +/* main.c */ extern void fatalerr(const char *, ...) _X_ATTRIBUTE_PRINTF(1, 2) _X_NORETURN; extern void warning(const char *, ...) _X_ATTRIBUTE_PRINTF(1, 2); extern void warning1(const char *, ...) _X_ATTRIBUTE_PRINTF(1, 2); @@ -180,7 +182,6 @@ extern struct inclist *inclistnext; extern struct inclist maininclist; extern const char *includedirs[]; extern const char **includedirsnext; -extern const char *const directives[]; extern char *notdotdot[]; extern const char *objprefix; |