summaryrefslogtreecommitdiff
path: root/parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'parse.c')
-rw-r--r--parse.c24
1 files changed, 23 insertions, 1 deletions
diff --git a/parse.c b/parse.c
index 92431ea..cb6d133 100644
--- a/parse.c
+++ b/parse.c
@@ -31,8 +31,30 @@ static int deftype(char *line, struct filepointer *filep,
int parse_it);
static int zero_value(char *filename, char *exp, struct filepointer *filep,
struct inclist *file_red);
+static struct symtab **slookup(const char *symbol, struct inclist *file);
static boolean merge2defines(struct inclist *file1, struct inclist *file2);
+static const char *const directives[] = {
+ "if",
+ "ifdef",
+ "ifndef",
+ "else",
+ "endif",
+ "define",
+ "undef",
+ "include",
+ "line",
+ "pragma",
+ "error",
+ "ident",
+ "sccs",
+ "elif",
+ "eject",
+ "warning",
+ "include_next",
+ NULL
+};
+
static int
gobble(struct filepointer *filep, struct inclist *file,
struct inclist *file_red)
@@ -245,7 +267,7 @@ deftype(char *line, struct filepointer *filep,
return (ret);
}
-struct symtab **
+static struct symtab **
fdefined(const char *symbol, struct inclist *file, struct inclist **srcfile)
{
struct symtab **val;