diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-12-10 13:10:35 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-12-10 13:10:35 -0800 |
commit | d9e1837c619bc70f9424489787ca80766c998789 (patch) | |
tree | ee32d6815351d7e51811fc3bd890734394857050 /src/parseTools.js | |
parent | 4101e15f9edb7a8f14f96dbc813281ff8d601760 (diff) |
simplify varargs to always have an explicit last parameter called varrp
Diffstat (limited to 'src/parseTools.js')
-rw-r--r-- | src/parseTools.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/parseTools.js b/src/parseTools.js index 06d4494f..36d62204 100644 --- a/src/parseTools.js +++ b/src/parseTools.js @@ -345,7 +345,9 @@ function parseParamTokens(params) { if (segment.length == 1) { if (segment[0].text == '...') { ret.push({ - intertype: 'varargs' + intertype: 'varargs', + type: 'i8*', + ident: 'varrp' // the conventional name we have for this }); } else { // Clang sometimes has a parameter with just a type, |