diff options
author | H. Peter Anvin <hpa@zytor.com> | 2019-04-22 14:29:29 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2019-04-22 14:34:22 -0700 |
commit | bb42d30737f28485c6a1133e73038840b5bf920c (patch) | |
tree | e1257690dba04296b713b4f9a12271edac167e22 /asm/quote.h | |
parent | 982186a1a3139763f2aa2710b32236009f64270d (diff) | |
download | nasm-bb42d30737f28485c6a1133e73038840b5bf920c.tar.gz |
quote: disallow control characters in C strings; concatendate; cleanups
In nasm_unquote_cstr(), disallow any control character, not just
NUL. This will matter when allowing quoting symbols.
Merge nasm_unquote() and nasm_unquote_cstr().
Strings can now be concatenated, C style: adjacent quoted strings
(including whitespace-separated) are merged into a single string.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'asm/quote.h')
-rw-r--r-- | asm/quote.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/asm/quote.h b/asm/quote.h index 2d8ce87b..0fc8e249 100644 --- a/asm/quote.h +++ b/asm/quote.h @@ -38,6 +38,7 @@ char *nasm_quote(const char *str, size_t len); size_t nasm_unquote(char *str, char **endptr); +size_t nasm_unquote_cstr(char *str, char **endptr); char *nasm_skip_string(char *str); #endif /* NASM_QUOTE_H */ |