]> Shamusworld >> Repos - rmac/blobdiff - token.c
Minor tweaking from last round of patching, version bump. :-)
[rmac] / token.c
diff --git a/token.c b/token.c
index 00ead96bdf7c0d9f866744433e4779ca620ed4ae..0887d93b1b47bc29e0d24cf9064c6e5cf96c8c71 100644 (file)
--- a/token.c
+++ b/token.c
@@ -1162,7 +1162,6 @@ if (debug) printf("TokenizeLine: Calling fpop() from SRC_IREPT...\n");
                // Handle multiple-character tokens
                if (c & MULTX)
                {
-                       stringtype = 0;
 
                        switch (*ln++)
                        {
@@ -1178,22 +1177,19 @@ if (debug) printf("TokenizeLine: Calling fpop() from SRC_IREPT...\n");
                                continue;
                        case '\'':              // 'string'
                                if (m6502)
-                                       stringtype = A8INT; // hardcoded for now, maybe this will change in the future
-
+                               {
+                                       // Hardcoded for now, maybe this will change in the future
+                                       *tk++ = STRINGA8;
+                                       goto dostring;
+                               }
                                // Fall through
                        case '\"':              // "string"
-                               c1 = ln[-1];
                                *tk++ = STRING;
-//#warning
-// More char * stuffing (8 bytes) into the space of 4 (TOKEN).
-// Need to figure out how to fix this crap.
-#if 0
-                               *tk++ = (TOKEN)ln;
-#else
+dostring:
+                               c1 = ln[-1];
                                string[stringNum] = ln;
                                *tk++ = stringNum;
                                stringNum++;
-#endif
 
                                for(p=ln; *ln!=EOS && *ln!=c1;)
                                {