From d9137fd4b6031f0d1640b31779b41dbf742df18d Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Wed, 23 Feb 2005 13:50:09 +0000 Subject: 20854: more Unicode stuff. --- Src/Zle/zle.h | 36 ++++++------------------------------ 1 file changed, 6 insertions(+), 30 deletions(-) (limited to 'Src/Zle/zle.h') diff --git a/Src/Zle/zle.h b/Src/Zle/zle.h index 9c99f0b75..c95959776 100644 --- a/Src/Zle/zle.h +++ b/Src/Zle/zle.h @@ -44,21 +44,9 @@ typedef wint_t ZLE_INT_T; #define MB_CUR_MAX 6 #endif -#define ZLENL L'\n' -#define ZLENUL L'\0' -#define ZLETAB L'\t' -#define ZLESPC L' ' - -#define DIGIT_1 L'1' -#define DIGIT_9 L'9' -#define LETTER_a L'a' -#define LETTER_z L'z' -#define LETTER_A L'A' -#define LETTER_Z L'Z' -#define LETTER_y L'y' -#define LETTER_n L'n' - -#define ZLENULSTR L"" +/* Convert character or string to wide character or string */ +#define ZWC(c) L ## c + #define ZLEEOF WEOF #define ZS_memcpy wmemcpy #define ZS_memmove wmemmove @@ -73,21 +61,9 @@ typedef unsigned char *ZLE_STRING_T; typedef int ZLE_INT_T; #define ZLE_CHAR_SIZE sizeof(unsigned char) -#define ZLENL '\n' -#define ZLENUL '\0' -#define ZLETAB '\t' -#define ZLESPC ' ' - -#define DIGIT_1 '1' -#define DIGIT_9 '9' -#define LETTER_a 'a' -#define LETTER_z 'z' -#define LETTER_A 'A' -#define LETTER_Z 'Z' -#define LETTER_y 'y' -#define LETTER_n 'n' - -#define ZLENULSTR "" +/* Leave character or string as is */ +#define ZWC(c) c + #define ZLEEOF EOF #define ZS_memcpy memcpy #define ZS_memmove memmove -- cgit 1.4.1