diff options
| author | Simon Tatham <anakin@pobox.com> | 2006-06-02 19:19:12 +0000 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2006-06-02 19:19:12 +0000 |
| commit | 9e8ca006788e2148154711e1e67b88f495d94e26 (patch) | |
| tree | b3886338af0052ddf9dfbd6eb7212e317eb2bea5 /error.c | |
| parent | 9c7ee9bd5c91b41792c40e12669b43aceea2a544 (diff) | |
| download | halibut-9e8ca006788e2148154711e1e67b88f495d94e26.zip halibut-9e8ca006788e2148154711e1e67b88f495d94e26.tar.gz halibut-9e8ca006788e2148154711e1e67b88f495d94e26.tar.bz2 halibut-9e8ca006788e2148154711e1e67b88f495d94e26.tar.xz | |
Introduce global (cross-backend) \cfg{contents} and \cfg{index}
commands, allowing the fixed words "Contents" and "Index" generated
in various output formats to be reconfigured into other languages.
[originally from svn r6724]
Diffstat (limited to 'error.c')
| -rw-r--r-- | error.c | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -19,7 +19,7 @@ static void do_error(int code, va_list ap) { int i, j; char *sp, *sp2; wchar_t *wsp, *wsp2; - filepos fpos, fpos2; + filepos fpos, fpos2, *fposp; int flags; switch(code) { @@ -248,11 +248,14 @@ static void do_error(int code, va_list ap) { flags = FILEPOS; break; case err_infonodechar: - fpos = *va_arg(ap, filepos *); + fposp = va_arg(ap, filepos *); c = (char)va_arg(ap, int); sprintf(error, "info output format does not support '%c' in" " node names; removing", c); - flags = FILEPOS; + if (fposp) { + flags = FILEPOS; + fpos = *fposp; + } break; case err_text_codeline: fpos = *va_arg(ap, filepos *); |