Revamp of the Halibut error handling mechanism. master git-svn
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Wed, 29 Aug 2012 18:13:11 +0000 (18:13 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Wed, 29 Aug 2012 18:13:11 +0000 (18:13 +0000)
commit05e9c3c2e7be6c54e31121132f43db83597381e8
tree036fa787ee0806a1d261eb99d39a2bad9f7a38ba
parent39ed44f15f44726e08401b23b65dbbdc8ec5db8b
Revamp of the Halibut error handling mechanism.

I'm not quite sure why I ever thought it was a good idea to have a
central variadic error() function taking an integer error code
followed by some list of arguments that depend on that code. It now
seems obvious to me that it's a much more sensible idea to have a
separate function per error, so that we can check at compile time that
the arguments to each error call are of the right number and type! So
I've done that instead.

A side effect is that the errors are no longer formatted into a
fixed-size buffer before going to stderr, so I can remove all the
%.200s precautions in the format strings.

git-svn-id: svn://svn.tartarus.org/sgt/halibut@9639 cda61777-01e9-0310-a592-d414129be87e
21 files changed:
biblio.c
bk_html.c
bk_info.c
bk_man.c
bk_paper.c
bk_pdf.c
bk_ps.c
bk_text.c
bk_whlp.c
contents.c
error.c
halibut.h
in_afm.c
in_pf.c
in_sfnt.c
index.c
input.c
keywords.c
main.c
malloc.c
ustring.c