summaryrefslogtreecommitdiff
path: root/dfa.c
diff options
context:
space:
mode:
authorVern Paxson <vern@ee.lbl.gov>1993-10-02 13:37:14 +0000
committerVern Paxson <vern@ee.lbl.gov>1993-10-02 13:37:14 +0000
commite1cffb75bcf9e136cf9947834382344a8d6d0bb8 (patch)
tree464d4568ce7b9aaaf077cd13072dc058bd6cba18 /dfa.c
parentaad7b2b167fb0d36a01fa8d38a80ac2c8689f70c (diff)
Added -a option for long-align.
Diffstat (limited to 'dfa.c')
-rw-r--r--dfa.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/dfa.c b/dfa.c
index 7afd879..4016e85 100644
--- a/dfa.c
+++ b/dfa.c
@@ -526,12 +526,12 @@ void ntod()
*/
num_full_table_rows = numecs + 1;
- /* Declare it "short" because it's a real long-shot that that
- * won't be large enough.
+ /* Unless -a, declare it "short" because it's a real
+ * long-shot that that won't be large enough.
*/
- printf( "static const short yy_nxt[][%d] =\n {\n",
+ printf( "static const %s yy_nxt[][%d] =\n {\n",
/* '}' so vi doesn't get too confused */
- num_full_table_rows );
+ long_align ? "long" : "short", num_full_table_rows );
/* Generate 0 entries for state #0. */
for ( i = 0; i < num_full_table_rows; ++i )