projects
/
cparser
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Implement U, u and u8 strings.
[cparser]
/
token.c
diff --git
a/token.c
b/token.c
index
7d2104c
..
50de656
100644
(file)
--- a/
token.c
+++ b/
token.c
@@
-95,8
+95,11
@@
void print_token_kind(FILE *f, token_kind_t token_kind)
char const *get_string_encoding_prefix(string_encoding_t const enc)
{
switch (enc) {
char const *get_string_encoding_prefix(string_encoding_t const enc)
{
switch (enc) {
- case STRING_ENCODING_CHAR: return "";
- case STRING_ENCODING_WIDE: return "L";
+ case STRING_ENCODING_CHAR: return "";
+ case STRING_ENCODING_CHAR16: return "u";
+ case STRING_ENCODING_CHAR32: return "U";
+ case STRING_ENCODING_UTF8: return "u8";
+ case STRING_ENCODING_WIDE: return "L";
}
panic("invalid string encoding");
}
}
panic("invalid string encoding");
}