summaryrefslogtreecommitdiff
path: root/main.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 /main.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 'main.c')
-rw-r--r--main.c24
1 files changed, 2 insertions, 22 deletions
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