From fd6ee792d251e9ff28372ec39934a6a14ce346ad Mon Sep 17 00:00:00 2001 From: Vern Paxson Date: Tue, 16 Jan 1990 11:17:36 +0000 Subject: [PATCH] Restored EOB accepting list for REJECT. Second try at 2.2 Release. --- gen.c | 8 ++++++++ 1 file changed, 8 insertions(+) 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 */ -- 2.40.0