gperf-hashtable.h 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. /* ANSI-C code produced by gperf version 3.1 */
  2. /* Command-line: gperf --multiple-iterations=1000 --output-file=gperf-hashtable.h gperf-config.txt */
  3. /* Computed positions: -k'1-2' */
  4. #if !((' ' == 32) && ('!' == 33) && ('"' == 34) && ('#' == 35) \
  5. && ('%' == 37) && ('&' == 38) && ('\'' == 39) && ('(' == 40) \
  6. && (')' == 41) && ('*' == 42) && ('+' == 43) && (',' == 44) \
  7. && ('-' == 45) && ('.' == 46) && ('/' == 47) && ('0' == 48) \
  8. && ('1' == 49) && ('2' == 50) && ('3' == 51) && ('4' == 52) \
  9. && ('5' == 53) && ('6' == 54) && ('7' == 55) && ('8' == 56) \
  10. && ('9' == 57) && (':' == 58) && (';' == 59) && ('<' == 60) \
  11. && ('=' == 61) && ('>' == 62) && ('?' == 63) && ('A' == 65) \
  12. && ('B' == 66) && ('C' == 67) && ('D' == 68) && ('E' == 69) \
  13. && ('F' == 70) && ('G' == 71) && ('H' == 72) && ('I' == 73) \
  14. && ('J' == 74) && ('K' == 75) && ('L' == 76) && ('M' == 77) \
  15. && ('N' == 78) && ('O' == 79) && ('P' == 80) && ('Q' == 81) \
  16. && ('R' == 82) && ('S' == 83) && ('T' == 84) && ('U' == 85) \
  17. && ('V' == 86) && ('W' == 87) && ('X' == 88) && ('Y' == 89) \
  18. && ('Z' == 90) && ('[' == 91) && ('\\' == 92) && (']' == 93) \
  19. && ('^' == 94) && ('_' == 95) && ('a' == 97) && ('b' == 98) \
  20. && ('c' == 99) && ('d' == 100) && ('e' == 101) && ('f' == 102) \
  21. && ('g' == 103) && ('h' == 104) && ('i' == 105) && ('j' == 106) \
  22. && ('k' == 107) && ('l' == 108) && ('m' == 109) && ('n' == 110) \
  23. && ('o' == 111) && ('p' == 112) && ('q' == 113) && ('r' == 114) \
  24. && ('s' == 115) && ('t' == 116) && ('u' == 117) && ('v' == 118) \
  25. && ('w' == 119) && ('x' == 120) && ('y' == 121) && ('z' == 122) \
  26. && ('{' == 123) && ('|' == 124) && ('}' == 125) && ('~' == 126))
  27. /* The character set is not based on ISO-646. */
  28. #error "gperf generated tables don't work with this execution character set. Please report a bug to <bug-gperf@gnu.org>."
  29. #endif
  30. #define GPERF_PARSER_TOTAL_KEYWORDS 32
  31. #define GPERF_PARSER_MIN_WORD_LENGTH 3
  32. #define GPERF_PARSER_MAX_WORD_LENGTH 22
  33. #define GPERF_PARSER_MIN_HASH_VALUE 3
  34. #define GPERF_PARSER_MAX_HASH_VALUE 41
  35. /* maximum key range = 39, duplicates = 0 */
  36. #ifdef __GNUC__
  37. __inline
  38. #else
  39. #ifdef __cplusplus
  40. inline
  41. #endif
  42. #endif
  43. static unsigned int
  44. gperf_keyword_hash_function (register const char *str, register size_t len)
  45. {
  46. static unsigned char asso_values[] =
  47. {
  48. 42, 42, 42, 42, 42, 42, 42, 42, 42, 42,
  49. 42, 42, 42, 42, 42, 42, 42, 42, 42, 42,
  50. 42, 42, 42, 42, 42, 42, 42, 42, 42, 42,
  51. 42, 42, 42, 42, 42, 42, 42, 42, 42, 42,
  52. 42, 42, 42, 42, 42, 42, 42, 42, 42, 42,
  53. 42, 42, 42, 42, 42, 42, 42, 42, 42, 42,
  54. 42, 42, 42, 42, 42, 16, 7, 2, 11, 0,
  55. 8, 42, 3, 9, 42, 42, 9, 42, 0, 2,
  56. 42, 42, 1, 3, 42, 7, 17, 42, 27, 2,
  57. 42, 42, 42, 42, 42, 42, 42, 42, 42, 42,
  58. 42, 42, 42, 42, 42, 42, 42, 42, 42, 42,
  59. 42, 42, 42, 42, 42, 42, 42, 42, 42, 42,
  60. 42, 42, 42, 42, 42, 42, 42, 42, 42, 42,
  61. 42, 42, 42, 42, 42, 42, 42, 42, 42, 42,
  62. 42, 42, 42, 42, 42, 42, 42, 42, 42, 42,
  63. 42, 42, 42, 42, 42, 42, 42, 42, 42, 42,
  64. 42, 42, 42, 42, 42, 42, 42, 42, 42, 42,
  65. 42, 42, 42, 42, 42, 42, 42, 42, 42, 42,
  66. 42, 42, 42, 42, 42, 42, 42, 42, 42, 42,
  67. 42, 42, 42, 42, 42, 42, 42, 42, 42, 42,
  68. 42, 42, 42, 42, 42, 42, 42, 42, 42, 42,
  69. 42, 42, 42, 42, 42, 42, 42, 42, 42, 42,
  70. 42, 42, 42, 42, 42, 42, 42, 42, 42, 42,
  71. 42, 42, 42, 42, 42, 42, 42, 42, 42, 42,
  72. 42, 42, 42, 42, 42, 42, 42, 42, 42, 42,
  73. 42, 42, 42, 42, 42, 42
  74. };
  75. return len + asso_values[(unsigned char)str[1]] + asso_values[(unsigned char)str[0]];
  76. }
  77. static PARSER_KEYWORD gperf_keywords[] =
  78. {
  79. {(char*)0}, {(char*)0}, {(char*)0},
  80. #line 30 "gperf-config.txt"
  81. {"END", 13, PARSER_INIT_PLUGINSD|PARSER_INIT_STREAMING, WORKER_PARSER_FIRST_JOB + 13},
  82. #line 46 "gperf-config.txt"
  83. {"END2", 3, PARSER_INIT_STREAMING, WORKER_PARSER_FIRST_JOB + 26},
  84. #line 53 "gperf-config.txt"
  85. {"REND", 25, PARSER_INIT_STREAMING, WORKER_PARSER_FIRST_JOB + 30},
  86. #line 35 "gperf-config.txt"
  87. {"SET", 11, PARSER_INIT_PLUGINSD|PARSER_INIT_STREAMING, WORKER_PARSER_FIRST_JOB + 18},
  88. #line 45 "gperf-config.txt"
  89. {"SET2", 1, PARSER_INIT_STREAMING, WORKER_PARSER_FIRST_JOB + 25},
  90. #line 54 "gperf-config.txt"
  91. {"RSET", 21, PARSER_INIT_STREAMING, WORKER_PARSER_FIRST_JOB + 31},
  92. #line 18 "gperf-config.txt"
  93. {"HOST", 71, PARSER_INIT_PLUGINSD, WORKER_PARSER_FIRST_JOB + 4},
  94. #line 26 "gperf-config.txt"
  95. {"CHART", 32, PARSER_INIT_PLUGINSD|PARSER_INIT_STREAMING, WORKER_PARSER_FIRST_JOB + 9},
  96. #line 55 "gperf-config.txt"
  97. {"RSSTATE", 24, PARSER_INIT_STREAMING, WORKER_PARSER_FIRST_JOB + 32},
  98. #line 25 "gperf-config.txt"
  99. {"BEGIN", 12, PARSER_INIT_PLUGINSD|PARSER_INIT_STREAMING, WORKER_PARSER_FIRST_JOB + 8},
  100. #line 44 "gperf-config.txt"
  101. {"BEGIN2", 2, PARSER_INIT_STREAMING, WORKER_PARSER_FIRST_JOB + 24},
  102. #line 51 "gperf-config.txt"
  103. {"RBEGIN", 22, PARSER_INIT_STREAMING, WORKER_PARSER_FIRST_JOB + 28},
  104. #line 21 "gperf-config.txt"
  105. {"HOST_LABEL", 74, PARSER_INIT_PLUGINSD, WORKER_PARSER_FIRST_JOB + 7},
  106. #line 19 "gperf-config.txt"
  107. {"HOST_DEFINE", 72, PARSER_INIT_PLUGINSD, WORKER_PARSER_FIRST_JOB + 5},
  108. #line 27 "gperf-config.txt"
  109. {"CLABEL", 34, PARSER_INIT_PLUGINSD|PARSER_INIT_STREAMING, WORKER_PARSER_FIRST_JOB + 10},
  110. #line 39 "gperf-config.txt"
  111. {"REPORT_JOB_STATUS", 110, PARSER_INIT_PLUGINSD|PARSER_INIT_STREAMING, WORKER_PARSER_FIRST_JOB + 22},
  112. #line 52 "gperf-config.txt"
  113. {"RDSTATE", 23, PARSER_INIT_STREAMING, WORKER_PARSER_FIRST_JOB + 29},
  114. #line 20 "gperf-config.txt"
  115. {"HOST_DEFINE_END", 73, PARSER_INIT_PLUGINSD, WORKER_PARSER_FIRST_JOB + 6},
  116. #line 43 "gperf-config.txt"
  117. {"CLAIMED_ID", 61, PARSER_INIT_STREAMING, WORKER_PARSER_FIRST_JOB + 23},
  118. #line 15 "gperf-config.txt"
  119. {"FLUSH", 97, PARSER_INIT_PLUGINSD, WORKER_PARSER_FIRST_JOB + 1},
  120. #line 31 "gperf-config.txt"
  121. {"FUNCTION", 41, PARSER_INIT_PLUGINSD|PARSER_INIT_STREAMING, WORKER_PARSER_FIRST_JOB + 14},
  122. #line 28 "gperf-config.txt"
  123. {"CLABEL_COMMIT", 35, PARSER_INIT_PLUGINSD|PARSER_INIT_STREAMING, WORKER_PARSER_FIRST_JOB + 11},
  124. #line 50 "gperf-config.txt"
  125. {"CHART_DEFINITION_END", 33, PARSER_INIT_STREAMING, WORKER_PARSER_FIRST_JOB + 27},
  126. #line 37 "gperf-config.txt"
  127. {"DYNCFG_ENABLE", 101, PARSER_INIT_PLUGINSD|PARSER_INIT_STREAMING, WORKER_PARSER_FIRST_JOB + 20},
  128. #line 16 "gperf-config.txt"
  129. {"DISABLE", 98, PARSER_INIT_PLUGINSD, WORKER_PARSER_FIRST_JOB + 2},
  130. #line 34 "gperf-config.txt"
  131. {"OVERWRITE", 52, PARSER_INIT_PLUGINSD|PARSER_INIT_STREAMING, WORKER_PARSER_FIRST_JOB + 17},
  132. #line 29 "gperf-config.txt"
  133. {"DIMENSION", 31, PARSER_INIT_PLUGINSD|PARSER_INIT_STREAMING, WORKER_PARSER_FIRST_JOB + 12},
  134. #line 33 "gperf-config.txt"
  135. {"LABEL", 51, PARSER_INIT_PLUGINSD|PARSER_INIT_STREAMING, WORKER_PARSER_FIRST_JOB + 16},
  136. #line 17 "gperf-config.txt"
  137. {"EXIT", 99, PARSER_INIT_PLUGINSD, WORKER_PARSER_FIRST_JOB + 3},
  138. {(char*)0}, {(char*)0}, {(char*)0},
  139. #line 38 "gperf-config.txt"
  140. {"DYNCFG_REGISTER_MODULE", 102, PARSER_INIT_PLUGINSD|PARSER_INIT_STREAMING, WORKER_PARSER_FIRST_JOB + 21},
  141. #line 32 "gperf-config.txt"
  142. {"FUNCTION_RESULT_BEGIN", 42, PARSER_INIT_PLUGINSD|PARSER_INIT_STREAMING, WORKER_PARSER_FIRST_JOB + 15},
  143. {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
  144. #line 36 "gperf-config.txt"
  145. {"VARIABLE", 53, PARSER_INIT_PLUGINSD|PARSER_INIT_STREAMING, WORKER_PARSER_FIRST_JOB + 19}
  146. };
  147. PARSER_KEYWORD *
  148. gperf_lookup_keyword (register const char *str, register size_t len)
  149. {
  150. if (len <= GPERF_PARSER_MAX_WORD_LENGTH && len >= GPERF_PARSER_MIN_WORD_LENGTH)
  151. {
  152. register unsigned int key = gperf_keyword_hash_function (str, len);
  153. if (key <= GPERF_PARSER_MAX_HASH_VALUE)
  154. {
  155. register const char *s = gperf_keywords[key].keyword;
  156. if (s && *str == *s && !strcmp (str + 1, s + 1))
  157. return &gperf_keywords[key];
  158. }
  159. }
  160. return 0;
  161. }