summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorJohn Millaway <john43@users.sourceforge.net>2002-08-10 17:22:00 +0000
committerJohn Millaway <john43@users.sourceforge.net>2002-08-10 17:22:00 +0000
commit43843ddad0cb55efd2763578d965b3f7eacfc57b (patch)
tree2d5b4344b86db98d72cb8f3c5bbec511109572b7 /main.c
parentca0957eab41e94192bc7898b26a06798f0cab302 (diff)
Added alignment flag for future use.
Diffstat (limited to 'main.c')
-rw-r--r--main.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/main.c b/main.c
index fbc7344..538d986 100644
--- a/main.c
+++ b/main.c
@@ -417,6 +417,14 @@ void check_options()
if ( do_yylineno )
buf_strdefine(&userdef_buf,"YY_USE_LINENO","1");
+ /* Create the alignment type. */
+ buf_strdefine(&userdef_buf,"YY_INT_ALIGNED",
+ long_align ? "long int" : "short int");
+
+ /* Now map the equivalence class for NUL to its expected place. */
+ ecgroup[0] = ecgroup[csize];
+ NUL_ec = ABS( ecgroup[0] );
+
/* Dump the user defined preproc directives. */
if (userdef_buf.elts)
outn( (char*)(userdef_buf.elts) );
@@ -583,6 +591,7 @@ int exit_status;
fprintf(header_out,"#undef YY_FLUSH_BUFFER\n");
fprintf(header_out,"#undef YY_G\n");
fprintf(header_out,"#undef YY_INPUT\n");
+ fprintf(header_out,"#undef YY_INT_ALIGNED\n");
fprintf(header_out,"#undef YY_INTERACTIVE\n");
fprintf(header_out,"#undef YY_LAST_ARG\n");
fprintf(header_out,"#undef YY_LEX_ARGS\n");
@@ -1650,10 +1659,6 @@ _( "Variable trailing context rules entail a large performance penalty\n" ) );
else
numecs = csize;
- /* Now map the equivalence class for NUL to its expected place. */
- ecgroup[0] = ecgroup[csize];
- NUL_ec = ABS( ecgroup[0] );
-
if ( useecs )
ccl2ecl();
}