From 318787eade383c5b8ed3a65ff7adb212a88d3aa9 Mon Sep 17 00:00:00 2001 From: John Millaway Date: Wed, 14 Aug 2002 00:46:59 +0000 Subject: Start condition prefixes attempts to adjust to user preferences. --- main.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'main.c') 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. */ -- cgit v1.2.3