This commit is contained in:
parent
f857751606
commit
aae2e8e05f
168 changed files with 11625 additions and 0 deletions
33
Utils/Parser Generator/SOURCE/yycpop.cpp
Normal file
33
Utils/Parser Generator/SOURCE/yycpop.cpp
Normal file
|
@ -0,0 +1,33 @@
|
|||
/************************************************************
|
||||
yycpop.cpp
|
||||
This file can be freely modified for the generation of
|
||||
custom code.
|
||||
|
||||
Copyright (c) 1999 Bumble-Bee Software Ltd.
|
||||
************************************************************/
|
||||
|
||||
#include "cyacc.h"
|
||||
|
||||
#ifdef YYDEBUG
|
||||
void yyparser::yypop(int num)
|
||||
{
|
||||
yyassert(num >= 0);
|
||||
yytop -= num;
|
||||
yyassert(yytop >= -1);
|
||||
|
||||
// debugging
|
||||
if (::yydebug || yydebug) {
|
||||
if (num > 0) {
|
||||
char string[128];
|
||||
|
||||
sprintf(string, "%p: pop %d state(s)", (void*)this, (int)num);
|
||||
yydebugoutput(string);
|
||||
if (yytop >= 0) {
|
||||
sprintf(string, " uncovering state %d", (int)yystackptr[yytop]);
|
||||
yydebugoutput(string);
|
||||
}
|
||||
yydebugoutput("\n");
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue