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.

45 lines
1.1 KiB

  1. /*----------------------------------------------------------------------------
  2. %%File: lexint_.h
  3. %%Unit: fechmap
  4. %%Contact: jpick
  5. Header file for internal FarEast lexer modules.
  6. ----------------------------------------------------------------------------*/
  7. #ifndef LEXINT__H
  8. #define LEXINT__H
  9. #include <windows.h>
  10. #include <stdio.h>
  11. #include <stddef.h>
  12. // REVIEW: other common internal lexer defs go here.
  13. //
  14. // Token type
  15. //
  16. typedef unsigned char JTK;
  17. // Two-Byte Character Mode Mask
  18. //
  19. #define grfTwoByte (JTK) 0x80
  20. // Longest *character* sequence (not escape sequence -- this
  21. // is the length of the longest multi-byte character).
  22. //
  23. #define cchSeqMax 4
  24. // Prototypes/Defines for the format validation module
  25. //
  26. #define grfValidateCharMapping 0x0001
  27. #define grfCountCommonChars 0x0002
  28. void ValidateInit(ICET icetIn, DWORD dwFlags);
  29. void ValidateInitAll(DWORD dwFlags);
  30. void ValidateReset(ICET icetIn);
  31. void ValidateResetAll(void);
  32. int NValidateUch(ICET icetIn, UCHAR uch, BOOL fEoi);
  33. BOOL FValidateCharCount(ICET icetIn, int *lpcMatch);
  34. #endif // #ifndef LEXINT__H