diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2021-04-26 10:59:52 +0100 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2021-04-26 10:59:52 +0100 |
commit | 60b0cf2fc2fdc74d13832d1fdde21cfdc813b84e (patch) | |
tree | 4f7a3ea9f206100f4b56510c83d10107122d29a1 /giscanner/scannerlexer.l | |
parent | 0c414e34113fca089a67eb1beadfcdce722a89db (diff) | |
download | gobject-introspection-60b0cf2fc2fdc74d13832d1fdde21cfdc813b84e.tar.gz |
scanner: Add more float typesebassi/issue-384
The scanner is chocking on the `__float80` and `__float128` types that
are provided by GCC as extensions to ISO/IEC TS 18661-3:2015:
https://gcc.gnu.org/onlinedocs/gcc/Floating-Types.html
Fixes: #384
Diffstat (limited to 'giscanner/scannerlexer.l')
-rw-r--r-- | giscanner/scannerlexer.l | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/giscanner/scannerlexer.l b/giscanner/scannerlexer.l index cfec4d58..b6cc6499 100644 --- a/giscanner/scannerlexer.l +++ b/giscanner/scannerlexer.l @@ -224,6 +224,8 @@ stringtext ([^\\\"])|(\\.) "_Float32x" { return BASIC_TYPE; } "_Float64x" { return BASIC_TYPE; } "_Float128x" { return BASIC_TYPE; } +"__float80" { return BASIC_TYPE; } +"__float128" { return BASIC_TYPE; } "for" { return FOR; } "goto" { return GOTO; } "if" { return IF; } |