diff options
author | H. Peter Anvin <hpa@zytor.com> | 2012-02-25 15:29:37 -0800 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2012-02-25 15:29:37 -0800 |
commit | 9fa2e72997b698107b7c5a02e8f03e84e8d8fb74 (patch) | |
tree | 7de3095e072a8b4a88631fc31055b17ab82a375f /nasm.h | |
parent | 5a24fdd547f4c02fe46c37b84a020febfa41bfd2 (diff) | |
download | nasm-9fa2e72997b698107b7c5a02e8f03e84e8d8fb74.tar.gz nasm-9fa2e72997b698107b7c5a02e8f03e84e8d8fb74.tar.bz2 nasm-9fa2e72997b698107b7c5a02e8f03e84e8d8fb74.zip |
Add support for UTF-16BE and UTF-32BE
Add support for bigendian UTF-16 and UTF-32, and (for symmetry) add
explicitly littleendian operators.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'nasm.h')
-rw-r--r-- | nasm.h | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -224,7 +224,7 @@ enum token_type { /* token types, other than chars */ TOKEN_SEG, /* SEG */ TOKEN_WRT, /* WRT */ TOKEN_FLOATIZE, /* __floatX__ */ - TOKEN_STRFUNC, /* __utf16__, __utf32__ */ + TOKEN_STRFUNC, /* __utf16*__, __utf32*__ */ }; enum floatize { @@ -241,7 +241,11 @@ enum floatize { /* Must match the list in string_transform(), in strfunc.c */ enum strfunc { STRFUNC_UTF16, + STRFUNC_UTF16LE, + STRFUNC_UTF16BE, STRFUNC_UTF32, + STRFUNC_UTF32LE, + STRFUNC_UTF32BE, }; size_t string_transform(char *, size_t, char **, enum strfunc); |