gperf-hashtable.h 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  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 35
  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 47
  35. /* maximum key range = 45, 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. 48, 48, 48, 48, 48, 48, 48, 48, 48, 48,
  49. 48, 48, 48, 48, 48, 48, 48, 48, 48, 48,
  50. 48, 48, 48, 48, 48, 48, 48, 48, 48, 48,
  51. 48, 48, 48, 48, 48, 48, 48, 48, 48, 48,
  52. 48, 48, 48, 48, 48, 48, 48, 48, 48, 48,
  53. 48, 48, 48, 48, 48, 48, 48, 48, 48, 48,
  54. 48, 48, 48, 48, 48, 11, 18, 0, 0, 0,
  55. 6, 48, 9, 0, 48, 48, 20, 48, 0, 8,
  56. 48, 48, 1, 12, 48, 20, 18, 48, 2, 0,
  57. 48, 48, 48, 48, 48, 48, 48, 48, 48, 48,
  58. 48, 48, 48, 48, 48, 48, 48, 48, 48, 48,
  59. 48, 48, 48, 48, 48, 48, 48, 48, 48, 48,
  60. 48, 48, 48, 48, 48, 48, 48, 48, 48, 48,
  61. 48, 48, 48, 48, 48, 48, 48, 48, 48, 48,
  62. 48, 48, 48, 48, 48, 48, 48, 48, 48, 48,
  63. 48, 48, 48, 48, 48, 48, 48, 48, 48, 48,
  64. 48, 48, 48, 48, 48, 48, 48, 48, 48, 48,
  65. 48, 48, 48, 48, 48, 48, 48, 48, 48, 48,
  66. 48, 48, 48, 48, 48, 48, 48, 48, 48, 48,
  67. 48, 48, 48, 48, 48, 48, 48, 48, 48, 48,
  68. 48, 48, 48, 48, 48, 48, 48, 48, 48, 48,
  69. 48, 48, 48, 48, 48, 48, 48, 48, 48, 48,
  70. 48, 48, 48, 48, 48, 48, 48, 48, 48, 48,
  71. 48, 48, 48, 48, 48, 48, 48, 48, 48, 48,
  72. 48, 48, 48, 48, 48, 48, 48, 48, 48, 48,
  73. 48, 48, 48, 48, 48, 48
  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 49 "gperf-config.txt"
  83. {"END2", 3, PARSER_INIT_STREAMING, WORKER_PARSER_FIRST_JOB + 29},
  84. #line 56 "gperf-config.txt"
  85. {"REND", 25, PARSER_INIT_STREAMING, WORKER_PARSER_FIRST_JOB + 33},
  86. #line 17 "gperf-config.txt"
  87. {"EXIT", 99, PARSER_INIT_PLUGINSD, WORKER_PARSER_FIRST_JOB + 3},
  88. #line 16 "gperf-config.txt"
  89. {"DISABLE", 98, PARSER_INIT_PLUGINSD, WORKER_PARSER_FIRST_JOB + 2},
  90. #line 55 "gperf-config.txt"
  91. {"RDSTATE", 23, PARSER_INIT_STREAMING, WORKER_PARSER_FIRST_JOB + 32},
  92. #line 29 "gperf-config.txt"
  93. {"DIMENSION", 31, PARSER_INIT_PLUGINSD|PARSER_INIT_STREAMING|PARSER_REP_METADATA, WORKER_PARSER_FIRST_JOB + 12},
  94. #line 42 "gperf-config.txt"
  95. {"DELETE_JOB", 111, PARSER_INIT_STREAMING, WORKER_PARSER_FIRST_JOB + 25},
  96. {(char*)0},
  97. #line 40 "gperf-config.txt"
  98. {"DYNCFG_RESET", 104, PARSER_INIT_PLUGINSD|PARSER_INIT_STREAMING, WORKER_PARSER_FIRST_JOB + 23},
  99. #line 37 "gperf-config.txt"
  100. {"DYNCFG_ENABLE", 101, PARSER_INIT_PLUGINSD|PARSER_INIT_STREAMING, WORKER_PARSER_FIRST_JOB + 20},
  101. #line 26 "gperf-config.txt"
  102. {"CHART", 32, PARSER_INIT_PLUGINSD|PARSER_INIT_STREAMING|PARSER_REP_METADATA, WORKER_PARSER_FIRST_JOB + 9},
  103. #line 35 "gperf-config.txt"
  104. {"SET", 11, PARSER_INIT_PLUGINSD|PARSER_INIT_STREAMING, WORKER_PARSER_FIRST_JOB + 18},
  105. #line 48 "gperf-config.txt"
  106. {"SET2", 1, PARSER_INIT_STREAMING, WORKER_PARSER_FIRST_JOB + 28},
  107. #line 57 "gperf-config.txt"
  108. {"RSET", 21, PARSER_INIT_STREAMING, WORKER_PARSER_FIRST_JOB + 34},
  109. #line 41 "gperf-config.txt"
  110. {"REPORT_JOB_STATUS", 110, PARSER_INIT_PLUGINSD|PARSER_INIT_STREAMING, WORKER_PARSER_FIRST_JOB + 24},
  111. #line 39 "gperf-config.txt"
  112. {"DYNCFG_REGISTER_JOB", 103, PARSER_INIT_PLUGINSD|PARSER_INIT_STREAMING, WORKER_PARSER_FIRST_JOB + 22},
  113. #line 58 "gperf-config.txt"
  114. {"RSSTATE", 24, PARSER_INIT_STREAMING, WORKER_PARSER_FIRST_JOB + 35},
  115. #line 18 "gperf-config.txt"
  116. {"HOST", 71, PARSER_INIT_PLUGINSD|PARSER_REP_METADATA, WORKER_PARSER_FIRST_JOB + 4},
  117. #line 38 "gperf-config.txt"
  118. {"DYNCFG_REGISTER_MODULE", 102, PARSER_INIT_PLUGINSD|PARSER_INIT_STREAMING, WORKER_PARSER_FIRST_JOB + 21},
  119. #line 25 "gperf-config.txt"
  120. {"BEGIN", 12, PARSER_INIT_PLUGINSD|PARSER_INIT_STREAMING, WORKER_PARSER_FIRST_JOB + 8},
  121. #line 47 "gperf-config.txt"
  122. {"BEGIN2", 2, PARSER_INIT_STREAMING, WORKER_PARSER_FIRST_JOB + 27},
  123. #line 54 "gperf-config.txt"
  124. {"RBEGIN", 22, PARSER_INIT_STREAMING, WORKER_PARSER_FIRST_JOB + 31},
  125. #line 27 "gperf-config.txt"
  126. {"CLABEL", 34, PARSER_INIT_PLUGINSD|PARSER_INIT_STREAMING|PARSER_REP_METADATA, WORKER_PARSER_FIRST_JOB + 10},
  127. #line 21 "gperf-config.txt"
  128. {"HOST_LABEL", 74, PARSER_INIT_PLUGINSD|PARSER_REP_METADATA, WORKER_PARSER_FIRST_JOB + 7},
  129. #line 19 "gperf-config.txt"
  130. {"HOST_DEFINE", 72, PARSER_INIT_PLUGINSD|PARSER_REP_METADATA, WORKER_PARSER_FIRST_JOB + 5},
  131. #line 53 "gperf-config.txt"
  132. {"CHART_DEFINITION_END", 33, PARSER_INIT_STREAMING|PARSER_REP_METADATA, WORKER_PARSER_FIRST_JOB + 30},
  133. #line 46 "gperf-config.txt"
  134. {"CLAIMED_ID", 61, PARSER_INIT_STREAMING|PARSER_REP_METADATA, WORKER_PARSER_FIRST_JOB + 26},
  135. #line 15 "gperf-config.txt"
  136. {"FLUSH", 97, PARSER_INIT_PLUGINSD, WORKER_PARSER_FIRST_JOB + 1},
  137. #line 20 "gperf-config.txt"
  138. {"HOST_DEFINE_END", 73, PARSER_INIT_PLUGINSD|PARSER_REP_METADATA, WORKER_PARSER_FIRST_JOB + 6},
  139. #line 28 "gperf-config.txt"
  140. {"CLABEL_COMMIT", 35, PARSER_INIT_PLUGINSD|PARSER_INIT_STREAMING|PARSER_REP_METADATA, WORKER_PARSER_FIRST_JOB + 11},
  141. #line 31 "gperf-config.txt"
  142. {"FUNCTION", 41, PARSER_INIT_PLUGINSD|PARSER_INIT_STREAMING|PARSER_REP_METADATA, WORKER_PARSER_FIRST_JOB + 14},
  143. #line 34 "gperf-config.txt"
  144. {"OVERWRITE", 52, PARSER_INIT_PLUGINSD|PARSER_INIT_STREAMING|PARSER_REP_METADATA, WORKER_PARSER_FIRST_JOB + 17},
  145. #line 33 "gperf-config.txt"
  146. {"LABEL", 51, PARSER_INIT_PLUGINSD|PARSER_INIT_STREAMING|PARSER_REP_METADATA, WORKER_PARSER_FIRST_JOB + 16},
  147. #line 36 "gperf-config.txt"
  148. {"VARIABLE", 53, PARSER_INIT_PLUGINSD|PARSER_INIT_STREAMING|PARSER_REP_METADATA, WORKER_PARSER_FIRST_JOB + 19},
  149. {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
  150. {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
  151. {(char*)0},
  152. #line 32 "gperf-config.txt"
  153. {"FUNCTION_RESULT_BEGIN", 42, PARSER_INIT_PLUGINSD|PARSER_INIT_STREAMING, WORKER_PARSER_FIRST_JOB + 15}
  154. };
  155. PARSER_KEYWORD *
  156. gperf_lookup_keyword (register const char *str, register size_t len)
  157. {
  158. if (len <= GPERF_PARSER_MAX_WORD_LENGTH && len >= GPERF_PARSER_MIN_WORD_LENGTH)
  159. {
  160. register unsigned int key = gperf_keyword_hash_function (str, len);
  161. if (key <= GPERF_PARSER_MAX_HASH_VALUE)
  162. {
  163. register const char *s = gperf_keywords[key].keyword;
  164. if (s && *str == *s && !strcmp (str + 1, s + 1))
  165. return &gperf_keywords[key];
  166. }
  167. }
  168. return 0;
  169. }