Source code of Windows XP (NT5)
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.

264 lines
9.6 KiB

  1. //////////////////////////////////////////////////
  2. // Copyright (C) 1997, Microsoft Corporation. All Rights Reserved.
  3. //
  4. // File : CHKDATA.HPP
  5. // Project : Project SIK
  6. //////////////////////////////////////////////////
  7. #if !defined (__BASEDEF_HPP)
  8. #define __BASEDEF_HPP 1
  9. #include <windows.h>
  10. #include "stemkor.h"
  11. //////////////////////////////////////////////////////////////
  12. //////////////////////////////////////////////////////////////
  13. #define UDEF -1 // undefined
  14. #define __K_G 1
  15. #define __K_G_D 2
  16. #define __K_N 3
  17. #define __K_D 5
  18. #define __K_D_D 6
  19. #define __K_R 7
  20. #define __K_M 10
  21. #define __K_B 11
  22. #define __K_B_D 12
  23. #define __K_S 13
  24. #define __K_S_D 14
  25. #define __K_I 15
  26. #define __K_J 16
  27. #define __K_J_D 17
  28. #define __K_C 18
  29. #define __K_K 19
  30. #define __K_T 20
  31. #define __K_P 21
  32. #define __K_H 22
  33. #define __V_k 23
  34. #define __V_o 24
  35. #define __V_i 25
  36. #define __V_O 26
  37. #define __V_j 27
  38. #define __V_p 28
  39. #define __V_u 29
  40. #define __V_P 30
  41. #define __V_h 31
  42. #define __V_hk 33
  43. #define __V_ho 34
  44. #define __V_hl 35
  45. #define __V_y 36
  46. #define __V_n 37
  47. #define __V_nj 38
  48. #define __V_np 39
  49. #define __V_nl 40
  50. #define __V_b 41
  51. #define __V_m 42
  52. #define __V_ml 43
  53. #define __V_l 44
  54. #define NULLCHAR 0x00
  55. // by hjw : 95/3/16
  56. #define lTRUE 1
  57. #define lFALSE 2
  58. #define FALSEMORE 3
  59. #define SUCCESS 4
  60. #define FAIL 5
  61. #define VALID 10
  62. #define INVALID 300
  63. #define BT 400
  64. #define MORECHECK 500
  65. // VALID Return Type Definition
  66. // VALID Return Type Change
  67. #define SS_AUX 50 // AUX_?_VALID + SS_AUX = SS_AUX_?_VALID
  68. #define SS_T 170
  69. #define Irr_AUX 80 // AUX_?_VALID + Irr_AUX = Irr_AUX_?_VALID
  70. #define Irr_SS 90 // SS_?_VALID + Irr_SS = Irr_SS_?_VALID
  71. #define Jap_T 210
  72. #define NOUN_VALID 11
  73. #define Deol_VALID 12
  74. #define Pref_VALID 13
  75. #define Suf_VALID 14
  76. #define PreSuf_VALID 15
  77. #define PRON_VALID 16
  78. #define NUM_VALID 17
  79. #define ALN_VALID 20
  80. // KTC_Proc
  81. #define KTC_VERB_VALID 30
  82. #define KTC_ADJ_VALID 31
  83. #define VERB_VALID 40
  84. #define ADJ_VALID 41
  85. #define Dap_VALID 42
  86. #define Gop_VALID 43
  87. #define Manha_VALID 44
  88. #define Yenha_VALID 45
  89. #define Manhaeci_VALID 46
  90. #define Cikha_VALID 47
  91. #define AUX_VERB_VALID 50
  92. #define AUX_ADJ_VALID 51
  93. #define AUX_Dap_VALID 52
  94. #define AUX_Gop_VALID 53
  95. #define AUX_Manha_VALID 54
  96. #define AUX_Yenha_VALID 55
  97. #define AUX_Manhaeci_VALID 56
  98. #define AUX_SS_VERB_VALID 60
  99. #define AUX_SS_ADJ_VALID 61
  100. #define AUX_SS_Dap_VALID 62
  101. #define AUX_SS_Gop_VALID 63
  102. #define AUX_SS_Manha_VALID 64
  103. #define AUX_SS_Yenha_VALID 65
  104. #define AUX_SS_Manhaeci_VALID 66
  105. #define AUX_Irr_VERB_VALID 70
  106. #define AUX_Irr_ADJ_VALID 71
  107. #define AUX_Irr_Dap_VALID 72
  108. #define SS_VERB_VALID 80
  109. #define SS_ADJ_VALID 81
  110. #define SS_Dap_VALID 82
  111. #define SS_Gop_VALID 83
  112. #define SS_Manha_VALID 84
  113. #define SS_Yenha_VALID 85
  114. #define SS_Manhaeci_VALID 86
  115. #define SS_Cikha_VALID 87
  116. #define SS_NOUN_VALID 91
  117. #define SS_Deol_VALID 92
  118. #define SS_Pref_VALID 93
  119. #define SS_Suf_VALID 94
  120. #define SS_PreSuf_VALID 95
  121. #define SS_PRON_VALID 96
  122. #define SS_NUM_VALID 97
  123. #define SS_AUX_VERB_VALID 100
  124. #define SS_AUX_ADJ_VALID 101
  125. #define SS_AUX_Dap_VALID 102
  126. #define SS_AUX_Gop_VALID 103
  127. #define SS_AUX_Manha_VALID 104
  128. #define SS_AUX_Yenha_VALID 105
  129. #define SS_AUX_Manhaeci_VALID 106
  130. #define SS_AUX_SS_VERB_VALID 110
  131. #define SS_AUX_SS_ADJ_VALID 111
  132. #define SS_AUX_SS_Dap_VALID 112
  133. #define SS_AUX_SS_Gop_VALID 113
  134. #define SS_AUX_SS_Manha_VALID 114
  135. #define SS_AUX_SS_Yenha_VALID 115
  136. #define SS_AUX_SS_Manhaeci_VALID 116
  137. #define SS_AUX_Irr_VERB_VALID 120
  138. #define SS_AUX_Irr_ADJ_VALID 121
  139. #define SS_AUX_Irr_Dap_VALID 122
  140. #define Irr_VERB_VALID 130
  141. #define Irr_ADJ_VALID 131
  142. #define Irr_Dap_VALID 132
  143. #define Irr_AUX_VERB_VALID 140
  144. #define Irr_AUX_ADJ_VALID 141
  145. #define Irr_AUX_Dap_VALID 142
  146. #define Irr_AUX_Gop_VALID 143
  147. #define Irr_AUX_Manha_VALID 144
  148. #define Irr_AUX_Yenha_VALID 145
  149. #define Irr_AUX_Manhaeci_VALID 146
  150. #define Irr_AUX_SS_VERB_VALID 150
  151. #define Irr_AUX_SS_ADJ_VALID 151
  152. #define Irr_AUX_SS_Dap_VALID 152
  153. #define Irr_AUX_SS_Gop_VALID 153
  154. #define Irr_AUX_SS_Manha_VALID 154
  155. #define Irr_AUX_SS_Yenha_VALID 155
  156. #define Irr_AUX_SS_Manhaeci_VALID 156
  157. #define Irr_AUX_Irr_VERB_VALID 160
  158. #define Irr_AUX_Irr_ADJ_VALID 161
  159. #define Irr_AUX_Irr_Dap_VALID 162
  160. #define Irr_SS_VERB_VALID 170
  161. #define Irr_SS_ADJ_VALID 171
  162. #define Irr_SS_Dap_VALID 172
  163. #define Irr_SS_Gop_VALID 173
  164. #define Irr_SS_Manha_VALID 174
  165. #define Irr_SS_Yenha_VALID 175
  166. #define Irr_SS_Manhaeci_VALID 176
  167. #define Irr_SS_Cikha_VALID 177
  168. #define Irr_SS_NOUN_VALID 181
  169. #define Irr_SS_Deol_VALID 182
  170. #define Irr_SS_Pref_VALID 183
  171. #define Irr_SS_Suf_VALID 184
  172. #define Irr_SS_PreSuf_VALID 185
  173. #define Irr_SS_PRON_VALID 186
  174. #define Irr_SS_NUM_VALID 187
  175. #define Irr_SS_AUX_VERB_VALID 190
  176. #define Irr_SS_AUX_ADJ_VALID 191
  177. #define Irr_SS_AUX_Dap_VALID 192
  178. #define Irr_SS_AUX_Gop__VALID 193
  179. #define Irr_SS_AUX_Manha_VALID 194
  180. #define Irr_SS_AUX_Yenha_VALID 195
  181. #define Irr_SS_AUX_Manhaeci_VALID 196
  182. #define Irr_SS_AUX_SS_VERB_VALID 200
  183. #define Irr_SS_AUX_SS_ADJ_VALID 201
  184. #define Irr_SS_AUX_SS_Dap_VALID 202
  185. #define Irr_SS_AUX_SS_Gop_VALID 203
  186. #define Irr_SS_AUX_SS_Manha_VALID 204
  187. #define Irr_SS_AUX_SS_Yenha_VALID 205
  188. #define Irr_SS_AUX_SS_Manhaeci_VALID 206
  189. #define Irr_SS_AUX_Irr_VERB_VALID 210
  190. #define Irr_SS_AUX_Irr_ADJ_VALID 211
  191. #define Irr_SS_AUX_Irr_Dap_VALID 212
  192. #define Jap_VALID 220
  193. #define Jap_NOUN_VALID 221
  194. #define Jap_PRON_VALID 222
  195. #define Jap_Deol_VALID 223
  196. #define Jap_Pref_VALID 224
  197. #define Jap_Suf_VALID 225
  198. #define Jap_PreSuf_VALID 226
  199. #define Jap_NUM_VALID 227
  200. #define NCV_VALID 190
  201. #define VCV_VALID 191
  202. #define Bloc_VALID 192
  203. // Function Call Definition
  204. #define Dap_Proc 201
  205. #define Gop_Proc 202
  206. #define Manha_Proc 203
  207. #define Manhaeci_Proc 204
  208. #define Machine_T 205
  209. #define Block_Comm 206
  210. #define Irr_KN_Vl 207
  211. #define Irr_OPS 208
  212. #define SS 209
  213. #define WORDLEN 32
  214. #define uWORDLEN 64
  215. // by dhyu --- 1996. 3
  216. // These defines are return values in compose routine.
  217. #define COMPOSED 1
  218. #define NOT_COMPOSED 2
  219. #define COMPOSE_ERROR 3
  220. #endif