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.

47 lines
1.1 KiB

  1. /******************************************************************************
  2. *
  3. * File Name: hatmt.h
  4. *
  5. * - Header file for HangeulAutomata.
  6. *
  7. * Author: Beomseok Oh (BeomOh)
  8. *
  9. * Copyright (C) Microsoft Corp 1993-1994. All rights reserved.
  10. *
  11. ******************************************************************************/
  12. #ifndef _INC_HATMT
  13. #define _INC_HATMT // #defined if HATMT.H has been included.
  14. #ifdef DEBUG
  15. int _cdecl sprintf(char *, const char *, ...);
  16. #define Assertion(exp)\
  17. {\
  18. if (!(exp))\
  19. {\
  20. static BYTE szBuffer[40];\
  21. sprintf(szBuffer, "File: %s, Line: %d", __FILE__, __LINE__);\
  22. MessageBox(NULL, szBuffer, "Assertion Error", MB_OK | MB_ICONSTOP);\
  23. }\
  24. }
  25. #else
  26. #define Assertion(exp)
  27. #endif
  28. enum { Wrong, JaEum, MoEum, ChoSung, JongSung }; // Type of KeyCodes.
  29. #ifdef XWANSUNG_IME
  30. #define XWT_INVALID 0xFF
  31. #define XWT_EXTENDED 0x00
  32. #define XWT_WANSUNG 0x01
  33. #define XWT_JUNJA 0x02
  34. #define XWT_HANJA 0x03
  35. #define XWT_UDC 0x04
  36. #define N_WANSUNG 2350
  37. #endif
  38. #endif // _INC_HATMT