mirror of
https://github.com/cc65/cc65.git
synced 2025-01-26 17:36:57 +00:00
Fixed problem with last change. Wide string constants were not handled
correctly. git-svn-id: svn://svn.cc65.org/cc65/trunk@4500 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
50ff6d0768
commit
9b7c16ec4c
@ -406,10 +406,13 @@ static void CharConst (void)
|
||||
|
||||
static void StringConst (void)
|
||||
/* Parse a quoted string */
|
||||
{
|
||||
{
|
||||
/* String buffer */
|
||||
StrBuf S = AUTO_STRBUF_INITIALIZER;
|
||||
|
||||
/* Assume next token is a string constant */
|
||||
NextTok.Tok = TOK_SCONST;
|
||||
|
||||
/* Concatenate strings. If at least one of the concenated strings is a wide
|
||||
* character literal, the whole string is a wide char literal, otherwise
|
||||
* it's a normal string literal.
|
||||
@ -452,7 +455,6 @@ static void StringConst (void)
|
||||
|
||||
/* Add the whole string to the literal pool */
|
||||
NextTok.IVal = AddLiteralStr (&S);
|
||||
NextTok.Tok = TOK_SCONST;
|
||||
|
||||
/* Free the buffer */
|
||||
SB_Done (&S);
|
||||
|
Loading…
x
Reference in New Issue
Block a user