summaryrefslogtreecommitdiff
path: root/src/complain.c
diff options
context:
space:
mode:
authorTheophile Ranquet <theophile.ranquet@gmail.com>2012-10-04 10:35:40 +0000
committerAkim Demaille <akim@lrde.epita.fr>2012-10-04 17:13:37 +0200
commitb999409e09db9adfbc7a80569c4e7a8cb0587adf (patch)
treebde77bb56c4abbcbd7fdc3a63c56a16e31b89580 /src/complain.c
parent9ec79612e822b39d0ab2ef5c4b9d584884ef61cd (diff)
downloadbison-b999409e09db9adfbc7a80569c4e7a8cb0587adf.tar.gz
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>
Diffstat (limited to 'src/complain.c')
-rw-r--r--src/complain.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/complain.c b/src/complain.c
index 926d9013..020b688b 100644
--- a/src/complain.c
+++ b/src/complain.c
@@ -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);
}