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:
17
quote.c
17
quote.c
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user