summaryrefslogtreecommitdiff
path: root/misc.c
diff options
context:
space:
mode:
authorJohn Millaway <john43@users.sourceforge.net>2002-08-16 22:32:02 +0000
committerJohn Millaway <john43@users.sourceforge.net>2002-08-16 22:32:02 +0000
commit6d7c3321ba710da3a984ec5da9dc7faf4bbcca23 (patch)
treeaef195d74a0e584597ac7e1c478eb0d1675d543d /misc.c
parent2bb924b502c41a23ab2bc8a29355f08746f8eb21 (diff)
Added --tables option.
Omitted tables code from generated scanner when unused.
Diffstat (limited to 'misc.c')
-rw-r--r--misc.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/misc.c b/misc.c
index ab09657..976ea18 100644
--- a/misc.c
+++ b/misc.c
@@ -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 );
+ }
}
}