diff options
author | Vern Paxson <vern@ee.lbl.gov> | 1995-04-20 10:55:33 +0000 |
---|---|---|
committer | Vern Paxson <vern@ee.lbl.gov> | 1995-04-20 10:55:33 +0000 |
commit | 527f2457a227bf612566356fd2a0d4f607cb6174 (patch) | |
tree | 5c206dda9426ac475743ccb2138ba681c823f908 /gen.c | |
parent | 0048a5be05ed2dbff0c5cab4076383a35f3f3e96 (diff) |
fixed bug in needing yy_cp for -Cf w/ backing up
Diffstat (limited to 'gen.c')
-rw-r--r-- | gen.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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' ); |