summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Lechner <david@lechnology.com>2017-07-02 17:42:30 -0500
committerRico Tzschichholz <ricotz@ubuntu.com>2017-09-03 11:12:09 +0200
commit6c2d572a34f6240898a2dfb07eb80a50d2a4e59b (patch)
treefaca29e3c37090638b4fc62f331aec4d5f6cb780
parent604d0acacd589b72d6eded88be475b707e182f79 (diff)
downloadgobject-introspection-6c2d572a34f6240898a2dfb07eb80a50d2a4e59b.tar.gz
Ignore _Nonnull,_Nullable and _Null_unspecified type qualifiers
These qualifiers are present in header files on macOS (introduced in XCode 7). https://bugzilla.gnome.org/show_bug.cgi?id=784458
-rw-r--r--giscanner/scannerlexer.l3
1 files changed, 3 insertions, 0 deletions
diff --git a/giscanner/scannerlexer.l b/giscanner/scannerlexer.l
index 21ef5701..61c0a92d 100644
--- a/giscanner/scannerlexer.l
+++ b/giscanner/scannerlexer.l
@@ -164,6 +164,9 @@ stringtext ([^\\\"])|(\\.)
"__inline__" { return INLINE; }
"__inline" { return INLINE; }
"__nonnull" { if (!parse_ignored_macro()) REJECT; }
+"_Nonnull" { /* Ignore */ }
+"_Nullable" { /* Ignore */ }
+"_Null_unspecified" { /* Ignore */ }
"_Noreturn" { /* Ignore */ }
"__signed" { return SIGNED; }
"__signed__" { return SIGNED; }