diff options
author | Ting-Wei Lan <lantw@src.gnome.org> | 2016-04-24 16:51:00 +0800 |
---|---|---|
committer | Ting-Wei Lan <lantw@src.gnome.org> | 2018-01-09 12:24:15 +0800 |
commit | ab71b25969404f615f44b509f4272ca83349590b (patch) | |
tree | 9dedf5521d77d588c88c3fab4f265d3c699c4fa9 /giscanner/scannerparser.y | |
parent | 3ad8fb8170d8a30b1afada8db7993ced1828b6f5 (diff) | |
download | gobject-introspection-ab71b25969404f615f44b509f4272ca83349590b.tar.gz |
giscanner: Recognize _Thread_local as a storage class specifier
_Thread_local is a C11 keyword, and thread_local is a macro to make it
more confortable to read. As this keyword can only be used in variable
declarations, not in function return values or parameters, it cannot
be included in bindable APIs and we can safely ignore it.
https://bugzilla.gnome.org/show_bug.cgi?id=756921
Diffstat (limited to 'giscanner/scannerparser.y')
-rw-r--r-- | giscanner/scannerparser.y | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/giscanner/scannerparser.y b/giscanner/scannerparser.y index 4a40d6a4..d9490b00 100644 --- a/giscanner/scannerparser.y +++ b/giscanner/scannerparser.y @@ -234,8 +234,8 @@ toggle_conditional (GISourceScanner *scanner) %token AUTO BOOL BREAK CASE CHAR CONST CONTINUE DEFAULT DO DOUBLE ELSE ENUM %token EXTENSION EXTERN FLOAT FOR GOTO IF INLINE INT LONG REGISTER RESTRICT -%token RETURN SHORT SIGNED SIZEOF STATIC STRUCT SWITCH TYPEDEF UNION UNSIGNED -%token VOID VOLATILE WHILE +%token RETURN SHORT SIGNED SIZEOF STATIC STRUCT SWITCH THREAD_LOCAL TYPEDEF +%token UNION UNSIGNED VOID VOLATILE WHILE %token FUNCTION_MACRO OBJECT_MACRO %token IFDEF_GI_SCANNER IFNDEF_GI_SCANNER @@ -849,6 +849,10 @@ storage_class_specifier { $$ = STORAGE_CLASS_REGISTER; } + | THREAD_LOCAL + { + $$ = STORAGE_CLASS_THREAD_LOCAL; + } ; type_specifier |