X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/halibut/blobdiff_plain/f336fa9a110d8da793932b803ed0b5ad7fe72826..26c8c119efd44804c7b27f8637c69eda63f0c189:/help.c diff --git a/help.c b/help.c index e31f784..d65645d 100644 --- a/help.c +++ b/help.c @@ -5,7 +5,7 @@ #include #include "halibut.h" -static char *helptext[] = { +static const char *const helptext[] = { "usage: halibut [options] files", "options: --text[=filename] generate plain text output", " --html[=filename] generate XHTML output", @@ -17,6 +17,7 @@ static char *helptext[] = { " -Cfoo:bar:baz append \\cfg{foo}{bar}{baz} to input", " --input-charset=cs change default input file charset", " --list-charsets display supported character set names", + " --list-fonts display supported font names", " --precise report column numbers in error messages", " --help display this text", " --version display version number", @@ -24,19 +25,19 @@ static char *helptext[] = { NULL }; -static char *usagetext[] = { +static const char *const usagetext[] = { "usage: halibut [--format[=filename]] [options] file.but [file.but...]", NULL }; void help(void) { - char **p; + const char *const *p; for (p = helptext; *p; p++) puts(*p); } void usage(void) { - char **p; + const char *const *p; for (p = usagetext; *p; p++) puts(*p); }