diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-12-07 15:54:43 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2023-01-01 14:50:25 -0800 |
commit | 14b042d2061409540c6f645271bf562d15cc14cb (patch) | |
tree | 63cf488cdf64f5988562f1b696e032214aca2445 /parse.c | |
parent | c46d912071dd8fad6c1ed532cbef26db34a639e9 (diff) | |
download | xorg-util-makedepend-14b042d2061409540c6f645271bf562d15cc14cb.tar.gz |
Make more things static that aren't needed in more than one file
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'parse.c')
-rw-r--r-- | parse.c | 24 |
1 files changed, 23 insertions, 1 deletions
@@ -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; |