* 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

@@ -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