mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-14 14:53:03 +00:00
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:
committed by
Akim Demaille
parent
9ec79612e8
commit
b999409e09
@@ -58,15 +58,15 @@ extern warnings errors_flag;
|
||||
void warnings_print_categories (warnings warn_flags);
|
||||
|
||||
/** Make a complaint, with maybe a location. */
|
||||
void complain (location const* loc, warnings flags, char const *message, ...)
|
||||
void complain (location const *loc, warnings flags, char const *message, ...)
|
||||
__attribute__ ((__format__ (__printf__, 3, 4)));
|
||||
|
||||
/** Likewise, but with an \a argc/argv interface. */
|
||||
void complain_args (location const *loc, warnings w, int argc, char *arg[]);
|
||||
|
||||
/** Make a complaint with location and some indentation. */
|
||||
void complain_at_indent (location loc, warnings flags, unsigned *indent,
|
||||
char const *message, ...)
|
||||
void complain_indent (location const *loc, warnings flags, unsigned *indent,
|
||||
char const *message, ...)
|
||||
__attribute__ ((__format__ (__printf__, 4, 5)));
|
||||
|
||||
/** Whether an error was reported. */
|
||||
|
||||
Reference in New Issue
Block a user