]> granicus.if.org Git - flex/commitdiff
Fixed trailing slash bug in YY_INPUT macro def.
authorJohn Millaway <john43@users.sourceforge.net>
Wed, 29 Jan 2003 20:16:42 +0000 (20:16 +0000)
committerJohn Millaway <john43@users.sourceforge.net>
Wed, 29 Jan 2003 20:16:42 +0000 (20:16 +0000)
gen.c
misc.c

diff --git a/gen.c b/gen.c
index 972d0d9f3075841cb35c55a83b073fc68cfe01cb..3532af2dc6670483596870763f9f1eef812bbdec 100644 (file)
--- a/gen.c
+++ b/gen.c
@@ -1894,7 +1894,7 @@ void make_tables ()
                        outn ("\t\t} \\");
                        outn ("\t\terrno=0; \\");
                        outn ("\t\tclearerr(yyin); \\");
-                       outn ("\t}");
+                       outn ("\t}\\");
                }
 
                else {
@@ -1924,7 +1924,7 @@ void make_tables ()
                        outn ("\t\t\terrno=0; \\");
                        outn ("\t\t\tclearerr(yyin); \\");
                        outn ("\t\t\t} \\");
-                       outn ("\t\t}");
+                       outn ("\t\t}\\");
                }
        }
 
diff --git a/misc.c b/misc.c
index c663e4c8bc480342ec28ce33766a94307b21931e..1873c2a82eb3a96deec619520e82a5c2282d927d 100644 (file)
--- a/misc.c
+++ b/misc.c
@@ -899,15 +899,15 @@ void skelout ()
                 sko_push(do_copy);
                 if(ddebug){
                     out_str("/*(state = (%s) */",do_copy?"true":"false");
-                    out_str("%s\n", buf[strlen (buf) - 1] =='\\' ? "\\" : "");
                 }
+                out_str("%s\n", buf[strlen (buf) - 1] =='\\' ? "\\" : "");
             }
             else if (cmd_match (CMD_POP)){
                 sko_pop(&do_copy);
                 if(ddebug){
                     out_str("/*(state = (%s) */",do_copy?"true":"false");
-                    out_str("%s\n", buf[strlen (buf) - 1] =='\\' ? "\\" : "");
                 }
+                out_str("%s\n", buf[strlen (buf) - 1] =='\\' ? "\\" : "");
             }
             else if (cmd_match (CMD_IF_REENTRANT)){
                 sko_push(do_copy);