about summary refs log tree commit diff
path: root/Src/Zle/comp.h
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2002-05-21 08:07:51 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2002-05-21 08:07:51 +0000
commit5a89ede77be4ff696a77fb609ab29f5bf1e1dc37 (patch)
treeb0e4d0ea6998388f24e547dd4365c990ea8d485b /Src/Zle/comp.h
parent12f253e7e6bec90e38cb5622701ff701d08bf8a8 (diff)
downloadzsh-5a89ede77be4ff696a77fb609ab29f5bf1e1dc37.tar.gz
zsh-5a89ede77be4ff696a77fb609ab29f5bf1e1dc37.tar.xz
zsh-5a89ede77be4ff696a77fb609ab29f5bf1e1dc37.zip
fix for file-type-tests in nested quotes and don't count space file-type-character (17195)
Diffstat (limited to 'Src/Zle/comp.h')
-rw-r--r--Src/Zle/comp.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/Src/Zle/comp.h b/Src/Zle/comp.h
index 20bfb0f99..5e25cdeb6 100644
--- a/Src/Zle/comp.h
+++ b/Src/Zle/comp.h
@@ -92,6 +92,7 @@ struct cmgroup {
 
 struct cmatch {
     char *str;			/* the match itself */
+    char *orig;                 /* the match string unquoted */
     char *ipre;			/* ignored prefix, has to be re-inserted */
     char *ripre;		/* ignored prefix, unquoted */
     char *isuf;			/* ignored suffix */
@@ -111,6 +112,8 @@ struct cmatch {
     int qisl;			/* length of quote-suffix */
     int rnum;			/* group relative number */
     int gnum;			/* global number */
+    mode_t mode;                /* mode field of a stat */
+    char modec;                 /* LIST_TYPE-character for mode or nul */
 };
 
 #define CMF_FILE     (1<< 0)	/* this is a file */
@@ -286,8 +289,7 @@ struct cldata {
     int showall;		/* != 0 if hidden matches should be shown */
 };
 
-typedef void (*CLPrintFunc)(Cmgroup, Cmatch *, int, int, int, int,
-			    char *, struct stat *);
+typedef void (*CLPrintFunc)(Cmgroup, Cmatch *, int, int, int, int);
 
 /* Flags for fromcomp. */