X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/0e021770cc023c6a2e7ae132a3aab55bc7cbc058..c76f5dfb03f6d2dbffe80e2d9438dfda74d84ebf:/src/complain.c diff --git a/src/complain.c b/src/complain.c index 910b4110..d187624d 100644 --- a/src/complain.c +++ b/src/complain.c @@ -1,12 +1,12 @@ /* Declaration for error-reporting function for Bison. - Copyright (C) 2000, 2001, 2002, 2004, 2005, 2006 - Free Software Foundation, Inc. + Copyright (C) 2000-2002, 2004-2006, 2009-2010 Free Software + Foundation, Inc. - This program is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2, or (at your option) any - later version. + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -14,9 +14,7 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, - USA. */ + along with this program. If not, see . */ /* Based on error.c and error.h, written by David MacKenzie . */ @@ -58,7 +56,6 @@ error_message (location *loc, fprintf (stderr, "%s: ", prefix); vfprintf (stderr, message, args); - va_end (args); putc ('\n', stderr); fflush (stderr); } @@ -69,6 +66,7 @@ error_message (location *loc, va_list args; \ va_start (args, Message); \ error_message (Loc, Prefix, Message, args); \ + va_end (args); \ }