SBSPSS/Utils/Parser Generator/SOURCE/yymback.c
2000-12-08 20:40:33 +00:00

28 lines
561 B
C

/************************************************************
yymback.c
This file can be freely modified for the generation of
custom code.
Copyright (c) 1999 Bumble-Bee Software Ltd.
************************************************************/
#include "mlex.h"
#ifdef YYPROTOTYPE
int YYCDECL yymback(YYCONST yymatch_t YYNEARFAR *p, int action)
#else
int YYCDECL yymback(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;
}