From c7673a6ea237d2a8797f459a33d12f42f7224a9b Mon Sep 17 00:00:00 2001 From: anon Date: Wed, 13 Nov 2024 14:48:07 +0100 Subject: [PATCH] K&R header for help.c --- source/display.c | 1 + source/global.h | 2 -- source/help.h | 8 ++++++++ source/opt.c | 1 + 4 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 source/help.h diff --git a/source/display.c b/source/display.c index ad17088..407055e 100644 --- a/source/display.c +++ b/source/display.c @@ -42,6 +42,7 @@ #include "global.h" #include "build.h" #include "colors.h" +#include "help.h" #ifdef CCS # include "sgs.h" /* ESG_PKG and ESG_REL */ diff --git a/source/global.h b/source/global.h index 17b9d14..3e3e0d1 100644 --- a/source/global.h +++ b/source/global.h @@ -203,8 +203,6 @@ char *scanpast(char c); char **parse_options(const int argc, const char * const * const argv); void readenv(bool preserve_database); -void longusage(void); -void usage(void); extern bool remove_symfile_onexit; extern bool onesearch; /* one search only in line mode */ extern char *reflines; /* symbol reference lines file */ diff --git a/source/help.h b/source/help.h new file mode 100644 index 0000000..6ef8c15 --- /dev/null +++ b/source/help.h @@ -0,0 +1,8 @@ +#ifndef HELP_H +#define HELP_H + +const char *help(void); +void longusage(void); +void usage(void); + +#endif diff --git a/source/opt.c b/source/opt.c index 7f4a6cc..ad4edba 100644 --- a/source/opt.c +++ b/source/opt.c @@ -4,6 +4,7 @@ #include "vpath.h" #include "version.inc" #include "auto_vararg.h" +#include "help.h" #include /* atoi */ #include