[gobject-introspection] Ignore _Nonnull, _Nullable and _Null_unspecified type qualifiers
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection] Ignore _Nonnull, _Nullable and _Null_unspecified type qualifiers
- Date: Sun, 3 Sep 2017 09:12:28 +0000 (UTC)
commit 6c2d572a34f6240898a2dfb07eb80a50d2a4e59b
Author: David Lechner <david lechnology com>
Date: Sun Jul 2 17:42:30 2017 -0500
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
giscanner/scannerlexer.l | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/giscanner/scannerlexer.l b/giscanner/scannerlexer.l
index 21ef570..61c0a92 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; }
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]