diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2005-02-25 10:20:38 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2005-02-25 10:20:38 +0000 |
commit | ddd172ebe2c625d4e894c66f511e803b50b20f78 (patch) | |
tree | 30a3462e5c63f91fbb30f5d3eb47bbc250ff9568 /Src/Zle/zle.h | |
parent | 29b6b82ade1a38df6a3227ba45f4eafc0b5d6fe0 (diff) | |
download | zsh-ddd172ebe2c625d4e894c66f511e803b50b20f78.tar.gz zsh-ddd172ebe2c625d4e894c66f511e803b50b20f78.tar.xz zsh-ddd172ebe2c625d4e894c66f511e803b50b20f78.zip |
20863: fix history (i)searching for Unicode
Diffstat (limited to 'Src/Zle/zle.h')
-rw-r--r-- | Src/Zle/zle.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Src/Zle/zle.h b/Src/Zle/zle.h index 091d9e8e3..d5fac1a80 100644 --- a/Src/Zle/zle.h +++ b/Src/Zle/zle.h @@ -53,12 +53,21 @@ typedef wint_t ZLE_INT_T; #define ZS_memcpy wmemcpy #define ZS_memmove wmemmove #define ZS_memset wmemset +#define ZS_memcmp wmemcmp #define ZS_strlen wcslen #define ZS_strcpy wcscpy #define ZS_strncpy wcsncpy #define ZS_strncmp wcsncmp #define ZC_icntrl iswcntrl +#define ZC_iblank iswspace +/* + * TODO: doesn't work on arguments with side effects. + * Also YUK. Not even sure this is guaranteed to work. + */ +#define ZC_iident(x) (x < 256 && iident((int)x)) + +#define ZC_tolower towlower #define LASTFULLCHAR lastchar_wide @@ -78,12 +87,17 @@ typedef int ZLE_INT_T; #define ZS_memcpy memcpy #define ZS_memmove memmove #define ZS_memset memset +#define ZS_memcmp memcmp #define ZS_strlen strlen #define ZS_strcpy strcpy #define ZS_strncpy strncpy #define ZS_strncmp strncmp #define ZC_icntrl icntrl +#define ZC_iblank iblank +#define ZC_iident iident + +#define ZC_tolower tulower #define LASTFULLCHAR lastchar |