diff options
author | millaway <millaway> | 2002-08-16 22:32:02 +0000 |
---|---|---|
committer | millaway <millaway> | 2002-08-16 22:32:02 +0000 |
commit | 871c02ac63c05640184ea482446a7da65a7e184b (patch) | |
tree | 8eb307ec83a1b325648a331b308c1570f7705a3b /misc.c | |
parent | 728bec05b43762fd09b50bf4155fcaea35a5703c (diff) | |
download | flex-871c02ac63c05640184ea482446a7da65a7e184b.tar.gz |
Added --tables option.
Omitted tables code from generated scanner when unused.
Diffstat (limited to 'misc.c')
-rw-r--r-- | misc.c | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -842,9 +842,10 @@ void skelout() /* a comment in the skel. ignore. */ break; - case 't': - /* %t - toggle tables api */ - break; + case 't': + /* %t - toggle tables api */ + tablestoggle = !tablestoggle; + break; default: flexfatal( @@ -853,7 +854,10 @@ void skelout() } else if ( do_copy ) + { + if (tablesext || !tablestoggle) outn( buf ); + } } } |