From 90289794efacae16e96cf90c513799039603939f Mon Sep 17 00:00:00 2001 From: Giovanni Campagna Date: Fri, 23 Aug 2013 12:13:25 +0200 Subject: 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 file changed, 2 insertions(+), 2 deletions(-) diff --git a/giscanner/scannerlexer.l b/giscanner/scannerlexer.l index bf51d0d5..f7199ff4 100644 --- a/giscanner/scannerlexer.l +++ b/giscanner/scannerlexer.l @@ -148,8 +148,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; } -- cgit v1.2.1