X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/a49f4904c36d585fa057b681c38af4d48de7c23b..bb8e56ff67d289d15f1a4dc7f5e1502cd3bbfc24:/src/complain.c diff --git a/src/complain.c b/src/complain.c index 4b07e18c..1d43f1d2 100644 --- a/src/complain.c +++ b/src/complain.c @@ -143,29 +143,20 @@ complains (const location *loc, warnings flags, const char *message, } void -complain (warnings flags, const char *message, ...) +complain (location const* loc, warnings flags, const char *message, ...) { va_list args; va_start (args, message); - complains (NULL, flags, message, args); + complains (loc, flags, message, args); va_end (args); } void -complain_at (location loc, warnings flags, const char *message, ...) +complain_at_indent (location loc, warnings flags, unsigned *indent, + const char *message, ...) { va_list args; - va_start (args, message); - complains (&loc, flags, message, args); - va_end (args); -} - -void complain_at_indent (location loc, warnings flags, unsigned *indent, - const char *message, ...) -{ indent_ptr = indent; - - va_list args; va_start (args, message); complains (&loc, flags, message, args); va_end (args);