X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/c39014ae2b8cfb2b38690633633b62800b270a17..72cd9a913f6d282c5e24990505c2c820bda2bf1b:/src/complain.c?ds=sidebyside diff --git a/src/complain.c b/src/complain.c index 5629dd3a..18432b49 100644 --- a/src/complain.c +++ b/src/complain.c @@ -1,6 +1,6 @@ /* Declaration for error-reporting function for Bison. - Copyright (C) 2000-2002, 2004-2006, 2009-2011 Free Software + Copyright (C) 2000-2002, 2004-2006, 2009-2012 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify @@ -23,6 +23,7 @@ #include "system.h" #include +#include #include "complain.h" #include "files.h" @@ -47,8 +48,8 @@ static unsigned *indent_ptr = 0; static void error_message (location *loc, - const char *prefix, - const char *message, va_list args) + const char *prefix, + const char *message, va_list args) { unsigned pos = 0; @@ -81,12 +82,12 @@ error_message (location *loc, } /** Wrap error_message() with varargs handling. */ -#define ERROR_MESSAGE(Loc, Prefix, Message) \ -{ \ - va_list args; \ - va_start (args, Message); \ - error_message (Loc, Prefix, Message, args); \ - va_end (args); \ +#define ERROR_MESSAGE(Loc, Prefix, Message) \ +{ \ + va_list args; \ + va_start (args, Message); \ + error_message (Loc, Prefix, Message, args); \ + va_end (args); \ } @@ -94,7 +95,7 @@ error_message (location *loc, | Report a warning, and proceed. | `--------------------------------*/ -static void +void set_warning_issued (void) { static bool warning_issued = false;