for c++, lex input() function is named yyinput()
This commit is contained in:
parent
1bb9d1c633
commit
a44cc3dd7e
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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");}}
|
||||
|
|
|
|||
Loading…
Reference in New Issue