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

36 lines
726 B
C++

/************************************************************
yyclcln.cpp
This file can be freely modified for the generation of
custom code.
Copyright (c) 1999 Bumble-Bee Software Ltd.
************************************************************/
#include <stdlib.h>
#include <malloc.h>
#include "clex.h"
void yylexer::yycleanup()
{
if (yytext != yystext) {
free(yytext);
yytext = yystext;
}
if (yystatebuf != yysstatebuf) {
free(yystatebuf);
yystatebuf = yysstatebuf;
}
if (yyunputbufptr != yysunputbufptr) {
free(yyunputbufptr);
yyunputbufptr = yysunputbufptr;
}
yytext_size = yystext_size;
yyunput_size = yysunput_size;
if (yytext != NULL) {
*yytext = '\0';
}
yyleng = 0;
yyunputindex = 0;
}