#182 Loop-states vs. B|uffer limit code

open
nobody
None
1
2014-03-09
2014-03-09
No

When there is a loop-state of the form

                 else
             .-----<----.
             |          |  
         .------.       |
    -----|      |-------+------>
         '------'          x

The same trick can be applied as for the 'range/nested_range' skippers.
That is, store 'x' at the position of the 'text_end' (buffer end or end
of file position). Then drop out on 'x' and check whether input_p == text_end.
if so, goto reload.

Advantage: The loop becomes a very simple 'while( *(input_p++) != x) ;
which is very fast!

Discussion


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks