summaryrefslogtreecommitdiff
path: root/error.c
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2004-06-20 13:11:34 +0000
committerSimon Tatham <anakin@pobox.com>2004-06-20 13:11:34 +0000
commit68a5185678e9d000c71ebb7a4f153c27a7482124 (patch)
tree3adacc72e32e4feccc6f2b633473b61974b7cd52 /error.c
parente43b0f797c0fdf00b38fad69bbbf85a4b068cf9f (diff)
downloadhalibut-68a5185678e9d000c71ebb7a4f153c27a7482124.zip
halibut-68a5185678e9d000c71ebb7a4f153c27a7482124.tar.gz
halibut-68a5185678e9d000c71ebb7a4f153c27a7482124.tar.bz2
halibut-68a5185678e9d000c71ebb7a4f153c27a7482124.tar.xz
Introduce a configurable option to select the HTML flavour. Also
fiddle with various small aspects of the output so that it actually validates in all supported flavours. [originally from svn r4307]
Diffstat (limited to 'error.c')
-rw-r--r--error.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/error.c b/error.c
index 879d081..0330e76 100644
--- a/error.c
+++ b/error.c
@@ -249,6 +249,14 @@ static void do_error(int code, va_list ap) {
" than body width %d", i, j);
flags = FILEPOS;
break;
+ case err_htmlver:
+ fpos = *va_arg(ap, filepos *);
+ wsp = va_arg(ap, wchar_t *);
+ sp = utoa_locale_dup(wsp);
+ sprintf(error, "unrecognised HTML version keyword `%.200s'", sp);
+ sfree(sp);
+ flags = FILEPOS;
+ break;
case err_whatever:
sp = va_arg(ap, char *);
vsprintf(error, sp, ap);