Commit 70f75246 authored by Sam Ravnborg's avatar Sam Ravnborg Committed by Sam Ravnborg

kbuild: apply genksyms changes

This patch updates the _shipped files for genksyms.
See previous patch for actual functional changes.
Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
parent 3550a516
/* ANSI-C code produced by gperf version 3.0.1 */ /* ANSI-C code produced by gperf version 3.0.2 */
/* Command-line: gperf -L ANSI-C -a -C -E -g -H is_reserved_hash -k '1,3,$' -N is_reserved_word -p -t scripts/genksyms/keywords.gperf */ /* Command-line: gperf -L ANSI-C -a -C -E -g -H is_reserved_hash -k '1,3,$' -N is_reserved_word -p -t scripts/genksyms/keywords.gperf */
#if !((' ' == 32) && ('!' == 33) && ('"' == 34) && ('#' == 35) \ #if !((' ' == 32) && ('!' == 33) && ('"' == 34) && ('#' == 35) \
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
#line 3 "scripts/genksyms/keywords.gperf" #line 3 "scripts/genksyms/keywords.gperf"
struct resword { const char *name; int token; }; struct resword { const char *name; int token; };
/* maximum key range = 68, duplicates = 0 */ /* maximum key range = 62, duplicates = 0 */
#ifdef __GNUC__ #ifdef __GNUC__
__inline __inline
...@@ -46,32 +46,32 @@ is_reserved_hash (register const char *str, register unsigned int len) ...@@ -46,32 +46,32 @@ is_reserved_hash (register const char *str, register unsigned int len)
{ {
static const unsigned char asso_values[] = static const unsigned char asso_values[] =
{ {
71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65,
71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65,
71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65,
71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65,
71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65,
71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65,
71, 71, 71, 71, 71, 71, 71, 71, 71, 0, 65, 65, 65, 65, 65, 65, 65, 65, 65, 5,
71, 71, 71, 71, 71, 71, 35, 71, 71, 71, 65, 65, 65, 65, 65, 65, 35, 65, 65, 65,
5, 71, 71, 71, 71, 71, 71, 71, 71, 71, 0, 65, 65, 65, 65, 65, 65, 65, 65, 65,
71, 71, 71, 71, 71, 0, 71, 0, 71, 5, 65, 65, 65, 65, 65, 0, 65, 0, 65, 5,
5, 0, 10, 20, 71, 25, 71, 71, 20, 0, 20, 15, 10, 30, 65, 15, 65, 65, 20, 0,
20, 30, 25, 71, 10, 5, 0, 20, 15, 71, 10, 35, 20, 65, 10, 5, 0, 10, 5, 65,
71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65,
71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65,
71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65,
71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65,
71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65,
71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65,
71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65,
71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65,
71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65,
71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65,
71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65,
71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65,
71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65,
71, 71, 71, 71, 71, 71 65, 65, 65, 65, 65, 65
}; };
return len + asso_values[(unsigned char)str[2]] + asso_values[(unsigned char)str[0]] + asso_values[(unsigned char)str[len - 1]]; return len + asso_values[(unsigned char)str[2]] + asso_values[(unsigned char)str[0]] + asso_values[(unsigned char)str[len - 1]];
} }
...@@ -84,17 +84,17 @@ is_reserved_word (register const char *str, register unsigned int len) ...@@ -84,17 +84,17 @@ is_reserved_word (register const char *str, register unsigned int len)
{ {
enum enum
{ {
TOTAL_KEYWORDS = 42, TOTAL_KEYWORDS = 43,
MIN_WORD_LENGTH = 3, MIN_WORD_LENGTH = 3,
MAX_WORD_LENGTH = 24, MAX_WORD_LENGTH = 24,
MIN_HASH_VALUE = 3, MIN_HASH_VALUE = 3,
MAX_HASH_VALUE = 70 MAX_HASH_VALUE = 64
}; };
static const struct resword wordlist[] = static const struct resword wordlist[] =
{ {
{""}, {""}, {""}, {""}, {""}, {""},
#line 25 "scripts/genksyms/keywords.gperf" #line 26 "scripts/genksyms/keywords.gperf"
{"asm", ASM_KEYW}, {"asm", ASM_KEYW},
{""}, {""},
#line 8 "scripts/genksyms/keywords.gperf" #line 8 "scripts/genksyms/keywords.gperf"
...@@ -102,98 +102,98 @@ is_reserved_word (register const char *str, register unsigned int len) ...@@ -102,98 +102,98 @@ is_reserved_word (register const char *str, register unsigned int len)
{""}, {""},
#line 9 "scripts/genksyms/keywords.gperf" #line 9 "scripts/genksyms/keywords.gperf"
{"__asm__", ASM_KEYW}, {"__asm__", ASM_KEYW},
{""}, {""}, {""},
#line 22 "scripts/genksyms/keywords.gperf" #line 52 "scripts/genksyms/keywords.gperf"
{"_restrict", RESTRICT_KEYW},
#line 51 "scripts/genksyms/keywords.gperf"
{"__typeof__", TYPEOF_KEYW}, {"__typeof__", TYPEOF_KEYW},
#line 10 "scripts/genksyms/keywords.gperf" {""},
{"__attribute", ATTRIBUTE_KEYW},
#line 12 "scripts/genksyms/keywords.gperf" #line 12 "scripts/genksyms/keywords.gperf"
{"__const", CONST_KEYW}, {"__const", CONST_KEYW},
#line 11 "scripts/genksyms/keywords.gperf" #line 11 "scripts/genksyms/keywords.gperf"
{"__attribute__", ATTRIBUTE_KEYW}, {"__attribute__", ATTRIBUTE_KEYW},
#line 13 "scripts/genksyms/keywords.gperf" #line 13 "scripts/genksyms/keywords.gperf"
{"__const__", CONST_KEYW}, {"__const__", CONST_KEYW},
#line 17 "scripts/genksyms/keywords.gperf" #line 18 "scripts/genksyms/keywords.gperf"
{"__signed__", SIGNED_KEYW}, {"__signed__", SIGNED_KEYW},
#line 43 "scripts/genksyms/keywords.gperf" #line 44 "scripts/genksyms/keywords.gperf"
{"static", STATIC_KEYW}, {"static", STATIC_KEYW},
{""}, #line 20 "scripts/genksyms/keywords.gperf"
#line 16 "scripts/genksyms/keywords.gperf" {"__volatile__", VOLATILE_KEYW},
{"__signed", SIGNED_KEYW}, #line 39 "scripts/genksyms/keywords.gperf"
#line 31 "scripts/genksyms/keywords.gperf" {"int", INT_KEYW},
#line 32 "scripts/genksyms/keywords.gperf"
{"char", CHAR_KEYW}, {"char", CHAR_KEYW},
{""}, #line 33 "scripts/genksyms/keywords.gperf"
#line 44 "scripts/genksyms/keywords.gperf" {"const", CONST_KEYW},
#line 45 "scripts/genksyms/keywords.gperf"
{"struct", STRUCT_KEYW}, {"struct", STRUCT_KEYW},
#line 23 "scripts/genksyms/keywords.gperf"
{"__restrict__", RESTRICT_KEYW},
#line 24 "scripts/genksyms/keywords.gperf" #line 24 "scripts/genksyms/keywords.gperf"
{"__restrict__", RESTRICT_KEYW},
#line 25 "scripts/genksyms/keywords.gperf"
{"restrict", RESTRICT_KEYW}, {"restrict", RESTRICT_KEYW},
#line 34 "scripts/genksyms/keywords.gperf" #line 23 "scripts/genksyms/keywords.gperf"
{"_restrict", RESTRICT_KEYW},
#line 16 "scripts/genksyms/keywords.gperf"
{"__inline__", INLINE_KEYW},
#line 10 "scripts/genksyms/keywords.gperf"
{"__attribute", ATTRIBUTE_KEYW},
{""},
#line 14 "scripts/genksyms/keywords.gperf"
{"__extension__", EXTENSION_KEYW},
#line 35 "scripts/genksyms/keywords.gperf"
{"enum", ENUM_KEYW}, {"enum", ENUM_KEYW},
#line 18 "scripts/genksyms/keywords.gperf" #line 19 "scripts/genksyms/keywords.gperf"
{"__volatile", VOLATILE_KEYW}, {"__volatile", VOLATILE_KEYW},
#line 35 "scripts/genksyms/keywords.gperf" #line 36 "scripts/genksyms/keywords.gperf"
{"extern", EXTERN_KEYW}, {"extern", EXTERN_KEYW},
#line 19 "scripts/genksyms/keywords.gperf" {""},
{"__volatile__", VOLATILE_KEYW}, #line 17 "scripts/genksyms/keywords.gperf"
#line 38 "scripts/genksyms/keywords.gperf" {"__signed", SIGNED_KEYW},
{"int", INT_KEYW},
#line 7 "scripts/genksyms/keywords.gperf" #line 7 "scripts/genksyms/keywords.gperf"
{"EXPORT_SYMBOL_GPL_FUTURE", EXPORT_SYMBOL_KEYW}, {"EXPORT_SYMBOL_GPL_FUTURE", EXPORT_SYMBOL_KEYW},
#line 32 "scripts/genksyms/keywords.gperf"
{"const", CONST_KEYW},
#line 33 "scripts/genksyms/keywords.gperf"
{"double", DOUBLE_KEYW},
{""}, {""},
#line 14 "scripts/genksyms/keywords.gperf" #line 51 "scripts/genksyms/keywords.gperf"
{"typeof", TYPEOF_KEYW},
#line 46 "scripts/genksyms/keywords.gperf"
{"typedef", TYPEDEF_KEYW},
#line 15 "scripts/genksyms/keywords.gperf"
{"__inline", INLINE_KEYW}, {"__inline", INLINE_KEYW},
#line 30 "scripts/genksyms/keywords.gperf" #line 31 "scripts/genksyms/keywords.gperf"
{"auto", AUTO_KEYW}, {"auto", AUTO_KEYW},
#line 15 "scripts/genksyms/keywords.gperf"
{"__inline__", INLINE_KEYW},
#line 42 "scripts/genksyms/keywords.gperf"
{"signed", SIGNED_KEYW},
{""},
#line 47 "scripts/genksyms/keywords.gperf" #line 47 "scripts/genksyms/keywords.gperf"
{"union", UNION_KEYW},
{""}, {""},
#line 48 "scripts/genksyms/keywords.gperf"
{"unsigned", UNSIGNED_KEYW}, {"unsigned", UNSIGNED_KEYW},
{""}, #line 49 "scripts/genksyms/keywords.gperf"
#line 41 "scripts/genksyms/keywords.gperf" {"void", VOID_KEYW},
#line 42 "scripts/genksyms/keywords.gperf"
{"short", SHORT_KEYW}, {"short", SHORT_KEYW},
{""}, {""},
#line 50 "scripts/genksyms/keywords.gperf" #line 50 "scripts/genksyms/keywords.gperf"
{"typeof", TYPEOF_KEYW},
#line 45 "scripts/genksyms/keywords.gperf"
{"typedef", TYPEDEF_KEYW},
#line 49 "scripts/genksyms/keywords.gperf"
{"volatile", VOLATILE_KEYW}, {"volatile", VOLATILE_KEYW},
{""}, {""},
#line 36 "scripts/genksyms/keywords.gperf"
{"float", FLOAT_KEYW},
{""}, {""},
#line 40 "scripts/genksyms/keywords.gperf"
{"register", REGISTER_KEYW},
#line 48 "scripts/genksyms/keywords.gperf"
{"void", VOID_KEYW},
{""},
#line 37 "scripts/genksyms/keywords.gperf" #line 37 "scripts/genksyms/keywords.gperf"
{"inline", INLINE_KEYW}, {"float", FLOAT_KEYW},
#line 34 "scripts/genksyms/keywords.gperf"
{"double", DOUBLE_KEYW},
{""}, {""},
#line 5 "scripts/genksyms/keywords.gperf" #line 5 "scripts/genksyms/keywords.gperf"
{"EXPORT_SYMBOL", EXPORT_SYMBOL_KEYW}, {"EXPORT_SYMBOL", EXPORT_SYMBOL_KEYW},
{""}, {""}, {""},
#line 21 "scripts/genksyms/keywords.gperf" #line 38 "scripts/genksyms/keywords.gperf"
{"_Bool", BOOL_KEYW}, {"inline", INLINE_KEYW},
{""},
#line 6 "scripts/genksyms/keywords.gperf" #line 6 "scripts/genksyms/keywords.gperf"
{"EXPORT_SYMBOL_GPL", EXPORT_SYMBOL_KEYW}, {"EXPORT_SYMBOL_GPL", EXPORT_SYMBOL_KEYW},
{""}, {""}, {""}, {""}, {""}, {""}, #line 41 "scripts/genksyms/keywords.gperf"
#line 39 "scripts/genksyms/keywords.gperf" {"register", REGISTER_KEYW},
{"long", LONG_KEYW}, {""},
{""}, {""}, {""}, {""}, {""}, #line 22 "scripts/genksyms/keywords.gperf"
#line 46 "scripts/genksyms/keywords.gperf" {"_Bool", BOOL_KEYW},
{"union", UNION_KEYW} #line 43 "scripts/genksyms/keywords.gperf"
{"signed", SIGNED_KEYW},
{""}, {""},
#line 40 "scripts/genksyms/keywords.gperf"
{"long", LONG_KEYW}
}; };
if (len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH) if (len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH)
......
This diff is collapsed.
This diff is collapsed.
/* A Bison parser, made by GNU Bison 2.0. */ /* A Bison parser, made by GNU Bison 2.3. */
/* Skeleton parser for Yacc-like parsing with Bison, /* Skeleton interface for Bison's Yacc-like parsers in C
Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by
...@@ -15,13 +17,21 @@ ...@@ -15,13 +17,21 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02111-1307, USA. */ Boston, MA 02110-1301, USA. */
/* As a special exception, you may create a larger work that contains
part or all of the Bison parser skeleton and distribute that work
under terms of your choice, so long as that work isn't itself a
parser generator using the skeleton or a modified version thereof
as a parser skeleton. Alternatively, if you modify or redistribute
the parser skeleton itself, you may (at your option) remove this
special exception, which will cause the skeleton and the resulting
Bison output files to be licensed under the GNU General Public
License without this special exception.
/* As a special exception, when this file is copied by Bison into a This special exception was added by the Free Software Foundation in
Bison output file, you may use that output file without restriction. version 2.2 of Bison. */
This special exception was added by the Free Software Foundation
in version 1.24 of Bison. */
/* Tokens. */ /* Tokens. */
#ifndef YYTOKENTYPE #ifndef YYTOKENTYPE
...@@ -38,39 +48,41 @@ ...@@ -38,39 +48,41 @@
DOUBLE_KEYW = 264, DOUBLE_KEYW = 264,
ENUM_KEYW = 265, ENUM_KEYW = 265,
EXTERN_KEYW = 266, EXTERN_KEYW = 266,
FLOAT_KEYW = 267, EXTENSION_KEYW = 267,
INLINE_KEYW = 268, FLOAT_KEYW = 268,
INT_KEYW = 269, INLINE_KEYW = 269,
LONG_KEYW = 270, INT_KEYW = 270,
REGISTER_KEYW = 271, LONG_KEYW = 271,
RESTRICT_KEYW = 272, REGISTER_KEYW = 272,
SHORT_KEYW = 273, RESTRICT_KEYW = 273,
SIGNED_KEYW = 274, SHORT_KEYW = 274,
STATIC_KEYW = 275, SIGNED_KEYW = 275,
STRUCT_KEYW = 276, STATIC_KEYW = 276,
TYPEDEF_KEYW = 277, STRUCT_KEYW = 277,
UNION_KEYW = 278, TYPEDEF_KEYW = 278,
UNSIGNED_KEYW = 279, UNION_KEYW = 279,
VOID_KEYW = 280, UNSIGNED_KEYW = 280,
VOLATILE_KEYW = 281, VOID_KEYW = 281,
TYPEOF_KEYW = 282, VOLATILE_KEYW = 282,
EXPORT_SYMBOL_KEYW = 283, TYPEOF_KEYW = 283,
ASM_PHRASE = 284, EXPORT_SYMBOL_KEYW = 284,
ATTRIBUTE_PHRASE = 285, ASM_PHRASE = 285,
BRACE_PHRASE = 286, ATTRIBUTE_PHRASE = 286,
BRACKET_PHRASE = 287, BRACE_PHRASE = 287,
EXPRESSION_PHRASE = 288, BRACKET_PHRASE = 288,
CHAR = 289, EXPRESSION_PHRASE = 289,
DOTS = 290, CHAR = 290,
IDENT = 291, DOTS = 291,
INT = 292, IDENT = 292,
REAL = 293, INT = 293,
STRING = 294, REAL = 294,
TYPE = 295, STRING = 295,
OTHER = 296, TYPE = 296,
FILENAME = 297 OTHER = 297,
FILENAME = 298
}; };
#endif #endif
/* Tokens. */
#define ASM_KEYW 258 #define ASM_KEYW 258
#define ATTRIBUTE_KEYW 259 #define ATTRIBUTE_KEYW 259
#define AUTO_KEYW 260 #define AUTO_KEYW 260
...@@ -80,42 +92,43 @@ ...@@ -80,42 +92,43 @@
#define DOUBLE_KEYW 264 #define DOUBLE_KEYW 264
#define ENUM_KEYW 265 #define ENUM_KEYW 265
#define EXTERN_KEYW 266 #define EXTERN_KEYW 266
#define FLOAT_KEYW 267 #define EXTENSION_KEYW 267
#define INLINE_KEYW 268 #define FLOAT_KEYW 268
#define INT_KEYW 269 #define INLINE_KEYW 269
#define LONG_KEYW 270 #define INT_KEYW 270
#define REGISTER_KEYW 271 #define LONG_KEYW 271
#define RESTRICT_KEYW 272 #define REGISTER_KEYW 272
#define SHORT_KEYW 273 #define RESTRICT_KEYW 273
#define SIGNED_KEYW 274 #define SHORT_KEYW 274
#define STATIC_KEYW 275 #define SIGNED_KEYW 275
#define STRUCT_KEYW 276 #define STATIC_KEYW 276
#define TYPEDEF_KEYW 277 #define STRUCT_KEYW 277
#define UNION_KEYW 278 #define TYPEDEF_KEYW 278
#define UNSIGNED_KEYW 279 #define UNION_KEYW 279
#define VOID_KEYW 280 #define UNSIGNED_KEYW 280
#define VOLATILE_KEYW 281 #define VOID_KEYW 281
#define TYPEOF_KEYW 282 #define VOLATILE_KEYW 282
#define EXPORT_SYMBOL_KEYW 283 #define TYPEOF_KEYW 283
#define ASM_PHRASE 284 #define EXPORT_SYMBOL_KEYW 284
#define ATTRIBUTE_PHRASE 285 #define ASM_PHRASE 285
#define BRACE_PHRASE 286 #define ATTRIBUTE_PHRASE 286
#define BRACKET_PHRASE 287 #define BRACE_PHRASE 287
#define EXPRESSION_PHRASE 288 #define BRACKET_PHRASE 288
#define CHAR 289 #define EXPRESSION_PHRASE 289
#define DOTS 290 #define CHAR 290
#define IDENT 291 #define DOTS 291
#define INT 292 #define IDENT 292
#define REAL 293 #define INT 293
#define STRING 294 #define REAL 294
#define TYPE 295 #define STRING 295
#define OTHER 296 #define TYPE 296
#define FILENAME 297 #define OTHER 297
#define FILENAME 298
#if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED) #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
typedef int YYSTYPE; typedef int YYSTYPE;
# define yystype YYSTYPE /* obsolescent; will be withdrawn */ # define yystype YYSTYPE /* obsolescent; will be withdrawn */
# define YYSTYPE_IS_DECLARED 1 # define YYSTYPE_IS_DECLARED 1
...@@ -124,5 +137,3 @@ typedef int YYSTYPE; ...@@ -124,5 +137,3 @@ typedef int YYSTYPE;
extern YYSTYPE yylval; extern YYSTYPE yylval;
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment