#include <stdio.h>
#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",
" -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",
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);
}