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.

40 lines
1.1 KiB

  1. //
  2. // Copyright (C) 1997, Microsoft Corporation. All Rights Reserved.
  3. //
  4. #ifndef __MAINDICT_H__
  5. #define __MAINDICT_H__
  6. #include "Pumsa.h"
  7. #include "ReadSilsaDict.h"
  8. #include "ReadHeosaDict.h"
  9. #ifndef _NO_OYONG_DICT_
  10. #include "ReadOyongDict.h" // enable not loading oyong dict for stemmer
  11. #endif
  12. #define MAIN_DICT_HEADER_SIZE 1024
  13. #define COPYRIGHT_STR "Copyright (C) 1996 Hangul Engineering Team. Microsoft Corporation(MSCH). All rights reserved.\n"
  14. struct _MainDictHeader {
  15. char COPYRIGHT_HEADER[150];
  16. WORD LexType;
  17. WORD Version;
  18. DWORD iSilsa; // seek point
  19. DWORD iHeosa;
  20. DWORD iOyong;
  21. DWORD reserved[5];
  22. _MainDictHeader() {
  23. Version = 0;
  24. iSilsa = iHeosa = iOyong = 0;
  25. memset(reserved, '\0', sizeof(reserved));
  26. memset(COPYRIGHT_HEADER, '\0', sizeof(COPYRIGHT_HEADER));
  27. strcpy(COPYRIGHT_HEADER, COPYRIGHT_STR);
  28. COPYRIGHT_HEADER[strlen(COPYRIGHT_HEADER)+1] = '\032';
  29. }
  30. };
  31. extern BOOL VerifyMainDict(LPSTR lpszLexFileName);
  32. extern BOOL OpenMainDict(LPSTR lpszLexFileName);
  33. extern void CloseMainDict();
  34. #endif // __MAINDICT_H__