[gobject-introspection] scanner: Ignore C11 _Noreturn keyword



commit 6f25aae765cf68adac60c89a126f93dbb1aa2603
Author: Colin Walters <walters verbum org>
Date:   Thu Feb 27 08:53:48 2014 -0500

    scanner: Ignore C11 _Noreturn keyword
    
    This shows up in the headers in FreeBSD's stdlib.  Now I didn't add
    anything to regress.h because I think that'd introduce an effective
    hard dependency on a C11-capable compiler, unless we used #ifdef
    trickery.  But the problem with #ifdef is that the -expected.gir isn't
    conditional.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=724851

 giscanner/scannerlexer.l |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/giscanner/scannerlexer.l b/giscanner/scannerlexer.l
index d6903d4..941154d 100644
--- a/giscanner/scannerlexer.l
+++ b/giscanner/scannerlexer.l
@@ -163,6 +163,7 @@ stringtext                          ([^\\\"])|(\\.)
 "__inline__"                            { return INLINE; }
 "__inline"                             { return INLINE; }
 "__nonnull"                            { if (!parse_ignored_macro()) REJECT; }
+"_Noreturn"                            { /* Ignore */ }
 "__signed__"                           { return SIGNED; }
 "__restrict"                           { return RESTRICT; }
 "__restrict__"                         { return RESTRICT; }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]