[gobject-introspection: 1/2] scanner: Parse __typeof__ and discard it



commit 16de6371aa48edc783e359b5508960c5431e8600
Author: Jan Alexander Steffens (heftig) <jan steffens gmail com>
Date:   Mon Nov 5 15:42:01 2018 +0000

    scanner: Parse __typeof__ and discard it
    
    GLib 2.57.2 introduced __typeof__ in g_clear_pointer, which the scanner
    failed to parse.
    
    Fixes https://gitlab.freedesktop.org/gstreamer/gstreamer/issues/328

 giscanner/scannerlexer.l | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/giscanner/scannerlexer.l b/giscanner/scannerlexer.l
index 2f45b66d..6e2796ab 100644
--- a/giscanner/scannerlexer.l
+++ b/giscanner/scannerlexer.l
@@ -177,6 +177,7 @@ stringtext                          ([^\\\"])|(\\.)
 "__restrict__"                         { return RESTRICT; }
 "thread_local"                         { return THREAD_LOCAL; }
 "_Thread_local"                                { return THREAD_LOCAL; }
+"__typeof__"                           { if (!parse_ignored_macro()) REJECT; }
 "__typeof"                             { if (!parse_ignored_macro()) REJECT; }
 "__volatile"                           { return VOLATILE; }
 "__volatile__"                         { return VOLATILE; }


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