0
0
mirror of https://github.com/netwide-assembler/nasm.git synced 2025-10-10 00:25:06 -04:00

qstring: backquoted strings seem to work now...

Hopefully backquoted strings should work correctly now.
This commit is contained in:
H. Peter Anvin
2008-06-01 21:34:49 -07:00
parent 8cad14bbcf
commit 6ecc159a54
5 changed files with 112 additions and 47 deletions

17
quote.c
View File

@@ -340,6 +340,23 @@ size_t nasm_unquote(char *str)
break;
}
}
switch (state) {
case st_start:
case st_backslash:
break;
case st_oct:
*q++ = nval;
break;
case st_hex:
*q++ = ndig ? nval : *escp;
break;
case st_ucs:
if (ndig)
q = emit_utf8(q, nval);
else
*q++ = *escp;
break;
}
*q = '\0';
return q-str;
}