From 14b042d2061409540c6f645271bf562d15cc14cb Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Wed, 7 Dec 2022 15:54:43 -0800 Subject: Make more things static that aren't needed in more than one file Signed-off-by: Alan Coopersmith --- main.c | 24 ++---------------------- 1 file changed, 2 insertions(+), 22 deletions(-) (limited to 'main.c') diff --git a/main.c b/main.c index 2ede1bd..cffa27b 100644 --- a/main.c +++ b/main.c @@ -63,28 +63,7 @@ int _debugmask; #define DASH_INC_PRE "#include \"" #define DASH_INC_POST "\"" -const char *ProgramName; - -const char *const directives[] = { - "if", - "ifdef", - "ifndef", - "else", - "endif", - "define", - "undef", - "include", - "line", - "pragma", - "error", - "ident", - "sccs", - "elif", - "eject", - "warning", - "include_next", - NULL -}; +static const char *ProgramName; #include "imakemdep.h" @@ -112,6 +91,7 @@ boolean show_where_not = FALSE; boolean warn_multiple = FALSE; static void setfile_cmdinc(struct filepointer *filep, long count, char **list); +static char *base_name(const char *file); static void redirect(const char *line, const char *makefile); static void _X_NORETURN -- cgit v1.2.1