summaryrefslogtreecommitdiff
path: root/error.c
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2004-04-09 18:43:02 +0000
committerSimon Tatham <anakin@pobox.com>2004-04-09 18:43:02 +0000
commit25f36b82c96a65175ace06ded180130ff60fa4d3 (patch)
tree10128baa2247039d77a1d1b523497c9dcc4de7c1 /error.c
parenta4782d9b40772389c3131a2f3c75009c2dd42ba3 (diff)
downloadhalibut-25f36b82c96a65175ace06ded180130ff60fa4d3.zip
halibut-25f36b82c96a65175ace06ded180130ff60fa4d3.tar.gz
halibut-25f36b82c96a65175ace06ded180130ff60fa4d3.tar.bz2
halibut-25f36b82c96a65175ace06ded180130ff60fa4d3.tar.xz
Add a config directive to generate the INFO-DIR-ENTRY things that
appear to be used to automatically construct /usr/info/dir. [originally from svn r4049]
Diffstat (limited to 'error.c')
-rw-r--r--error.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/error.c b/error.c
index 5819e00..efa0eb8 100644
--- a/error.c
+++ b/error.c
@@ -200,7 +200,13 @@ static void do_error(int code, va_list ap) {
sprintf(error, "section headings are not supported within \\%.100s",
sp);
flags = FILEPOS;
- break;
+ break;
+ case err_infodirentry:
+ fpos = *va_arg(ap, filepos *);
+ sprintf(error, "\\cfg{info-dir-entry} expects at least three"
+ " parameters");
+ flags = FILEPOS;
+ break;
case err_whatever:
sp = va_arg(ap, char *);
vsprintf(error, sp, ap);