This commit is contained in:
parent
f857751606
commit
aae2e8e05f
168 changed files with 11625 additions and 0 deletions
42
Utils/Parser Generator/SOURCE/yymoutpt.c
Normal file
42
Utils/Parser Generator/SOURCE/yymoutpt.c
Normal file
|
@ -0,0 +1,42 @@
|
|||
/************************************************************
|
||||
yymoutpt.c
|
||||
This file can be freely modified for the generation of
|
||||
custom code.
|
||||
|
||||
Copyright (c) 1999 Bumble-Bee Software Ltd.
|
||||
************************************************************/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <limits.h>
|
||||
#include "mlex.h"
|
||||
|
||||
#ifdef YYPROTOTYPE
|
||||
void YYCDECL yymoutput(yymlex_t YYFAR *yy, int ch)
|
||||
#else
|
||||
void YYCDECL yymoutput(yy, ch)
|
||||
yymlex_t YYFAR *yy;
|
||||
int ch;
|
||||
#endif
|
||||
{
|
||||
yyassert(yy != NULL);
|
||||
|
||||
/* debugging */
|
||||
#ifdef YYDEBUG
|
||||
if (yydebug || yy->yymdebug) {
|
||||
char string[128];
|
||||
|
||||
sprintf(string, "%p: output: \'", (void *) yy);
|
||||
yymlexdebugoutput(yy, string);
|
||||
yymdebugoutput(yy, ch);
|
||||
yymlexdebugoutput(yy, "\'\n");
|
||||
}
|
||||
#endif
|
||||
|
||||
yyassert(yy->yymout != NULL);
|
||||
|
||||
#ifdef __BORLANDC__
|
||||
putc((char) ch, yy->yymout);
|
||||
#else
|
||||
putc(ch, yy->yymout);
|
||||
#endif
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue