Lines Matching refs:fmt
148 EfListFormat *fmt);
153 static int ef_format_line(FileExpansion *result, EfListFormat *fmt, int lnum,
1269 EfListFormat fmt; /* List formatting information */
1283 ef_plan_listing(result, term_width, &fmt);
1287 for(lnum=0; lnum < fmt.nline; lnum++) {
1288 if(ef_format_line(result, &fmt, lnum, write_fn, data))
1304 * fmt EfListFormat * The formatting information will be assigned
1305 * to the members of *fmt.
1308 EfListFormat *fmt)
1321 fmt->term_width = term_width;
1322 fmt->column_width = 0;
1323 fmt->nline = fmt->ncol = 0;
1342 fmt->column_width = maxlen;
1343 fmt->ncol = fmt->term_width / (fmt->column_width + EF_COL_SEP);
1350 if(fmt->ncol < 1)
1351 fmt->ncol = 1;
1355 fmt->nline = (result->nfile + fmt->ncol - 1) / fmt->ncol;
1366 * fmt EfListFormat * Formatting information.
1378 static int ef_format_line(FileExpansion *result, EfListFormat *fmt, int lnum,
1385 if(lnum < 0 || lnum >= fmt->nline)
1397 for(col=0; col < fmt->ncol; col++) {
1398 int m = col*fmt->nline + lnum;
1418 if(col+1 < fmt->ncol) {
1428 int npad = fmt->column_width + EF_COL_SEP - flen;