This commit is contained in:
parent
f857751606
commit
aae2e8e05f
168 changed files with 11625 additions and 0 deletions
27
Utils/Parser Generator/SOURCE/yysback.c
Normal file
27
Utils/Parser Generator/SOURCE/yysback.c
Normal file
|
@ -0,0 +1,27 @@
|
|||
/************************************************************
|
||||
yysback.c
|
||||
This file can be freely modified for the generation of
|
||||
custom code.
|
||||
|
||||
Copyright (c) 1999 Bumble-Bee Software Ltd.
|
||||
************************************************************/
|
||||
|
||||
#include "lex.h"
|
||||
|
||||
#ifdef YYPROTOTYPE
|
||||
int YYCDECL yyback(YYCONST yymatch_t YYNEARFAR *p, int action)
|
||||
#else
|
||||
int YYCDECL yyback(p, action)
|
||||
YYCONST yymatch_t YYNEARFAR *p;
|
||||
int action;
|
||||
#endif
|
||||
{
|
||||
yyassert(p != NULL);
|
||||
yyassert(action < 0);
|
||||
while (*p != 0) {
|
||||
if (*p++ == action) {
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue