]> git.sur5r.net Git - cc65/blobdiff - src/cc65/pragma.c
Rewrote literal handling. Literals are now saved together with other function
[cc65] / src / cc65 / pragma.c
index 37ae1bbb140991cbab8a7c3741c3024e533d8f2a..9ca49313771548f1745660d02577e2f4c6d857e0 100644 (file)
@@ -652,14 +652,7 @@ static void ParsePragma (void)
 
     /* Create a string buffer from the string literal */
     StrBuf B = AUTO_STRBUF_INITIALIZER;
-    GetLiteralStrBuf (&B, CurTok.IVal);
-
-    /* Reset the string pointer, effectivly clearing the string from the
-     * string table. Since we're working with one token lookahead, this
-     * will fail if the next token is also a string token, but that's a
-     * syntax error anyway, because we expect a right paren.
-     */
-    ResetLiteralPoolOffs (CurTok.IVal);
+    SB_Append (&B, GetLiteralStrBuf (CurTok.SVal));
 
     /* Skip the string token */
     NextToken ();