From 5b061d74c20e153e166086f5c22ea62ef4f5a475 Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Wed, 22 Sep 1999 13:22:05 +0000 Subject: zsh-workers/7998 --- Src/Zle/comp.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'Src/Zle/comp.h') 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; -- cgit 1.4.1