diff options
author | Vern Paxson <vern@ee.lbl.gov> | 1990-03-20 11:30:35 +0000 |
---|---|---|
committer | Vern Paxson <vern@ee.lbl.gov> | 1990-03-20 11:30:35 +0000 |
commit | 3cb1282de13e2f4ce3ebf517a9df26fbe0297f88 (patch) | |
tree | 98e1844b9083d0fc623bcba4b174b65e2d9e5c1c /dfa.c | |
parent | 9099540b4491d86735b74852d9dcea21c37b2cc0 (diff) |
-8 tweaks.
Diffstat (limited to 'dfa.c')
-rw-r--r-- | dfa.c | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -776,7 +776,6 @@ int sns[], numstates, accset[], nacc, hashval, *newds_addr; int didsort = 0; register int i, j; int newds, *oldsns; - char *malloc(); for ( i = 1; i <= lastdfa; ++i ) if ( hashval == dhash[i] ) @@ -1011,8 +1010,14 @@ int symlist[]; if ( tch != SYM_EPSILON ) { if ( tch < -lastccl || tch > csize ) - flexfatal( - "bad transition character detected in sympartition()" ); + { + if ( tch > csize && tch <= CSIZE ) + flexerror( "scanner requires -8 flag" ); + + else + flexfatal( + "bad transition character detected in sympartition()" ); + } if ( tch >= 0 ) { /* character transition */ |