From 386dbf0fbc4abfd14adf854e920ab6cb213ab63d Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Wed, 31 Mar 2004 19:19:34 +0000 Subject: Add the -C command-line option, which allows arbitrary \cfg directives to be supplied on the Halibut command line. [originally from svn r4013] --- error.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'error.c') diff --git a/error.c b/error.c index bf16504..5819e00 100644 --- a/error.c +++ b/error.c @@ -211,7 +211,9 @@ static void do_error(int code, va_list ap) { if (flags & PREFIX) fputs("halibut: ", stderr); if (flags & FILEPOS) { - fprintf(stderr, "%s:%d:", fpos.filename, fpos.line); + fprintf(stderr, "%s:", fpos.filename); + if (fpos.line > 0) + fprintf(stderr, "%d:", fpos.line); if (fpos.col > 0) fprintf(stderr, "%d:", fpos.col); fputc(' ', stderr); -- cgit v1.1