summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/main.c b/main.c
index 4e47485..5edbd18 100644
--- a/main.c
+++ b/main.c
@@ -568,9 +568,8 @@ int exit_status;
/* 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);
+ fprintf(header_out, "#define %s %d\n",
+ fix_scname(linebuf,scname[i]), i-1);
/* Kill ALL flex-related macros. This is so the user
* can #include more than one generated header file. */