summaryrefslogtreecommitdiff
path: root/gen.c
diff options
context:
space:
mode:
authorVern Paxson <vern@ee.lbl.gov>1995-04-20 10:55:33 +0000
committerVern Paxson <vern@ee.lbl.gov>1995-04-20 10:55:33 +0000
commit527f2457a227bf612566356fd2a0d4f607cb6174 (patch)
tree5c206dda9426ac475743ccb2138ba681c823f908 /gen.c
parent0048a5be05ed2dbff0c5cab4076383a35f3f3e96 (diff)
fixed bug in needing yy_cp for -Cf w/ backing up
Diffstat (limited to 'gen.c')
-rw-r--r--gen.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gen.c b/gen.c
index 192b0dd..aea8d0e 100644
--- a/gen.c
+++ b/gen.c
@@ -668,8 +668,10 @@ void gen_NUL_trans()
*/
int need_backing_up = (num_backing_up > 0 && ! reject);
- if ( need_backing_up && ! nultrans )
- /* We'll need yy_cp lying around for the gen_backing_up(). */
+ if ( need_backing_up && (! nultrans || fullspd || fulltbl) )
+ /* We're going to need yy_cp lying around for the call
+ * below to gen_backing_up().
+ */
indent_puts( "register char *yy_cp = yy_c_buf_p;" );
outc( '\n' );