* tests/sets.at (AT_EXTRACT_SETS): Don't use 8 char long sed labels.

* tests/synclines.at (AT_TEST_SYNCLINE): Be robust to GCC's
location with columns.
* tests/conflicts.at (%nonassoc and eof): Don't use `error.h'.
All reported by Paul Eggert.
This commit is contained in:
Akim Demaille
2002-04-23 09:06:42 +00:00
parent 8e521837dc
commit 1207eeacc2
4 changed files with 40 additions and 17 deletions

View File

@@ -50,16 +50,22 @@ AT_SETUP([%nonassoc and eof])
AT_DATA([input.y],
[[
%{
#include <config.h>
/* We don't need a perfect malloc for these tests. */
#undef malloc
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <error.h>
#if STDC_HEADERS
# include <stdlib.h>
#endif
#define YYERROR_VERBOSE 1
#define yyerror(Msg) \
do { \
fprintf (stderr, "%s\n", Msg); \
exit (1); \
} while (0)
static void
yyerror (const char *msg)
{
fprintf (stderr, "%s\n", msg);
exit (1);
}
/* The current argument. */
static const char *input = NULL;