aboutsummaryrefslogtreecommitdiff
path: root/src/c_tokenizer.hpp
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2016-07-09 12:17:31 -0700
committerAndrew Kelley <superjoe30@gmail.com>2016-07-09 12:17:31 -0700
commita5251a1c102334a5dcb07e4fcc2b676be55fe2be (patch)
tree459d720365823b10473be028d25ad86b87b825f5 /src/c_tokenizer.hpp
parent100e8e15fa087be8975173c03a2f89b227b16730 (diff)
downloadzig-a5251a1c102334a5dcb07e4fcc2b676be55fe2be.tar.gz
zig-a5251a1c102334a5dcb07e4fcc2b676be55fe2be.zip
parseh: support octal in C macro string literal
Diffstat (limited to 'src/c_tokenizer.hpp')
-rw-r--r--src/c_tokenizer.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/c_tokenizer.hpp b/src/c_tokenizer.hpp
index bf8fa1a841..06b2437c88 100644
--- a/src/c_tokenizer.hpp
+++ b/src/c_tokenizer.hpp
@@ -53,6 +53,7 @@ enum CTokState {
CTokStateExpSign,
CTokStateFloatExp,
CTokStateFloatExpFirst,
+ CTokStateStrOctal,
};
struct CTokenize {
@@ -63,6 +64,8 @@ struct CTokenize {
Buf buf;
bool unsigned_suffix;
bool long_suffix;
+ uint8_t cur_char;
+ int octal_index;
};
void tokenize_c_macro(CTokenize *ctok, const uint8_t *c);