diff options
Diffstat (limited to 'Src/system.h')
-rw-r--r-- | Src/system.h | 8 |
1 files changed, 8 insertions, 0 deletions
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 |