[gobject-introspection] scannerlexer: don't reject __volatile__ tokens



commit ebffefb27ed81b095106056698dd8db9a21fb6f9
Author: Giovanni Campagna <gcampagn redhat com>
Date:   Fri Aug 23 12:13:25 2013 +0200

    scannerlexer: don't reject __volatile__ tokens
    
    They should be treated the same as regular volatile specifiers,
    not like __attribute__() or __asm__().

 giscanner/scannerlexer.l |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/giscanner/scannerlexer.l b/giscanner/scannerlexer.l
index 554e2da..032732f 100644
--- a/giscanner/scannerlexer.l
+++ b/giscanner/scannerlexer.l
@@ -150,8 +150,8 @@ stringtext                          ([^\\\"])|(\\.)
 "__signed__"                           { return SIGNED; }
 "__restrict"                           { return RESTRICT; }
 "__typeof"                             { if (!parse_ignored_macro()) REJECT; }
-"__volatile"                           { if (!parse_ignored_macro()) REJECT; }
-"__volatile__"                         { if (!parse_ignored_macro()) REJECT; }
+"__volatile"                           { return VOLATILE; }
+"__volatile__"                         { return VOLATILE; }
 "_Bool"                                        { return BOOL; }
 
 "G_GINT64_CONSTANT"                    { return INTL_CONST; }


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