Leaked source code of windows server 2003
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.

261 lines
6.8 KiB

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