summaryrefslogtreecommitdiff
path: root/error.c
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2001-12-06 12:59:37 +0000
committerSimon Tatham <anakin@pobox.com>2001-12-06 12:59:37 +0000
commite695cb0dd19d1cbce0c49a71a913527a227a9e09 (patch)
treef83651dcbaed2607c9ff293d542f7e4e7da0b161 /error.c
parentd098f79c9b7dd52c534fed83bb1eb6a3080a03af (diff)
downloadhalibut-e695cb0dd19d1cbce0c49a71a913527a227a9e09.zip
halibut-e695cb0dd19d1cbce0c49a71a913527a227a9e09.tar.gz
halibut-e695cb0dd19d1cbce0c49a71a913527a227a9e09.tar.bz2
halibut-e695cb0dd19d1cbce0c49a71a913527a227a9e09.tar.xz
Allow the user to specify the Help topic ID string for particular
sections. Useful if another program needs to jump to a particular topic. (Really we should support the proper CTXOMAP / HELP_WM_HELP system for doing this, but I don't like numeric IDs; you'd have to parse a bunch of #defines in order to sensibly synchronise the IDs between help file and code.) [originally from svn r1457]
Diffstat (limited to 'error.c')
-rw-r--r--error.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/error.c b/error.c
index c81aa8c..d115073 100644
--- a/error.c
+++ b/error.c
@@ -16,7 +16,7 @@
static void do_error(int code, va_list ap) {
char error[1024];
char auxbuf[256];
- char *sp;
+ char *sp, *sp2;
wchar_t *wsp;
filepos fpos;
int flags;
@@ -167,6 +167,14 @@ static void do_error(int code, va_list ap) {
sprintf(error, "expected higher heading levels before this one");
flags = FILEPOS;
break;
+ case err_winhelp_ctxclash:
+ fpos = *va_arg(ap, filepos *);
+ sp = va_arg(ap, char *);
+ sp2 = va_arg(ap, char *);
+ sprintf(error, "Windows Help context id `%.200s' clashes with "
+ "previously defined `%.200s'", sp, sp2);
+ flags = FILEPOS;
+ break;
case err_whatever:
sp = va_arg(ap, char *);
vsprintf(error, sp, ap);