summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorJohn Millaway <john43@users.sourceforge.net>2002-08-14 00:46:59 +0000
committerJohn Millaway <john43@users.sourceforge.net>2002-08-14 00:46:59 +0000
commit318787eade383c5b8ed3a65ff7adb212a88d3aa9 (patch)
tree66331dfcafc8a11e85665d0d6e4df4519e062baa /main.c
parent2de61eb3df07519dfa02fbc44ab244603d1a901e (diff)
Start condition prefixes attempts to adjust to user preferences.
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. */