mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-20 17:53:02 +00:00
Include files.h. LOCATION_PRINT -> location_print.
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/* Declaration for error-reporting function for Bison.
|
/* Declaration for error-reporting function for Bison.
|
||||||
Copyright (C) 2000, 2001, 2002 Free Software Foundation, Inc.
|
Copyright (C) 2000, 2001, 2002 Free Software Foundation, Inc.
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify it
|
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
|
under the terms of the GNU General Public License as published by the
|
||||||
@@ -32,6 +32,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "complain.h"
|
#include "complain.h"
|
||||||
|
#include "files.h"
|
||||||
|
|
||||||
#ifndef _
|
#ifndef _
|
||||||
# define _(String) String
|
# define _(String) String
|
||||||
@@ -98,7 +99,7 @@ warn_at (location_t location, const char *message, ...)
|
|||||||
va_list args;
|
va_list args;
|
||||||
|
|
||||||
fflush (stdout);
|
fflush (stdout);
|
||||||
LOCATION_PRINT (stderr, location);
|
location_print (stderr, location);
|
||||||
fputs (": ", stderr);
|
fputs (": ", stderr);
|
||||||
fputs (_("warning: "), stderr);
|
fputs (_("warning: "), stderr);
|
||||||
|
|
||||||
@@ -138,7 +139,7 @@ complain_at (location_t location, const char *message, ...)
|
|||||||
va_list args;
|
va_list args;
|
||||||
|
|
||||||
fflush (stdout);
|
fflush (stdout);
|
||||||
LOCATION_PRINT (stderr, location);
|
location_print (stderr, location);
|
||||||
fputs (": ", stderr);
|
fputs (": ", stderr);
|
||||||
|
|
||||||
va_start (args, message);
|
va_start (args, message);
|
||||||
@@ -177,7 +178,7 @@ fatal_at (location_t location, const char *message, ...)
|
|||||||
va_list args;
|
va_list args;
|
||||||
|
|
||||||
fflush (stdout);
|
fflush (stdout);
|
||||||
LOCATION_PRINT (stderr, location);
|
location_print (stderr, location);
|
||||||
fputs (": ", stderr);
|
fputs (": ", stderr);
|
||||||
fputs (_("fatal error: "), stderr);
|
fputs (_("fatal error: "), stderr);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user