diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-04-09 15:17:11 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-04-09 15:17:11 -0700 |
commit | e0bf9210e82903981c95ea9a0cdce28e2aaa085a (patch) | |
tree | da2f46ef3897a81d19596a835a713e17347997cb /src | |
parent | caf96166b682fff077d9a181eb61108592f7d6e5 (diff) |
allow anonmyous empty structs
Diffstat (limited to 'src')
-rw-r--r-- | src/parseTools.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parseTools.js b/src/parseTools.js index 22f38207..428c2b25 100644 --- a/src/parseTools.js +++ b/src/parseTools.js @@ -123,7 +123,7 @@ function isPointerType(type) { function isStructType(type) { if (isPointerType(type)) return false; if (/^\[\d+\ x\ (.*)\]/.test(type)) return true; // [15 x ?] blocks. Like structs - if (/<?{ [^}]* }>?/.test(type)) return true; // { i32, i8 } etc. - anonymous struct types + if (/<?{ ?[^}]* ?}>?/.test(type)) return true; // { i32, i8 } etc. - anonymous struct types // See comment in isStructPointerType() return type[0] == '%'; } |