summaryrefslogtreecommitdiff
path: root/parse.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2022-12-07 15:54:43 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2023-01-01 14:50:25 -0800
commit14b042d2061409540c6f645271bf562d15cc14cb (patch)
tree63cf488cdf64f5988562f1b696e032214aca2445 /parse.c
parentc46d912071dd8fad6c1ed532cbef26db34a639e9 (diff)
downloadxorg-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.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;