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:
@@ -410,6 +410,9 @@ static void StringConst (void)
|
|||||||
/* String buffer */
|
/* String buffer */
|
||||||
StrBuf S = AUTO_STRBUF_INITIALIZER;
|
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
|
/* Concatenate strings. If at least one of the concenated strings is a wide
|
||||||
* character literal, the whole string is a wide char literal, otherwise
|
* character literal, the whole string is a wide char literal, otherwise
|
||||||
* it's a normal string literal.
|
* it's a normal string literal.
|
||||||
@@ -452,7 +455,6 @@ static void StringConst (void)
|
|||||||
|
|
||||||
/* Add the whole string to the literal pool */
|
/* Add the whole string to the literal pool */
|
||||||
NextTok.IVal = AddLiteralStr (&S);
|
NextTok.IVal = AddLiteralStr (&S);
|
||||||
NextTok.Tok = TOK_SCONST;
|
|
||||||
|
|
||||||
/* Free the buffer */
|
/* Free the buffer */
|
||||||
SB_Done (&S);
|
SB_Done (&S);
|
||||||
|
|||||||
Reference in New Issue
Block a user