"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/idbase.cc" between
ragel-7.0.0.11.tar.gz and ragel-7.0.0.12.tar.gz

About: Ragel compiles executable finite state machines from regular languages (C, C++, Obj-C, C#, D, Java, Go and Ruby). Development version.

idbase.cc  (ragel-7.0.0.11):idbase.cc  (ragel-7.0.0.12)
skipping to change at line 263 skipping to change at line 263
{ {
for ( StateList::Iter st = fsm->stateList; st.lte(); st++ ) { for ( StateList::Iter st = fsm->stateList; st.lte(); st++ ) {
if ( st->nfaOut != 0 ) { if ( st->nfaOut != 0 ) {
for ( NfaTransList::Iter n = *st->nfaOut; n.lte(); n++ ) { for ( NfaTransList::Iter n = *st->nfaOut; n.lte(); n++ ) {
/* Move pop restore actions into poptest. Wrap to override the /* Move pop restore actions into poptest. Wrap to override the
* condition-like testing. */ * condition-like testing. */
for ( ActionTable::Iter ati = n->restoreTable; at i.lte(); ati++ ) { for ( ActionTable::Iter ati = n->restoreTable; at i.lte(); ati++ ) {
n->popTest.setAction( ati->key, ati->valu e ); n->popTest.setAction( ati->key, ati->valu e );
} }
/* Move pop actions into pop test. Wrap to overri
de the
* condition-like testing. */
for ( ActionTable::Iter ati = n->popFrom; ati.lte
(); ati++ ) {
InlineList *il1 = new InlineList;
il1->append( new InlineItem( InputLoc(),
ati->value, Inlin
eItem::NfaWrapAction ) );
Action *wrap = newNfaWrapAction( "action_
wrap", il1, ati->value );
n->popTest.setAction( ORD_COND2, wrap );
}
/* Move condition evaluation into pop test. Wrap with condition /* Move condition evaluation into pop test. Wrap with condition
* execution. */ * execution. */
if ( n->popCondSpace != 0 ) { if ( n->popCondSpace != 0 ) {
InlineList *il1 = new InlineList; InlineList *il1 = new InlineList;
il1->append( new InlineItem( InputLoc(), il1->append( new InlineItem( InputLoc(),
n->popCondSpace, n->popCo ndKeys, n->popCondSpace, n->popCo ndKeys,
InlineItem::NfaWrapConds ) ); InlineItem::NfaWrapConds ) );
Action *wrap = newNfaWrapAction( "cond_wr ap", il1, 0 ); Action *wrap = newNfaWrapAction( "cond_wr ap", il1, 0 );
n->popTest.setAction( ORD_COND, wrap ); n->popTest.setAction( ORD_COND, wrap );
} }
 End of changes. 1 change blocks. 
0 lines changed or deleted 15 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)