diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2005-02-18 13:57:25 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2005-02-18 13:57:25 +0000 |
commit | d7c13fb2c3b1b014acde9c1cb17a1e34239b9751 (patch) | |
tree | 7b31d7d08233e1cc1b1ab46af1ac44b25ed4f2c1 /Src/system.h | |
parent | 294ef9e87237bf1dc12b17a26bc4b22aa5604282 (diff) | |
download | zsh-d7c13fb2c3b1b014acde9c1cb17a1e34239b9751.tar.gz zsh-d7c13fb2c3b1b014acde9c1cb17a1e34239b9751.tar.xz zsh-d7c13fb2c3b1b014acde9c1cb17a1e34239b9751.zip |
20822: Initial code for Unicode/multibyte input
20823: Debugging test in stat wrong for 64-bit systems
Diffstat (limited to 'Src/system.h')
-rw-r--r-- | Src/system.h | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/Src/system.h b/Src/system.h index 37f7d9fe3..b1c7481b7 100644 --- a/Src/system.h +++ b/Src/system.h @@ -705,40 +705,3 @@ extern short ospeed; # endif # endif #endif - -#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 - * character will convert into. We use it to keep strings - * sufficiently long. It should always be defined, but if it isn't - * just assume we are using Unicode which requires 6 characters. - * (Note that it's not necessarily defined to a constant.) - */ -#ifndef MB_CUR_MAX -#define MB_CUR_MAX 6 -#endif - -#define ZLENL L'\n' -#define ZLENUL L'\0' -#define ZLETAB L'\t' -#define ZLENULSTR L"" -#define ZS_memcpy wmemcpy -#define ZS_memmove wmemmove -#define ZC_icntrl iswcntrl -#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' -#define ZLETAB '\t' -#define ZLENULSTR "" -#define ZS_memcpy memcpy -#define ZS_memmove memmove -#define ZC_icntrl icntrl -#endif |