From 25f36b82c96a65175ace06ded180130ff60fa4d3 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Fri, 9 Apr 2004 18:43:02 +0000 Subject: 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] --- error.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'error.c') 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); -- cgit v1.1