yycoutpt.cpp 683 Bytes
Newer Older
moh_lo's avatar
moh_lo committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
/************************************************************
yycoutpt.cpp
This file can be freely modified for the generation of
custom code.

Copyright (c) 1997-99 P. D. Stearns
************************************************************/

#include <stdio.h>
#include <limits.h>
#include "clex.h"

void yylexer::yyoutput(int ch)
{
	// debugging
#ifdef YYDEBUG
	if (::yydebug || yydebug) {
		char string[128];

		sprintf(string, "%p: output: \'", (void*)this);
		yydebugoutput(string);
		yydebugoutput(ch);
		yydebugoutput("\'\n");
	}
#endif

	yyassert(yyout != NULL);

#ifdef __BORLANDC__
	putc((char)ch, yyout);
#else
	putc(ch, yyout);
#endif
}