/* C code produced by gperf version 2.7 */
/* Command-line: gperf -p -j1 -i 1 -g -o -t -G -N is_reserved_word -k1,3,$  */
/* Command-line: gperf -p -j1 -i 1 -g -o -t -N is_reserved_word -k1,3,$ c-parse.gperf  */ 
struct resword { char *name; short token; enum rid rid; };

#define TOTAL_KEYWORDS 62
#define MIN_WORD_LENGTH 2
#define MAX_WORD_LENGTH 16
#define MIN_HASH_VALUE 13
#define MAX_HASH_VALUE 98
/* maximum key range = 86, duplicates = 0 */

#ifdef __GNUC__
__inline
#endif
static unsigned int
hash (str, len)
     register const char *str;
     register unsigned int len;
{
  static unsigned char asso_values[] =
    {
      99, 99, 99, 99, 99, 99, 99, 99, 99, 99,
      99, 99, 99, 99, 99, 99, 99, 99, 99, 99,
      99, 99, 99, 99, 99, 99, 99, 99, 99, 99,
      99, 99, 99, 99, 99, 99, 99, 99, 99, 99,
      99, 99, 99, 99, 99, 99, 99, 99, 99, 99,
      99, 99, 99, 99, 99, 99, 99, 99, 99, 99,
      99, 99, 99, 99, 99, 99, 99, 99, 99, 99,
      99, 99, 99, 99, 99, 99, 99, 99, 99, 99,
      99, 99, 99, 99, 99, 99, 99, 99, 99, 99,
      99, 99, 99, 99, 99,  1, 99, 18,  3, 23,
      13, 10, 31, 27, 46, 11, 99, 49, 27, 11,
      40, 48, 23, 99,  8,  2,  1, 35,  1,  2,
       4, 99, 27, 99, 99, 99, 99, 99, 99, 99,
      99, 99, 99, 99, 99, 99, 99, 99, 99, 99,
      99, 99, 99, 99, 99, 99, 99, 99, 99, 99,
      99, 99, 99, 99, 99, 99, 99, 99, 99, 99,
      99, 99, 99, 99, 99, 99, 99, 99, 99, 99,
      99, 99, 99, 99, 99, 99, 99, 99, 99, 99,
      99, 99, 99, 99, 99, 99, 99, 99, 99, 99,
      99, 99, 99, 99, 99, 99, 99, 99, 99, 99,
      99, 99, 99, 99, 99, 99, 99, 99, 99, 99,
      99, 99, 99, 99, 99, 99, 99, 99, 99, 99,
      99, 99, 99, 99, 99, 99, 99, 99, 99, 99,
      99, 99, 99, 99, 99, 99, 99, 99, 99, 99,
      99, 99, 99, 99, 99, 99, 99, 99, 99, 99,
      99, 99, 99, 99, 99, 99
    };
  register int hval = len;

  switch (hval)
    {
      default:
      case 3:
        hval += asso_values[(unsigned char)str[2]];
      case 2:
      case 1:
        hval += asso_values[(unsigned char)str[0]];
        break;
    }
  return hval + asso_values[(unsigned char)str[len - 1]];
}

static struct resword wordlist[] =
  {
    {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
    {""}, {""}, {""}, {""},
    {"__typeof__", TYPEOF, NORID},
    {"__signed__", TYPESPEC, RID_SIGNED},
    {"__volatile__", TYPE_QUAL, volatile_qualifier},
    {"int", TYPESPEC, RID_INT},
    {"struct", STRUCT, NORID},
    {"__real__", REALPART, NORID},
    {"restrict", TYPE_QUAL, restrict_qualifier},
    {"__restrict", TYPE_QUAL, restrict_qualifier},
    {"__imag__", IMAGPART, NORID},
    {"__volatile", TYPE_QUAL, volatile_qualifier},
    {"__inline__", SCSPEC, RID_INLINE},
    {"__signed", TYPESPEC, RID_SIGNED},
    {"__extension__", EXTENSION, NORID},
    {"else", ELSE, NORID},
    {"__asm__", ASM_KEYWORD, NORID},
    {"while", WHILE, NORID},
    {"void", TYPESPEC, RID_VOID},
    {"__inline", SCSPEC, RID_INLINE},
    {"__alignof__", ALIGNOF, NORID},
    {"__const", TYPE_QUAL, const_qualifier},
    {"__attribute__", ATTRIBUTE, NORID},
    {"__const__", TYPE_QUAL, const_qualifier},
    {"__asm", ASM_KEYWORD, NORID},
    {"__complex__", TYPESPEC, RID_COMPLEX},
    {"__complex", TYPESPEC, RID_COMPLEX},
    {"__label__", LABEL, NORID},
    {"case", CASE, NORID},
    {"__attribute", ATTRIBUTE, NORID},
    {"__typeof", TYPEOF, NORID},
    {"__real", REALPART, NORID},
    {"asm", ASM_KEYWORD, NORID},
    {"if", IF, NORID},
    {"__imag", IMAGPART, NORID},
    {"volatile", TYPE_QUAL, volatile_qualifier},
    {"__builtin_va_arg", VA_ARG, NORID},
    {"signed", TYPESPEC, RID_SIGNED},
    {"static", SCSPEC, RID_STATIC},
    {"for", FOR, NORID},
    {"register", SCSPEC, RID_REGISTER},
    {"default", DEFAULT, NORID},
    {"char", TYPESPEC, RID_CHAR},
    {"inline", SCSPEC, RID_INLINE},
    {"return", RETURN, NORID},
    {"short", TYPESPEC, RID_SHORT},
    {"extern", SCSPEC, RID_EXTERN},
    {"unsigned", TYPESPEC, RID_UNSIGNED},
    {"__alignof", ALIGNOF, NORID},
    {"enum", ENUM, NORID},
    {"typeof", TYPEOF, NORID},
    {"typedef", SCSPEC, RID_TYPEDEF},
    {"do", DO, NORID},
    {"double", TYPESPEC, RID_DOUBLE},
    {"switch", SWITCH, NORID},
    {"sizeof", SIZEOF, NORID},
    {"break", BREAK, NORID},
    {""},
    {"const", TYPE_QUAL, const_qualifier},
    {""},
    {"auto", SCSPEC, RID_AUTO},
    {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
    {"goto", GOTO, NORID},
    {"continue", CONTINUE, NORID},
    {""}, {""}, {""},
    {"float", TYPESPEC, RID_FLOAT},
    {""}, {""}, {""}, {""}, {""},
    {"union", UNION, NORID},
    {""}, {""}, {""}, {""}, {""}, {""},
    {"long", TYPESPEC, RID_LONG}
  };

#ifdef __GNUC__
__inline
#endif
struct resword *
is_reserved_word (str, len)
     register const char *str;
     register unsigned int len;
{
  if (len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH)
    {
      register int key = hash (str, len);

      if (key <= MAX_HASH_VALUE && key >= 0)
        {
          register const char *s = wordlist[key].name;

          if (*str == *s && !strcmp (str + 1, s + 1))
            return &wordlist[key];
        }
    }
  return 0;
}
