home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power Programmierung 2
/
Power-Programmierung CD 2 (Tewi)(1994).iso
/
c
/
compcomp
/
lex
/
lexinp.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1989-12-11
|
413 b
|
34 lines
#include <lex.h>
int save_tok = LEXERR;
int input(void)
{
extern FILE *lexin;
fgetc(lexin);
/***
int retval;
if (save_tok != LEXERR)
{
retval = save_tok;
save_tok = LEXERR;
return(retval);
}
return(yylex());
***/
}
unput(int tok)
{
extern FILE *lexin;
ungetc(tok, lexin);
/***
save_tok = tok;
***/
}