/* 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
under the terms of the GNU General Public License as published by the
#endif
#include "complain.h"
+#include "files.h"
#ifndef _
# define _(String) String
va_list args;
fflush (stdout);
- LOCATION_PRINT (stderr, location);
+ location_print (stderr, location);
fputs (": ", stderr);
fputs (_("warning: "), stderr);
va_list args;
fflush (stdout);
- fprintf (stderr, "%s: %s", infile ? infile : program_name, _("warning: "));
+ fprintf (stderr, "%s: %s", current_file ? current_file : program_name, _("warning: "));
va_start (args, message);
vfprintf (stderr, message, args);
va_list args;
fflush (stdout);
- LOCATION_PRINT (stderr, location);
+ location_print (stderr, location);
fputs (": ", stderr);
va_start (args, message);
va_list args;
fflush (stdout);
- fprintf (stderr, "%s: ", infile ? infile : program_name);
+ fprintf (stderr, "%s: ", current_file ? current_file : program_name);
va_start (args, message);
vfprintf (stderr, message, args);
va_list args;
fflush (stdout);
- LOCATION_PRINT (stderr, location);
+ location_print (stderr, location);
fputs (": ", stderr);
fputs (_("fatal error: "), stderr);
va_list args;
fflush (stdout);
- fprintf (stderr, "%s: ", infile ? infile : program_name);
+ fprintf (stderr, "%s: ", current_file ? current_file : program_name);
fputs (_("fatal error: "), stderr);