for c++, lex input() function is named yyinput()

This commit is contained in:
rlar 2010-07-11 19:22:36 +00:00
parent 1bb9d1c633
commit a44cc3dd7e
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2010-07-11 Robert Larice
* src/xspice/cmpp/mod_lex.l :
for c++, lex input() function is named yyinput()
2010-07-11 Robert Larice
* src/spicelib/parser/inpptree.c :
missing (void*) casts

View File

@ -57,7 +57,11 @@ Z [0-9A-Za-z_]
ch = '\0';
do {
last_ch = ch;
#ifdef __cplusplus
ch = yyinput();
#else
ch = input();
#endif
fputc(ch,mod_yyout);
} while (ch && !((last_ch == '*') && (ch == '/')));
if (!ch) {mod_yyerror ("Unterminated comment");}}