Windows NT 4.0 source code leak
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

259 lines
6.5 KiB

4 years ago
  1. #ifndef __DBENTRY_DEFINED__
  2. #define __DBENTRY_DEFINED__
  3. #define EXPECTED_CHAR (1)
  4. #define EXPECTED_CONSTRUCT (2)
  5. typedef struct _dbentry {
  6. short fExpected;
  7. short State;
  8. char * pExpected;
  9. } DBERR;
  10. #endif /*__DBENTRY_DEFINED__*/
  11. #define IDL_MAX_DB_ENTRIES 239
  12. char * GetExpectedSyntax( short );
  13. DBERR IDL_SyntaxErrorDB[ IDL_MAX_DB_ENTRIES ] = {
  14. { 2, 0, "an interface header"}
  15. ,{ 2, 1, "the end of file"}
  16. ,{ 1, 3, "{"}
  17. ,{ 2, 4, "a keyword \"interface\""}
  18. ,{ 2, 4, "an interface attribute"}
  19. ,{ 2, 6, "an interface attribute"}
  20. ,{ 2, 8, "an identifier"}
  21. ,{ 1, 10, "]"}
  22. ,{ 1, 10, ","}
  23. ,{ 1, 13, "("}
  24. ,{ 1, 14, "("}
  25. ,{ 1, 17, "("}
  26. ,{ 1, 18, "("}
  27. ,{ 1, 18, "("}
  28. ,{ 1, 19, "}"}
  29. ,{ 2, 24, "a list of import files"}
  30. ,{ 2, 28, "a string literal"}
  31. ,{ 2, 29, "a declaration ( did you forget to specify or define the (return) type ? )"}
  32. ,{ 1, 31, "("}
  33. ,{ 1, 32, "("}
  34. ,{ 1, 33, "("}
  35. ,{ 1, 34, "("}
  36. ,{ 2, 38, "a switch_type specification"}
  37. ,{ 2, 38, "an operation attribute"}
  38. ,{ 2, 41, "an interface attribute"}
  39. ,{ 2, 42, "end point specifications"}
  40. ,{ 2, 43, "a guid specification"}
  41. ,{ 2, 44, "a pointer attribute"}
  42. ,{ 2, 45, "a number"}
  43. ,{ 2, 45, "a number"}
  44. ,{ 2, 46, "the end of file"}
  45. ,{ 1, 50, ";"}
  46. ,{ 1, 50, ","}
  47. ,{ 2, 58, "a declaration specifier"}
  48. ,{ 2, 59, "a declaration specifier"}
  49. ,{ 2, 95, "a declaration ( did you forget to specify or define the (return) type ? )"}
  50. ,{ 2, 114, "an identifier"}
  51. ,{ 2, 115, "a string literal"}
  52. ,{ 2, 116, "a string literal"}
  53. ,{ 2, 117, "a string literal"}
  54. ,{ 1, 119, "]"}
  55. ,{ 1, 120, "]"}
  56. ,{ 2, 120, "an operation attribute"}
  57. ,{ 1, 121, "("}
  58. ,{ 1, 142, ")"}
  59. ,{ 1, 142, ","}
  60. ,{ 1, 145, ")"}
  61. ,{ 1, 146, "-"}
  62. ,{ 1, 149, ")"}
  63. ,{ 1, 150, ")"}
  64. ,{ 1, 150, "."}
  65. ,{ 2, 153, "an import file name"}
  66. ,{ 2, 154, "an interface specification"}
  67. ,{ 2, 155, "a declaration specifier"}
  68. ,{ 2, 158, "a type attribute"}
  69. ,{ 1, 159, ";"}
  70. ,{ 2, 167, "a declarator"}
  71. ,{ 1, 167, ")"}
  72. ,{ 1, 190, "]"}
  73. ,{ 1, 190, "*"}
  74. ,{ 2, 190, "a constant expression"}
  75. ,{ 2, 190, "an array bound specification"}
  76. ,{ 1, 191, "("}
  77. ,{ 1, 192, "("}
  78. ,{ 2, 193, "a number"}
  79. ,{ 1, 200, "{"}
  80. ,{ 1, 209, "{"}
  81. ,{ 1, 212, "{"}
  82. ,{ 2, 212, "a union switch specification"}
  83. ,{ 1, 214, "{"}
  84. ,{ 1, 216, ")"}
  85. ,{ 1, 217, ")"}
  86. ,{ 1, 218, ","}
  87. ,{ 1, 219, ","}
  88. ,{ 2, 223, "a type specification or enum name"}
  89. ,{ 2, 225, "an end point specification"}
  90. ,{ 2, 227, "a guid specification"}
  91. ,{ 2, 231, "a number"}
  92. ,{ 2, 236, "a declarator"}
  93. ,{ 1, 238, "]"}
  94. ,{ 1, 238, ","}
  95. ,{ 1, 245, "("}
  96. ,{ 1, 246, "("}
  97. ,{ 2, 251, "a declarator"}
  98. ,{ 2, 252, "an initializer"}
  99. ,{ 2, 254, "a parameter declaration"}
  100. ,{ 1, 263, ")"}
  101. ,{ 1, 267, "]"}
  102. ,{ 2, 267, "\"..\""}
  103. ,{ 1, 268, "]"}
  104. ,{ 2, 282, "a declaration specifier"}
  105. ,{ 2, 282, "an expression"}
  106. ,{ 2, 284, "an expression"}
  107. ,{ 1, 285, "("}
  108. ,{ 2, 285, "UnaryExpr"}
  109. ,{ 2, 302, "a keyword \"segname\" / \"segment\" / \"self\""}
  110. ,{ 2, 303, "a string literal"}
  111. ,{ 2, 307, "a list of identifiers"}
  112. ,{ 1, 310, "{"}
  113. ,{ 1, 312, "("}
  114. ,{ 2, 313, "an enumerator list"}
  115. ,{ 2, 316, "a string literal"}
  116. ,{ 2, 317, "a string literal"}
  117. ,{ 1, 318, ")"}
  118. ,{ 2, 322, "an identifier"}
  119. ,{ 1, 325, "-"}
  120. ,{ 1, 326, ")"}
  121. ,{ 1, 327, ";"}
  122. ,{ 1, 327, ","}
  123. ,{ 2, 329, "a type attribute"}
  124. ,{ 2, 330, "a transmit_type specification"}
  125. ,{ 2, 331, "an int size specification"}
  126. ,{ 2, 335, "an initializer"}
  127. ,{ 2, 347, "a constant expression"}
  128. ,{ 2, 349, "an expression"}
  129. ,{ 2, 350, "an expression"}
  130. ,{ 2, 351, "an expression"}
  131. ,{ 2, 352, "an expression"}
  132. ,{ 2, 353, "an expression"}
  133. ,{ 2, 354, "an expression"}
  134. ,{ 2, 355, "an expression"}
  135. ,{ 2, 356, "an expression"}
  136. ,{ 2, 357, "an expression"}
  137. ,{ 2, 358, "an expression"}
  138. ,{ 2, 359, "an expression"}
  139. ,{ 2, 360, "an expression"}
  140. ,{ 2, 361, "an expression"}
  141. ,{ 2, 362, "an expression"}
  142. ,{ 2, 363, "an expression"}
  143. ,{ 2, 364, "an expression"}
  144. ,{ 1, 369, ","}
  145. ,{ 1, 369, ")"}
  146. ,{ 2, 371, "an expression"}
  147. ,{ 2, 372, "arguments of function"}
  148. ,{ 2, 373, "an identifier"}
  149. ,{ 2, 374, "an identifier"}
  150. ,{ 2, 376, "a declaration specifier"}
  151. ,{ 2, 376, "an expression"}
  152. ,{ 1, 378, ")"}
  153. ,{ 1, 383, ")"}
  154. ,{ 1, 384, "}"}
  155. ,{ 1, 384, ","}
  156. ,{ 2, 388, "a union specification"}
  157. ,{ 2, 391, "a type specification or enum name"}
  158. ,{ 1, 392, "}"}
  159. ,{ 1, 392, ","}
  160. ,{ 1, 392, ","}
  161. ,{ 1, 395, ")"}
  162. ,{ 1, 396, ")"}
  163. ,{ 2, 399, "a guid specification"}
  164. ,{ 1, 403, ")"}
  165. ,{ 1, 408, ")"}
  166. ,{ 2, 411, "an expression"}
  167. ,{ 1, 423, ")"}
  168. ,{ 2, 426, "a parameter type declaration ( did you forget to define or specify the type of the parameter ? )"}
  169. ,{ 2, 429, "a parameter attribute"}
  170. ,{ 1, 431, ","}
  171. ,{ 1, 431, ":"}
  172. ,{ 1, 447, ")"}
  173. ,{ 2, 449, "an expression"}
  174. ,{ 1, 451, ","}
  175. ,{ 1, 451, "]"}
  176. ,{ 1, 452, ")"}
  177. ,{ 1, 452, ","}
  178. ,{ 2, 460, "an identifier"}
  179. ,{ 2, 463, "a declaration specifier"}
  180. ,{ 2, 466, "a field attribute"}
  181. ,{ 1, 467, "}"}
  182. ,{ 2, 472, "a field attribute"}
  183. ,{ 2, 472, "a keyword \"case\""}
  184. ,{ 1, 473, "}"}
  185. ,{ 2, 478, "a constant expression"}
  186. ,{ 2, 479, "an identifier"}
  187. ,{ 2, 482, "a constant expression"}
  188. ,{ 1, 485, "-"}
  189. ,{ 1, 488, "}"}
  190. ,{ 1, 496, "]"}
  191. ,{ 1, 496, ","}
  192. ,{ 1, 502, "("}
  193. ,{ 1, 503, "("}
  194. ,{ 1, 504, "("}
  195. ,{ 1, 505, "("}
  196. ,{ 1, 506, "("}
  197. ,{ 1, 507, "("}
  198. ,{ 1, 514, "("}
  199. ,{ 2, 515, "an expression"}
  200. ,{ 2, 516, "an expression"}
  201. ,{ 2, 520, "an expression"}
  202. ,{ 1, 521, ")"}
  203. ,{ 1, 527, "]"}
  204. ,{ 1, 527, ","}
  205. ,{ 2, 532, "a field attribute"}
  206. ,{ 2, 532, "a keyword \"case\""}
  207. ,{ 2, 532, "a keyword \"default\""}
  208. ,{ 2, 532, "a keyword \"default\""}
  209. ,{ 1, 535, "("}
  210. ,{ 1, 539, ":"}
  211. ,{ 1, 542, ":"}
  212. ,{ 1, 543, ")"}
  213. ,{ 2, 546, "a guid specification"}
  214. ,{ 1, 549, "."}
  215. ,{ 2, 553, "a parameter attribute"}
  216. ,{ 2, 555, "a keyword \"shape\""}
  217. ,{ 2, 557, "a list of attribute expressions"}
  218. ,{ 2, 558, "a list of attribute expressions"}
  219. ,{ 2, 559, "a list of attribute expressions"}
  220. ,{ 2, 560, "a list of attribute expressions"}
  221. ,{ 2, 561, "a list of attribute expressions"}
  222. ,{ 2, 562, "a list of attribute expressions"}
  223. ,{ 2, 563, "an attribute expression"}
  224. ,{ 1, 568, ";"}
  225. ,{ 1, 568, ","}
  226. ,{ 2, 571, "a constant expression"}
  227. ,{ 2, 573, "a field attribute"}
  228. ,{ 1, 574, "]"}
  229. ,{ 1, 574, "]"}
  230. ,{ 2, 575, "a constant expression"}
  231. ,{ 1, 579, "-"}
  232. ,{ 1, 582, ")"}
  233. ,{ 1, 583, ")"}
  234. ,{ 1, 583, ","}
  235. ,{ 1, 587, ")"}
  236. ,{ 1, 587, ","}
  237. ,{ 1, 588, ")"}
  238. ,{ 1, 588, ","}
  239. ,{ 1, 589, ")"}
  240. ,{ 1, 589, ","}
  241. ,{ 1, 590, ")"}
  242. ,{ 1, 590, ","}
  243. ,{ 1, 591, ")"}
  244. ,{ 1, 591, ","}
  245. ,{ 1, 592, ")"}
  246. ,{ 2, 595, "a constant expression"}
  247. ,{ 1, 599, ")"}
  248. ,{ 1, 599, ","}
  249. ,{ 2, 602, "a guid specification"}
  250. ,{ 2, 605, "an attribute expression"}
  251. ,{ 1, 616, "]"}
  252. ,{ 2, 617, "a constant expression"}
  253. };