This commit is contained in:
parent
f857751606
commit
aae2e8e05f
168 changed files with 11625 additions and 0 deletions
38
Utils/Parser Generator/SOURCE/yyssskip.c
Normal file
38
Utils/Parser Generator/SOURCE/yyssskip.c
Normal file
|
@ -0,0 +1,38 @@
|
|||
/************************************************************
|
||||
yyssskip.c
|
||||
This file can be freely modified for the generation of
|
||||
custom code.
|
||||
|
||||
Copyright (c) 1999 Bumble-Bee Software Ltd.
|
||||
************************************************************/
|
||||
|
||||
#include <stdio.h>
|
||||
#include "yacc.h"
|
||||
|
||||
#ifdef YYDEBUG
|
||||
#ifdef YYPROTOTYPE
|
||||
void YYCDECL yysetskip(int skip)
|
||||
#else
|
||||
void YYCDECL yysetskip(skip)
|
||||
int skip;
|
||||
#endif
|
||||
{
|
||||
yyassert(skip >= 0);
|
||||
|
||||
/* debugging */
|
||||
if (yydebug || yyparsedebug) {
|
||||
if (skip > 0) {
|
||||
if (yyskip == 0) {
|
||||
yyparsedebugoutput("entering error recovery\n");
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (yyskip > 0) {
|
||||
yyparsedebugoutput("leaving error recovery\n");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
yyskip = skip;
|
||||
}
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue