]> granicus.if.org Git - flex/commitdiff
fixed bug in needing yy_cp for -Cf w/ backing up
authorVern Paxson <vern@ee.lbl.gov>
Thu, 20 Apr 1995 10:55:33 +0000 (10:55 +0000)
committerVern Paxson <vern@ee.lbl.gov>
Thu, 20 Apr 1995 10:55:33 +0000 (10:55 +0000)
gen.c

diff --git a/gen.c b/gen.c
index 192b0ddacdd33ba8c9372a67cc32129d04476b4b..aea8d0e1e02f21944eaa2fc2364d973055ab9540 100644 (file)
--- 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' );