# define YYLEX yylex(&yylval)
#endif
+/* Parameters sent to yyerror. */
+#define YYERROR_DECL() yyerror(const char *s)
+#define YYERROR_CALL(msg) yyerror(msg)
+
extern int YYPARSE_DECL();
-extern int YYLEX_DECL();
#define DIGIT 257
#define LETTER 258
#line 63 "pure_calc.y"
/* start of programs */
+#ifdef YYBYACC
+extern int YYLEX_DECL();
+static void YYERROR_DECL();
+#endif
+
int
main (void)
{
}
return( c );
}
-#line 329 "pure_calc.tab.c"
+#line 337 "pure_calc.tab.c"
#if YYDEBUG
#include <stdio.h> /* needed for printf */
newsize = YYMAXDEPTH;
i = data->s_mark - data->s_base;
- newss = (data->s_base != 0)
- ? (short *)realloc(data->s_base, newsize * sizeof(*newss))
- : (short *)malloc(newsize * sizeof(*newss));
+ newss = (short *)realloc(data->s_base, newsize * sizeof(*newss));
if (newss == 0)
return -1;
data->s_base = newss;
data->s_mark = newss + i;
- newvs = (data->l_base != 0)
- ? (YYSTYPE *)realloc(data->l_base, newsize * sizeof(*newvs))
- : (YYSTYPE *)malloc(newsize * sizeof(*newvs));
+ newvs = (YYSTYPE *)realloc(data->l_base, newsize * sizeof(*newvs));
if (newvs == 0)
return -1;
#line 60 "pure_calc.y"
{ yyval = base * yystack.l_mark[-1] + yystack.l_mark[0]; }
break;
-#line 606 "pure_calc.tab.c"
+#line 610 "pure_calc.tab.c"
}
yystack.s_mark -= yym;
yystate = *yystack.s_mark;