Lines Matching refs:fmt
153 CplListFormat *fmt);
158 static int cpl_format_line(CplMatches *result, CplListFormat *fmt, int lnum,
648 CplListFormat fmt; /* List formatting information */
662 cpl_plan_listing(result, term_width, &fmt);
666 for(lnum=0; lnum < fmt.nline; lnum++) {
667 if(cpl_format_line(result, &fmt, lnum, write_fn, data))
1028 * fmt CplListFormat * The formatting information will be assigned
1029 * to the members of *fmt.
1032 CplListFormat *fmt)
1045 fmt->term_width = term_width;
1046 fmt->column_width = 0;
1047 fmt->nline = fmt->ncol = 0;
1067 fmt->column_width = maxlen;
1068 fmt->ncol = fmt->term_width / (fmt->column_width + CPL_COL_SEP);
1075 if(fmt->ncol < 1)
1076 fmt->ncol = 1;
1080 fmt->nline = (result->nmatch + fmt->ncol - 1) / fmt->ncol;
1091 * fmt CplListFormat * Formatting information.
1103 static int cpl_format_line(CplMatches *result, CplListFormat *fmt, int lnum,
1110 if(lnum < 0 || lnum >= fmt->nline)
1122 for(col=0; col < fmt->ncol; col++) {
1123 int m = col*fmt->nline + lnum;
1149 if(col+1 < fmt->ncol) {
1159 int npad = fmt->column_width + CPL_COL_SEP - clen - tlen;