41 |
void exit (); |
void exit (); |
42 |
#endif |
#endif |
43 |
|
|
|
/* To get error_one_per_line. */ |
|
|
#include "error.h" |
|
|
|
|
44 |
#include "complain.h" |
#include "complain.h" |
45 |
|
|
46 |
#ifndef HAVE_DECL_STRERROR_R |
#ifndef HAVE_DECL_STRERROR_R |
125 |
va_list args; |
va_list args; |
126 |
#endif |
#endif |
127 |
|
|
|
if (error_one_per_line) |
|
|
{ |
|
|
static const char *old_infile; |
|
|
static int old_lineno; |
|
|
|
|
|
if (old_lineno == location.first_line && |
|
|
(infile == old_infile || !strcmp (old_infile, infile))) |
|
|
/* Simply return and print nothing. */ |
|
|
return; |
|
|
|
|
|
old_infile = infile; |
|
|
old_lineno = location.first_line; |
|
|
} |
|
|
|
|
128 |
fflush (stdout); |
fflush (stdout); |
129 |
LOCATION_PRINT (stderr, location); |
LOCATION_PRINT (stderr, location); |
130 |
fputs (": ", stderr); |
fputs (": ", stderr); |
161 |
va_list args; |
va_list args; |
162 |
#endif |
#endif |
163 |
|
|
|
if (error_one_per_line) |
|
|
{ |
|
|
static const char *old_infile; |
|
|
static int old_lineno; |
|
|
|
|
|
if (old_lineno == location.first_line && |
|
|
(infile == old_infile || !strcmp (old_infile, infile))) |
|
|
/* Simply return and print nothing. */ |
|
|
return; |
|
|
|
|
|
old_infile = infile; |
|
|
old_lineno = location.first_line; |
|
|
} |
|
|
|
|
164 |
fflush (stdout); |
fflush (stdout); |
165 |
LOCATION_PRINT (stderr, location); |
LOCATION_PRINT (stderr, location); |
166 |
fputs (": ", stderr); |
fputs (": ", stderr); |