about summary refs log tree commit diff
path: root/Src/zsh.h
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2006-06-26 18:17:31 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2006-06-26 18:17:31 +0000
commit05bd0b2dd1efabeda472cb2f9a675a7269d4cf6a (patch)
tree83bce93bdd4b624397b0b24ac42b1848ce71a9e9 /Src/zsh.h
parentbd50a3c516f3e19c444c40987e657d1be78583c0 (diff)
downloadzsh-05bd0b2dd1efabeda472cb2f9a675a7269d4cf6a.tar.gz
zsh-05bd0b2dd1efabeda472cb2f9a675a7269d4cf6a.tar.xz
zsh-05bd0b2dd1efabeda472cb2f9a675a7269d4cf6a.zip
22518: Initial go at making parameter subscripts
use multibyte characters.
Diffstat (limited to 'Src/zsh.h')
-rw-r--r--Src/zsh.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/Src/zsh.h b/Src/zsh.h
index 092e05c0c..31609d3c5 100644
--- a/Src/zsh.h
+++ b/Src/zsh.h
@@ -1926,6 +1926,9 @@ typedef char *(*ZleGetLineFn) _((int *, int *));
 
 #ifdef MULTIBYTE_SUPPORT
 #define nicezputs(str, outs)	(void)mb_niceformat((str), (outs), NULL, 0)
+#define MB_METACHARINIT()	mb_metacharinit()
+#define MB_METACHARLEN(str)	mb_metacharlen(str)
+#define MB_METASTRLEN(str)	mb_metastrlen(str)
 
 #define MB_INCOMPLETE	((size_t)-2)
 #define MB_INVALID	((size_t)-1)
@@ -1946,6 +1949,9 @@ typedef char *(*ZleGetLineFn) _((int *, int *));
 #define ZWS(s)	L ## s
 
 #else
+#define MB_METACHARINIT()
+#define MB_METACHARLEN(str)	(*(str) == Meta ? 2 : 1)
+#define MB_METASTRLEN(str)	ztrlen(str)
 
 /* Leave character or string as is. */
 #define ZWC(c)	c