X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/f16b08196c780556cbf50691e2944960aebc46f6..ea99d6e6a02a06bd63e788393fd42cde5cb1fa71:/lib/yyerror.c?ds=sidebyside diff --git a/lib/yyerror.c b/lib/yyerror.c index 88632efe..3aeb5cef 100644 --- a/lib/yyerror.c +++ b/lib/yyerror.c @@ -1,6 +1,6 @@ /* Yacc library error-printing function. - Copyright (C) 2002 Free Software Foundation, Inc. + Copyright (C) 2002, 2009-2013 Free Software Foundation, Inc. This file is part of Bison, the GNU Compiler Compiler. @@ -17,6 +17,8 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ +#include + #include int yyerror (char const *); @@ -24,5 +26,7 @@ int yyerror (char const *); int yyerror (char const *message) { - return fprintf (stderr, "%s\n", message); + fputs (message, stderr); + fputc ('\n', stderr); + return 0; }