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.

52 lines
1.3 KiB

  1. // File Name: status.c
  2. // Owner: Masahiro Teragawa
  3. // Revision: 1.00 08/23/'95 Masahiro Teragawa
  4. //
  5. #include "win32.h"
  6. #include "fechrcnv.h"
  7. #ifdef DBCS_DIVIDE
  8. DBCS_STATUS dStatus0 = { CODE_UNKNOWN, '\0', FALSE };
  9. BOOL blkanji0 = FALSE; // Kanji In Mode
  10. DBCS_STATUS dStatus = { CODE_UNKNOWN, '\0', FALSE };
  11. BOOL blkanji = FALSE; // Kanji In Mode
  12. BOOL blkana = FALSE; // Kana Mode
  13. #endif // DBCS_DIVIDE
  14. int nCurrentCodeSet = CODE_UNKNOWN;
  15. /*********************************************************************/
  16. /* Function: FCC_Init */
  17. /*********************************************************************/
  18. void FCC_Init( void )
  19. {
  20. #ifdef DBCS_DIVIDE
  21. dStatus0.nCodeSet = CODE_UNKNOWN;
  22. dStatus0.cSavedByte = '\0';
  23. dStatus0.fESC = FALSE;
  24. blkanji0 = FALSE;
  25. dStatus.nCodeSet = CODE_UNKNOWN;
  26. dStatus.cSavedByte = '\0';
  27. dStatus.fESC = FALSE;
  28. blkanji = FALSE;
  29. blkana = FALSE;
  30. #endif // DBCS_DIVIDE
  31. nCurrentCodeSet = CODE_UNKNOWN;
  32. return;
  33. }
  34. /*********************************************************************/
  35. /* Function: FCC_GetCurrentEncodingMode */
  36. /*********************************************************************/
  37. int FCC_GetCurrentEncodingMode( void )
  38. {
  39. return nCurrentCodeSet;
  40. }