From 8a8d996a5272882defb658b63dfefa8d5428676c Mon Sep 17 00:00:00 2001 From: John Millaway Date: Wed, 29 Jan 2003 20:16:42 +0000 Subject: [PATCH] Fixed trailing slash bug in YY_INPUT macro def. --- gen.c | 4 ++-- misc.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gen.c b/gen.c index 972d0d9..3532af2 100644 --- 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 c663e4c..1873c2a 100644 --- 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); -- 2.40.0