Browse Source

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

pre-master-46
rlar 16 years ago
parent
commit
a44cc3dd7e
  1. 4
      ChangeLog
  2. 4
      src/xspice/cmpp/mod_lex.l

4
ChangeLog

@ -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

4
src/xspice/cmpp/mod_lex.l

@ -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…
Cancel
Save