This commit is contained in:
parent
f857751606
commit
aae2e8e05f
168 changed files with 11625 additions and 0 deletions
30
Utils/Parser Generator/SOURCE/yympcln.c
Normal file
30
Utils/Parser Generator/SOURCE/yympcln.c
Normal file
|
@ -0,0 +1,30 @@
|
|||
/************************************************************
|
||||
yympcln.c
|
||||
This file can be freely modified for the generation of
|
||||
custom code.
|
||||
|
||||
Copyright (c) 1999 Bumble-Bee Software Ltd.
|
||||
************************************************************/
|
||||
|
||||
#include <stdlib.h>
|
||||
#include "myacc.h"
|
||||
|
||||
#ifdef YYPROTOTYPE
|
||||
void YYCDECL yymparsecleanup(yymparse_t YYFAR *yy)
|
||||
#else
|
||||
void YYCDECL yymparsecleanup(yy)
|
||||
yymparse_t YYFAR *yy;
|
||||
#endif
|
||||
{
|
||||
if (yy->yymstackptr != yy->yymsstackptr) {
|
||||
free(yy->yymstackptr);
|
||||
yy->yymstackptr = yy->yymsstackptr;
|
||||
}
|
||||
if (yy->yymattributestackptr != yy->yymsattributestackptr) {
|
||||
free(yy->yymattributestackptr);
|
||||
yy->yymattributestackptr = yy->yymsattributestackptr;
|
||||
}
|
||||
yy->yymstack_size = yy->yymsstack_size;
|
||||
|
||||
yy->yymtop = -1;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue