diff options
Diffstat (limited to 'Src/Zle/zle.h')
-rw-r--r-- | Src/Zle/zle.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Src/Zle/zle.h b/Src/Zle/zle.h index 23d5e3cd5..091d9e8e3 100644 --- a/Src/Zle/zle.h +++ b/Src/Zle/zle.h @@ -46,6 +46,7 @@ typedef wint_t ZLE_INT_T; /* Convert character or string to wide character or string */ #define ZWC(c) L ## c +#define ZWS(s) L ## s #define ZLEEOF WEOF @@ -68,8 +69,9 @@ typedef unsigned char *ZLE_STRING_T; typedef int ZLE_INT_T; #define ZLE_CHAR_SIZE sizeof(unsigned char) -/* Leave character or string as is */ +/* Leave character or string as is, but string must be unsigned char * */ #define ZWC(c) c +#define ZWS(s) (unsigned char *)s #define ZLEEOF EOF |