From efd03cf9e892d8faade5c2012ebfd6fac02664d4 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Tue, 25 Jan 2005 16:40:41 +0000 Subject: 20742: More Unicode conversion stuff. --- Src/system.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Src/system.h') diff --git a/Src/system.h b/Src/system.h index 0fec678d3..55a628733 100644 --- a/Src/system.h +++ b/Src/system.h @@ -709,6 +709,7 @@ extern short ospeed; #ifdef ZLE_UNICODE_SUPPORT typedef wchar_t ZLE_CHAR_T; typedef wchar_t *ZLE_STRING_T; +#define ZLE_CHAR_SIZE sizeof(wchar_t) /* * MB_CUR_MAX is the maximum number of bytes that a single wide @@ -720,7 +721,14 @@ typedef wchar_t *ZLE_STRING_T; #ifndef MB_CUR_MAX #define MB_CUR_MAX 6 #endif + +#define ZLENL L'\n' +#define ZLENUL L'\0' #else typedef int ZLE_CHAR_T; typedef unsigned char *ZLE_STRING_T; +#define ZLE_CHAR_SIZE sizeof(unsigned char) + +#define ZLENL '\n' +#define ZLENUL '\0' #endif -- cgit 1.4.1