about summary refs log tree commit diff
path: root/Src/ztype.h
diff options
context:
space:
mode:
authorBarton E. Schaefer <schaefer@zsh.org>2014-10-02 08:39:43 -0700
committerBarton E. Schaefer <schaefer@zsh.org>2014-10-02 08:39:43 -0700
commit57252dc1e0b9f3b67189ac4957e51c31ee156ff6 (patch)
treedf98604eed85eed5a61d7b38ea9469dd5a6238b4 /Src/ztype.h
parent7adc786b0594d55de737e8ae63c3b34d9caa1ede (diff)
downloadzsh-57252dc1e0b9f3b67189ac4957e51c31ee156ff6.tar.gz
zsh-57252dc1e0b9f3b67189ac4957e51c31ee156ff6.tar.xz
zsh-57252dc1e0b9f3b67189ac4957e51c31ee156ff6.zip
33320 (cf. PWS 33311): revert 33069, fix lexing of bangchar during completion
add typtab_flags bits (replaces specialcomma boolean) to record any unusual handling of typtab entries; signal safety; make bangchar non-special during completion lexing of the command line.
Diffstat (limited to 'Src/ztype.h')
-rw-r--r--Src/ztype.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/Src/ztype.h b/Src/ztype.h
index 14f66101c..eef0f23db 100644
--- a/Src/ztype.h
+++ b/Src/ztype.h
@@ -59,6 +59,15 @@
 #define iwsep(X) zistype(X,IWSEP)
 #define inull(X) zistype(X,INULL)
 
+/*
+ * Bit flags for typtab_flags --- preserved after
+ * shell initialisation.
+ */
+#define ZTF_INIT     (0x0001) /* One-off initialisation done */
+#define ZTF_INTERACT (0x0002) /* Shell interative and reading from stdin */
+#define ZTF_SP_COMMA (0x0004) /* Treat comma as a special characters */
+#define ZTF_BANGCHAR (0x0008) /* Treat bangchar as a special character */
+
 #ifdef MULTIBYTE_SUPPORT
 #define WC_ZISTYPE(X,Y) wcsitype((X),(Y))
 #define WC_ISPRINT(X)	iswprint(X)