]> granicus.if.org Git - flex/commitdiff
-8 tweaks.
authorVern Paxson <vern@ee.lbl.gov>
Tue, 20 Mar 1990 11:30:35 +0000 (11:30 +0000)
committerVern Paxson <vern@ee.lbl.gov>
Tue, 20 Mar 1990 11:30:35 +0000 (11:30 +0000)
dfa.c

diff --git a/dfa.c b/dfa.c
index a35b3075ce50351e953586e7e96c6715454cc0fb..5502a55c8fbba68466aab45c1f9d9fb719aad874 100644 (file)
--- a/dfa.c
+++ b/dfa.c
@@ -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 */