]> granicus.if.org Git - flex/commitdiff
Restored EOB accepting list for REJECT.
authorVern Paxson <vern@ee.lbl.gov>
Tue, 16 Jan 1990 11:17:36 +0000 (11:17 +0000)
committerVern Paxson <vern@ee.lbl.gov>
Tue, 16 Jan 1990 11:17:36 +0000 (11:17 +0000)
Second try at 2.2 Release.

gen.c

diff --git a/gen.c b/gen.c
index 2fbe0a62e4eac41f3c47fe86ffef3cda64e2999c..fdc4febf5187d1beda095efabb8c39ca0c5a9042 100644 (file)
--- a/gen.c
+++ b/gen.c
@@ -658,6 +658,14 @@ gentabs()
         * the indices that will go into the "yy_accept" array, and save the
         * indices in the dfaacc array
         */
+       int EOB_accepting_list[2];
+
+       /* set up accepting structures for the End Of Buffer state */
+       EOB_accepting_list[0] = 0;
+       EOB_accepting_list[1] = end_of_buffer_action;
+       accsiz[end_of_buffer_state] = 1;
+       dfaacc[end_of_buffer_state].dfaacc_set = EOB_accepting_list;
+
        printf( C_short_decl, "yy_acclist", max( numas, 1 ) + 1 );
 
        j = 1;  /* index into "yy_acclist" array */