* tests/Makefile.am (check-local): Ship testsuite.

* tests/calc.at (_AT_DATA_CALC_Y): Prototype all the functions.
Include `string.h'.
This commit is contained in:
Akim Demaille
2001-08-03 10:13:42 +00:00
parent 1e3e4bc116
commit 2ce1014469
6 changed files with 528 additions and 472 deletions

View File

@@ -1,3 +1,9 @@
2001-08-03 Akim Demaille <akim@epita.fr>
* tests/Makefile.am (check-local): Ship testsuite.
* tests/calc.at (_AT_DATA_CALC_Y): Prototype all the functions.
Include `string.h'.
2001-08-03 Akim Demaille <akim@epita.fr>
* configure.in: Try using -Wformat when compiling.

2
NEWS
View File

@@ -1,7 +1,7 @@
Bison News
----------
Changes in version 1.28a:
Changes in version 1.28b:
* the input and the output files has automatically a similar extension.

960
configure vendored

File diff suppressed because it is too large Load Diff

View File

@@ -1,7 +1,7 @@
## Process this file with automake to create Makefile.in.
## Makefile for Bison testsuite.
## Copyright 2000 Free Software Foundation, Inc.
## Copyright 2000, 2001 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
@@ -23,10 +23,10 @@ noinst_SCRIPTS = testsuite
SUITE = calc.at regression.at
EXTRA_DIST = atgeneral.m4 suite.at $(SUITE)
EXTRA_DIST = atgeneral.m4 suite.at $(SUITE) $(noinst_SCRIPTS)
check-local: atconfig testsuite
$(SHELL) testsuite
check-local: atconfig $(srcdir)/testsuite
$(SHELL) $(srcdir)/testsuite
testsuite: atgeneral.m4 suite.at $(SUITE)
$(M4) -I $(srcdir) atgeneral.m4 suite.at | \
@@ -35,6 +35,6 @@ testsuite: atgeneral.m4 suite.at $(SUITE)
chmod +x $@-tmp
mv $@-tmp $@
CLEANFILES = debug-*.sh
CLEANFILES = debug-*.sh empty
DISTCLEANFILES = atconfig
MAINTAINERCLEANFILES = testsuite

View File

@@ -100,9 +100,9 @@ noinst_SCRIPTS = testsuite
SUITE = calc.at regression.at
EXTRA_DIST = atgeneral.m4 suite.at $(SUITE)
EXTRA_DIST = atgeneral.m4 suite.at $(SUITE) $(noinst_SCRIPTS)
CLEANFILES = debug-*.sh
CLEANFILES = debug-*.sh empty
DISTCLEANFILES = atconfig
MAINTAINERCLEANFILES = testsuite
mkinstalldirs = $(SHELL) $(top_srcdir)/config/mkinstalldirs
@@ -217,8 +217,8 @@ distclean-generic clean-generic maintainer-clean-generic clean \
mostlyclean distclean maintainer-clean
check-local: atconfig testsuite
$(SHELL) testsuite
check-local: atconfig $(srcdir)/testsuite
$(SHELL) $(srcdir)/testsuite
testsuite: atgeneral.m4 suite.at $(SUITE)
$(M4) -I $(srcdir) atgeneral.m4 suite.at | \

View File

@@ -32,14 +32,24 @@ AT_DATA([calc.y],
[[/* Infix notation calculator--calc */
%{
#include <config.h>
#include <stdio.h>
#include <stdlib.h>
#if STDC_HEADERS
# include <stdlib.h>
# include <string.h>
#else
char *strcat(char *dest, const char *src);
#endif
#include <ctype.h>
]$4[
static int power (int base, int exponent);
static void yyerror (const char *s);
static int yylex (void);
static int yygetc (void);
static void yyungetc (int c);
extern void perror (const char *s);
%}
@@ -96,7 +106,7 @@ yyerror (const char *s)
}
static int
yygetc ()
yygetc (void)
{
int res = getc (yyin);
#if YYLSP_NEEDED