about summary refs log tree commit diff
path: root/Src/Zle/comp.h
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>1999-09-22 13:22:05 +0000
committerTanaka Akira <akr@users.sourceforge.net>1999-09-22 13:22:05 +0000
commit5b061d74c20e153e166086f5c22ea62ef4f5a475 (patch)
treec62d76bda037df99c54e20e4936a49c1c57c52cd /Src/Zle/comp.h
parent6276757fe911f692e5a6fdd192ae3ea768d8e359 (diff)
downloadzsh-5b061d74c20e153e166086f5c22ea62ef4f5a475.tar.gz
zsh-5b061d74c20e153e166086f5c22ea62ef4f5a475.tar.xz
zsh-5b061d74c20e153e166086f5c22ea62ef4f5a475.zip
zsh-workers/7998
Diffstat (limited to 'Src/Zle/comp.h')
-rw-r--r--Src/Zle/comp.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/Src/Zle/comp.h b/Src/Zle/comp.h
index f27326a02..d7178a73a 100644
--- a/Src/Zle/comp.h
+++ b/Src/Zle/comp.h
@@ -195,6 +195,14 @@ struct cmgroup {
     LinkList lfmatches;		/* list of matches without fignore */
     LinkList lallccs;		/* list of used compctls */
     int num;			/* number of this group */
+    /* The following is collected/used during listing. */
+    int dcount;			/* number of matches to list in columns */
+    int cols;			/* number of columns */
+    int lins;			/* number of lines */
+    int width;			/* column width */
+    int *widths;		/* column widths for listpacked */
+    int totl;			/* total length */
+    int shortest;		/* length of shortest match */
 };
 
 
@@ -321,6 +329,22 @@ struct cadata {
     char *disp;			/* array with display lists (-d) */
 };
 
+/* List data. */
+
+typedef struct cldata *Cldata;
+
+struct cldata {
+    int columns;		/* screen width */
+    int lines;			/* screen height */
+    int valid;			/* no need to calculate anew */
+    int nlist;			/* number of matches to list */
+    int nlines;			/* number of lines needed */
+    int hidden;			/* != 0 if there are hidden matches */
+};
+
+typedef void (*CLPrintFunc)(Cmgroup, Cmatch *, int, int, int, int,
+			    char *, struct stat *);
+
 /* Data given to hooks. */
 
 typedef struct chdata *Chdata;