summaryrefslogtreecommitdiff
path: root/Src/system.h
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2005-01-25 16:40:41 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2005-01-25 16:40:41 +0000
commitefd03cf9e892d8faade5c2012ebfd6fac02664d4 (patch)
treed7b418fac53d0cbb76e538150a734a75b7784746 /Src/system.h
parentb80c6b0863127da4511abf2ebb1f9328db5730aa (diff)
downloadzsh-efd03cf9e892d8faade5c2012ebfd6fac02664d4.tar.gz
zsh-efd03cf9e892d8faade5c2012ebfd6fac02664d4.zip
20742: More Unicode conversion stuff.
Diffstat (limited to 'Src/system.h')
-rw-r--r--Src/system.h8
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