From b06daa620f60a2a2fa942e739c3ba62ee87731f8 Mon Sep 17 00:00:00 2001 From: Boudewijn Dekker Date: Tue, 18 May 1999 18:04:30 +0000 Subject: [PATCH] no message svn path=/trunk/; revision=482 --- reactos/include/crtdll/mbctype.h | 28 ++++++++++++++++++++++++---- reactos/include/crtdll/mbstring.h | 2 +- 2 files changed, 25 insertions(+), 5 deletions(-) diff --git a/reactos/include/crtdll/mbctype.h b/reactos/include/crtdll/mbctype.h index c287ed81ad7..09b5059fee4 100644 --- a/reactos/include/crtdll/mbctype.h +++ b/reactos/include/crtdll/mbctype.h @@ -5,10 +5,10 @@ extern "C" { #endif -#define _MS 0x01 -#define _MP 0x02 -#define _M1 0x04 -#define _M2 0x08 +//#define _MS 0x01 +//#define _MP 0x02 +//#define _M1 0x04 +//#define _M2 0x08 #define _MBC_SINGLE 0 #define _MBC_LEAD 1 @@ -20,6 +20,26 @@ extern "C" { #define _MB_CP_ANSI -3 #define _MB_CP_LOCALE -4 +#define _KNJ_M ((char)0x01) /* Non-punctuation of Kana-set */ +#define _KNJ_P ((char)0x02) /* Punctuation of Kana-set */ +#define _KNJ_1 ((char)0x04) /* Legal 1st byte of double byte stream */ +#define _KNJ_2 ((char)0x08) /* Legal 2nd btye of double byte stream */ + + +#define ___ 0 +#define _1_ _KNJ_1 /* Legal 1st byte of double byte code */ +#define __2 _KNJ_2 /* Legal 2nd byte of double byte code */ +#define _M_ _KNJ_M /* Non-puntuation in Kana-set */ +#define _P_ _KNJ_P /* Punctuation of Kana-set */ +#define _12 (_1_|__2) +#define _M2 (_M_|__2) +#define _P2 (_P_|__2) + +extern char _jctype[257]; + +int _ismbbkana( unsigned char c ); + + #ifdef __cplusplus } #endif diff --git a/reactos/include/crtdll/mbstring.h b/reactos/include/crtdll/mbstring.h index 2982380853e..48b4f716d5f 100644 --- a/reactos/include/crtdll/mbstring.h +++ b/reactos/include/crtdll/mbstring.h @@ -5,7 +5,7 @@ extern "C" { #endif - +#include int _mbbtype(unsigned char c, int type); int _mbsbtype( const unsigned char *str, size_t n );