summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/main.c b/main.c
index 6a70aca..4e47485 100644
--- a/main.c
+++ b/main.c
@@ -564,9 +564,16 @@ int exit_status;
nlines++;
}
+ fprintf(header_out,"#line %d \"%s\"\n", (++nlines)+1, headerfilename);
+
+ /* Print the prefixed start conditions. */
+ for (i=1; i <= lastsc; i++)
+ fprintf(header_out, "#define %sSC_%s %d\n",
+ strcmp(prefix,"yy") ? prefix : "YY",
+ scname[i], i-1);
+
/* Kill ALL flex-related macros. This is so the user
* can #include more than one generated header file. */
- fprintf(header_out,"#line %d \"%s\"", (++nlines)+1, headerfilename);
fprintf(header_out,"\n");
fprintf(header_out,"#undef BEGIN\n");
fprintf(header_out,"#undef ECHO\n");