From f24b05a6e4805ab470ab0deba8a218684438603a Mon Sep 17 00:00:00 2001 From: borutr Date: Sat, 22 Dec 2007 13:05:08 +0000 Subject: [PATCH] * src/SDCC.lex: fixed bug #1852894: # character hangs the compiler git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4981 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- ChangeLog | 4 ++++ src/SDCC.lex | 6 ++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index ded25afa..f4ab4caa 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2007-12-22 Borut Razem + + * src/SDCC.lex: fixed bug #1852894: # character hangs the compiler + 2007-12-20 Maarten Brock * src/SDCCsymt.c (computeType): fixed bug, thanks Fan Weiguang diff --git a/src/SDCC.lex b/src/SDCC.lex index 91f8bf31..e0038cc6 100644 --- a/src/SDCC.lex +++ b/src/SDCC.lex @@ -501,8 +501,10 @@ static const char *stringLiteral(void) dbuf_destroy(&linebuf); } else - unput(ch); - break; + { + unput(ch); + goto out; + } default: count_char(ch); -- 2.39.5