X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=scripts%2Fgenksyms%2Fparse.y;h=408cdf82b27187694c11976f2bc01137bb3d28cc;hb=f76e9154736e9ab47b64940d0062f19c80225b7f;hp=ca04c944b7c3f527e19f0591729e4ee6e1abd882;hpb=25c862cc9ea9b312c25a9f577f91b973131f1261;p=linux-2.6 diff --git a/scripts/genksyms/parse.y b/scripts/genksyms/parse.y index ca04c944b7..408cdf82b2 100644 --- a/scripts/genksyms/parse.y +++ b/scripts/genksyms/parse.y @@ -61,6 +61,7 @@ remove_list(struct string_list **pb, struct string_list **pe) %token DOUBLE_KEYW %token ENUM_KEYW %token EXTERN_KEYW +%token EXTENSION_KEYW %token FLOAT_KEYW %token INLINE_KEYW %token INT_KEYW @@ -110,7 +111,9 @@ declaration: ; declaration1: - TYPEDEF_KEYW { is_typedef = 1; } simple_declaration + EXTENSION_KEYW TYPEDEF_KEYW { is_typedef = 1; } simple_declaration + { $$ = $4; } + | TYPEDEF_KEYW { is_typedef = 1; } simple_declaration { $$ = $3; } | simple_declaration | function_definition