summaryrefslogtreecommitdiff
path: root/misc.c
diff options
context:
space:
mode:
authormillaway <millaway>2002-08-16 22:32:02 +0000
committermillaway <millaway>2002-08-16 22:32:02 +0000
commit871c02ac63c05640184ea482446a7da65a7e184b (patch)
tree8eb307ec83a1b325648a331b308c1570f7705a3b /misc.c
parent728bec05b43762fd09b50bf4155fcaea35a5703c (diff)
downloadflex-871c02ac63c05640184ea482446a7da65a7e184b.tar.gz
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 );
+ }
}
}