diff options
author | John Millaway <john43@users.sourceforge.net> | 2002-08-16 22:32:02 +0000 |
---|---|---|
committer | John Millaway <john43@users.sourceforge.net> | 2002-08-16 22:32:02 +0000 |
commit | 6d7c3321ba710da3a984ec5da9dc7faf4bbcca23 (patch) | |
tree | aef195d74a0e584597ac7e1c478eb0d1675d543d /misc.c | |
parent | 2bb924b502c41a23ab2bc8a29355f08746f8eb21 (diff) |
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 ); + } } } |