summaryrefslogtreecommitdiff
path: root/gen.c
diff options
context:
space:
mode:
authorVern Paxson <vern@ee.lbl.gov>1990-01-16 11:17:36 +0000
committerVern Paxson <vern@ee.lbl.gov>1990-01-16 11:17:36 +0000
commitfd6ee792d251e9ff28372ec39934a6a14ce346ad (patch)
tree80c4421aa351bc2e8134bbd7e2148fe75b5ec2f9 /gen.c
parent1d59e0b135c3b3dcb119af1f4045c856a7d9dec7 (diff)
downloadflex-git-fd6ee792d251e9ff28372ec39934a6a14ce346ad.tar.gz
Restored EOB accepting list for REJECT.
Second try at 2.2 Release.
Diffstat (limited to 'gen.c')
-rw-r--r--gen.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/gen.c b/gen.c
index 2fbe0a6..fdc4feb 100644
--- 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 */