aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexey Zaytsev <alexey.zaytsev@gmail.com>2008-12-17 22:01:18 +0300
committerAlexey Zaytsev <alexey.zaytsev@gmail.com>2008-12-18 20:30:22 +0300
commit5e48e6b76709bd7f0d520054889884b1ad8fa24c (patch)
treeb6a9cac554f40f1bda0a3183f65790b745ec651b
parent3056bae9ca3c5fea3ecdfc7adf751af1a4ca7b6a (diff)
downloadsparse-5e48e6b76709bd7f0d520054889884b1ad8fa24c.tar.gz
Mark handle_switch as static and don't export it from lib.h
Signed-off-by: Alexey Zaytsev <alexey.zaytsev@gmail.com>
-rw-r--r--lib.c2
-rw-r--r--lib.h1
2 files changed, 1 insertions, 2 deletions
diff --git a/lib.c b/lib.c
index 665a6b7c..965fbfbc 100644
--- a/lib.c
+++ b/lib.c
@@ -592,7 +592,7 @@ struct switches {
char **(*fn)(char *, char **);
};
-char **handle_switch(char *arg, char **next)
+static char **handle_switch(char *arg, char **next)
{
static struct switches cmd[] = {
{ "nostdinc", handle_nostdinc },
diff --git a/lib.h b/lib.h
index 42a33968..b22fa937 100644
--- a/lib.h
+++ b/lib.h
@@ -83,7 +83,6 @@ extern void sparse_error(struct position, const char *, ...) FORMAT_ATTR(2);
extern void error_die(struct position, const char *, ...) FORMAT_ATTR(2) NORETURN_ATTR;
extern void expression_error(struct expression *, const char *, ...) FORMAT_ATTR(2);
-extern char **handle_switch(char *arg, char **next);
extern void add_pre_buffer(const char *fmt, ...) FORMAT_ATTR(1);
extern int preprocess_only;