Fix compile error when have ':' in stringize string
--------- test code -------- static const stock s[]="string"#:x; native print(const s[]); native printf(const s[], ...); main() { print(s); new x = 1; printf("%s", x ? "y" : "n"); } ----- end of test code ----- Fixes #33.
This commit is contained in:
parent
593cc13058
commit
7a8ae4b4d7
@ -1829,7 +1829,7 @@ static const unsigned char *unpackedstring(const unsigned char *lptr,int *flags)
|
||||
*flags &= ~STRINGIZE;
|
||||
continue;
|
||||
} else if (*stringize==',' || *stringize==')' || *stringize=='}' ||
|
||||
*stringize==';' || *stringize==':') { /* end */
|
||||
*stringize==';') { /* end */
|
||||
lptr=stringize;
|
||||
break;
|
||||
} else if (*stringize=='\0') {
|
||||
@ -1903,7 +1903,7 @@ static const unsigned char *packedstring(const unsigned char *lptr,int *flags)
|
||||
*flags &= ~STRINGIZE;
|
||||
continue;
|
||||
} else if (*stringize==',' || *stringize==')' || *stringize=='}' ||
|
||||
*stringize==';' || *stringize==':') { /* end */
|
||||
*stringize==';') { /* end */
|
||||
lptr=stringize;
|
||||
break;
|
||||
} else if (*stringize=='\0') {
|
||||
|
Loading…
x
Reference in New Issue
Block a user