diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2005-07-28 14:45:32 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2005-07-28 14:45:32 +0000 |
commit | 8665549030043b6eee46f60d52c57e8519372286 (patch) | |
tree | 8f2e50a6f567d9294e754f2569bec7b319ae8316 /Src/Zle/zle_utils.c | |
parent | a680faf0502063ae7488b20a95d3d82f49a12120 (diff) | |
download | zsh-8665549030043b6eee46f60d52c57e8519372286.tar.gz zsh-8665549030043b6eee46f60d52c57e8519372286.tar.xz zsh-8665549030043b6eee46f60d52c57e8519372286.zip |
21541: remove some warnings from ZLE_UNICODE_SUPPORT
Diffstat (limited to 'Src/Zle/zle_utils.c')
-rw-r--r-- | Src/Zle/zle_utils.c | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/Src/Zle/zle_utils.c b/Src/Zle/zle_utils.c index 5d63a9ebc..aa691bcdc 100644 --- a/Src/Zle/zle_utils.c +++ b/Src/Zle/zle_utils.c @@ -85,10 +85,23 @@ sizeline(int sz) /**/ mod_export void -zleaddtoline(ZLE_CHAR_T chr) +zleaddtoline(int chr) { spaceinline(1); +#ifdef ZLE_UNICODE_SUPPORT + /* + * TODO: the main shell has as yet very little notion of multibyte + * characters. Until this gets fixed we just have to assume + * this is a complete character. + * + * Possibly we could get away with attempting to build up a + * multibyte character here, storing partial characters between + * calls. + */ + zleline[zlecs++] = (ZLE_CHAR_T)chr; +#else zleline[zlecs++] = chr; +#endif } /* @@ -188,7 +201,6 @@ stringaszleline(unsigned char *instr, int *outll, int *outsz) ZLE_STRING_T outstr; int ll, sz; #ifdef ZLE_UNICODE_SUPPORT - int cll; mbstate_t ps; #endif |