mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-21 02:03:03 +00:00
* 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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user