pptok.h 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  1. /* Automatically generated from ./asm/pptok.dat by ./asm/pptok.pl */
  2. /* Do not edit */
  3. enum preproc_token {
  4. PP_IF = 0,
  5. PP_IFCTX = 1,
  6. PP_IFDEF = 2,
  7. PP_IFDEFALIAS = 3,
  8. PP_IFEMPTY = 4,
  9. PP_IFENV = 5,
  10. PP_IFID = 6,
  11. PP_IFIDN = 7,
  12. PP_IFIDNI = 8,
  13. PP_IFMACRO = 9,
  14. PP_IFNUM = 10,
  15. PP_IFSTR = 11,
  16. PP_IFTOKEN = 12,
  17. PP_IFUSABLE = 13,
  18. PP_IFUSING = 14,
  19. PP_IF_COND_15 = 15,
  20. PP_IFN = 16,
  21. PP_IFNCTX = 17,
  22. PP_IFNDEF = 18,
  23. PP_IFNDEFALIAS = 19,
  24. PP_IFNEMPTY = 20,
  25. PP_IFNENV = 21,
  26. PP_IFNID = 22,
  27. PP_IFNIDN = 23,
  28. PP_IFNIDNI = 24,
  29. PP_IFNMACRO = 25,
  30. PP_IFNNUM = 26,
  31. PP_IFNSTR = 27,
  32. PP_IFNTOKEN = 28,
  33. PP_IFNUSABLE = 29,
  34. PP_IFNUSING = 30,
  35. PP_IFN_COND_15 = 31,
  36. PP_ELIF = 32,
  37. PP_ELIFCTX = 33,
  38. PP_ELIFDEF = 34,
  39. PP_ELIFDEFALIAS = 35,
  40. PP_ELIFEMPTY = 36,
  41. PP_ELIFENV = 37,
  42. PP_ELIFID = 38,
  43. PP_ELIFIDN = 39,
  44. PP_ELIFIDNI = 40,
  45. PP_ELIFMACRO = 41,
  46. PP_ELIFNUM = 42,
  47. PP_ELIFSTR = 43,
  48. PP_ELIFTOKEN = 44,
  49. PP_ELIFUSABLE = 45,
  50. PP_ELIFUSING = 46,
  51. PP_ELIF_COND_15 = 47,
  52. PP_ELIFN = 48,
  53. PP_ELIFNCTX = 49,
  54. PP_ELIFNDEF = 50,
  55. PP_ELIFNDEFALIAS = 51,
  56. PP_ELIFNEMPTY = 52,
  57. PP_ELIFNENV = 53,
  58. PP_ELIFNID = 54,
  59. PP_ELIFNIDN = 55,
  60. PP_ELIFNIDNI = 56,
  61. PP_ELIFNMACRO = 57,
  62. PP_ELIFNNUM = 58,
  63. PP_ELIFNSTR = 59,
  64. PP_ELIFNTOKEN = 60,
  65. PP_ELIFNUSABLE = 61,
  66. PP_ELIFNUSING = 62,
  67. PP_ELIFN_COND_15 = 63,
  68. PP_ALIASES = 64,
  69. PP_ARG = 65,
  70. PP_CLEAR = 66,
  71. PP_DEPEND = 67,
  72. PP_ELSE = 68,
  73. PP_ENDIF = 69,
  74. PP_ENDM = 70,
  75. PP_ENDMACRO = 71,
  76. PP_ENDREP = 72,
  77. PP_ERROR = 73,
  78. PP_EXITMACRO = 74,
  79. PP_EXITREP = 75,
  80. PP_FATAL = 76,
  81. PP_INCLUDE = 77,
  82. PP_LINE = 78,
  83. PP_LOCAL = 79,
  84. PP_NULL = 80,
  85. PP_POP = 81,
  86. PP_PRAGMA = 82,
  87. PP_PUSH = 83,
  88. PP_REP = 84,
  89. PP_REPL = 85,
  90. PP_ROTATE = 86,
  91. PP_STACKSIZE = 87,
  92. PP_UNDEF = 88,
  93. PP_UNDEFALIAS = 89,
  94. PP_USE = 90,
  95. PP_WARNING = 91,
  96. PP_ASSIGN = 92,
  97. PP_IASSIGN = 93,
  98. PP_DEFALIAS = 94,
  99. PP_IDEFALIAS = 95,
  100. PP_DEFINE = 96,
  101. PP_IDEFINE = 97,
  102. PP_DEFSTR = 98,
  103. PP_IDEFSTR = 99,
  104. PP_DEFTOK = 100,
  105. PP_IDEFTOK = 101,
  106. PP_MACRO = 102,
  107. PP_IMACRO = 103,
  108. PP_PATHSEARCH = 104,
  109. PP_IPATHSEARCH = 105,
  110. PP_RMACRO = 106,
  111. PP_IRMACRO = 107,
  112. PP_STRCAT = 108,
  113. PP_ISTRCAT = 109,
  114. PP_STRLEN = 110,
  115. PP_ISTRLEN = 111,
  116. PP_SUBSTR = 112,
  117. PP_ISUBSTR = 113,
  118. PP_XDEFINE = 114,
  119. PP_IXDEFINE = 115,
  120. PP_UNMACRO = 116,
  121. PP_UNIMACRO = 117,
  122. PP_INVALID = -1
  123. };
  124. #define PP_COND(x) ((x) & 0xf)
  125. #define PP_IS_COND(x) ((unsigned int)(x) < PP_ALIASES)
  126. #define PP_COND_NEGATIVE(x) (!!((x) & 0x10))
  127. #define PP_HAS_CASE(x) ((x) >= PP_ASSIGN)
  128. #define PP_INSENSITIVE(x) ((x) & 1)
  129. #define CASE_PP_IF \
  130. case PP_IF:\
  131. case PP_IFCTX:\
  132. case PP_IFDEF:\
  133. case PP_IFDEFALIAS:\
  134. case PP_IFEMPTY:\
  135. case PP_IFENV:\
  136. case PP_IFID:\
  137. case PP_IFIDN:\
  138. case PP_IFIDNI:\
  139. case PP_IFMACRO:\
  140. case PP_IFNUM:\
  141. case PP_IFSTR:\
  142. case PP_IFTOKEN:\
  143. case PP_IFUSABLE:\
  144. case PP_IFUSING:\
  145. case PP_IF_COND_15:\
  146. case PP_IFN:\
  147. case PP_IFNCTX:\
  148. case PP_IFNDEF:\
  149. case PP_IFNDEFALIAS:\
  150. case PP_IFNEMPTY:\
  151. case PP_IFNENV:\
  152. case PP_IFNID:\
  153. case PP_IFNIDN:\
  154. case PP_IFNIDNI:\
  155. case PP_IFNMACRO:\
  156. case PP_IFNNUM:\
  157. case PP_IFNSTR:\
  158. case PP_IFNTOKEN:\
  159. case PP_IFNUSABLE:\
  160. case PP_IFNUSING:\
  161. case PP_IFN_COND_15
  162. #define CASE_PP_ELIF \
  163. case PP_ELIF:\
  164. case PP_ELIFCTX:\
  165. case PP_ELIFDEF:\
  166. case PP_ELIFDEFALIAS:\
  167. case PP_ELIFEMPTY:\
  168. case PP_ELIFENV:\
  169. case PP_ELIFID:\
  170. case PP_ELIFIDN:\
  171. case PP_ELIFIDNI:\
  172. case PP_ELIFMACRO:\
  173. case PP_ELIFNUM:\
  174. case PP_ELIFSTR:\
  175. case PP_ELIFTOKEN:\
  176. case PP_ELIFUSABLE:\
  177. case PP_ELIFUSING:\
  178. case PP_ELIF_COND_15:\
  179. case PP_ELIFN:\
  180. case PP_ELIFNCTX:\
  181. case PP_ELIFNDEF:\
  182. case PP_ELIFNDEFALIAS:\
  183. case PP_ELIFNEMPTY:\
  184. case PP_ELIFNENV:\
  185. case PP_ELIFNID:\
  186. case PP_ELIFNIDN:\
  187. case PP_ELIFNIDNI:\
  188. case PP_ELIFNMACRO:\
  189. case PP_ELIFNNUM:\
  190. case PP_ELIFNSTR:\
  191. case PP_ELIFNTOKEN:\
  192. case PP_ELIFNUSABLE:\
  193. case PP_ELIFNUSING:\
  194. case PP_ELIFN_COND_15