Fix VC++'s problems with re2c 0.16
- I'm surprised GCC didn't complain about all the struct/class mismatches. - INFINITY is a macro in VC++ land, so rename it to INFINITI.
This commit is contained in:
parent
43c6c9b5ee
commit
f3ab0ff41b
7 changed files with 18 additions and 13 deletions
|
|
@ -106,7 +106,7 @@ void DFA::emit_body (OutputFile & o, uint32_t& ind, const std::set<label_t> & us
|
|||
for (State * s = head; s; s = s->next)
|
||||
{
|
||||
bool readCh = false;
|
||||
emit_state (o, ind, s, used_labels.count (s->label));
|
||||
emit_state (o, ind, s, used_labels.count (s->label) != 0);
|
||||
emit_action (s->action, o, ind, readCh, s, cond, skeleton, used_labels, save_yyaccept);
|
||||
s->go.emit(o, ind, readCh);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue