errors: pointerize complain_at_indent

* src/complain.c (complain_at_indent): Rename as...
(complaint_indent): This, and take the location as a pointer.
* src/complain.h, src/muscle-tab.c, src/reader.c, src/scan-code.l,
src/symtab.c: Adjust.

Signed-off-by: Akim Demaille <akim@lrde.epita.fr>
This commit is contained in:
Theophile Ranquet
2012-10-04 10:35:40 +00:00
committed by Akim Demaille
parent 9ec79612e8
commit b999409e09
7 changed files with 62 additions and 64 deletions

View File

@@ -139,7 +139,7 @@ complains (const location *loc, warnings flags, const char *message,
}
void
complain (location const* loc, warnings flags, const char *message, ...)
complain (location const *loc, warnings flags, const char *message, ...)
{
va_list args;
va_start (args, message);
@@ -148,13 +148,13 @@ complain (location const* loc, warnings flags, const char *message, ...)
}
void
complain_at_indent (location loc, warnings flags, unsigned *indent,
const char *message, ...)
complain_indent (location const *loc, warnings flags, unsigned *indent,
const char *message, ...)
{
va_list args;
indent_ptr = indent;
va_start (args, message);
complains (&loc, flags, message, args);
complains (loc, flags, message, args);
va_end (args);
}