From dd5602f59b599177fb130512fc543f7efa951990 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Tue, 30 May 2006 22:35:03 +0000 Subject: 22474: use variable argument lists to improve error message handling --- Src/lex.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Src/lex.c') diff --git a/Src/lex.c b/Src/lex.c index 55920a142..635e847d2 100644 --- a/Src/lex.c +++ b/Src/lex.c @@ -1269,11 +1269,11 @@ gettokstr(int c, int sub) brk: hungetc(c); if (unmatched) - zerr("unmatched %c", NULL, unmatched); + zerr("unmatched %c", unmatched); if (in_brace_param) { while(bct-- >= in_brace_param) cmdpop(); - zerr("closing brace expected", NULL, 0); + zerr("closing brace expected"); } else if (unset(IGNOREBRACES) && !sub && len > 1 && peek == STRING && bptr[-1] == '}' && bptr[-2] != Bnull) { /* hack to get {foo} command syntax work */ @@ -1438,9 +1438,9 @@ parsestr(char *s) if ((err = parsestrnoerr(s))) { untokenize(s); if (err > 32 && err < 127) - zerr("parse error near `%c'", NULL, err); + zerr("parse error near `%c'", err); else - zerr("parse error", NULL, 0); + zerr("parse error"); } return err; } -- cgit 1.4.1