Lines Matching defs:columns

33  * instance selected.  The columns available to display are described by the
34 * struct column columns array. The columns to actually display are kept in
35 * the opt_columns array as indicies into the columns array. The selection
145 static int *opt_columns = NULL; /* Indices into columns to display. */
148 static int *opt_sort = NULL; /* Indices into columns to sort. */
975 * greater than the column width we allow it to overlap other columns.
1142 /* State columns (STATE, NSTATE, S, N, SN, STA, NSTA) */
1511 /* Component columns */
1772 * Information about columns which can be displayed. If you add something,
1775 static const struct column columns[] = {
1805 static const int ncolumns = sizeof (columns) / sizeof (columns[0]);
1901 "\t-o list only the specified columns in the output\n"
1928 columns[i].name, description_of_column(i));
1934 * A getsubopt()-like function which returns an index into the columns table.
1952 if (strcasecmp(str, columns[i].name) == 0) {
1974 const struct column * const colp = &columns[opt_columns[i]];
3026 columns[opt_columns[i]].sprint(&lp->str, wip);
3043 assert(columns[j].get_sortkey != NULL);
3044 columns[j].get_sortkey(cp, opt_sort[i] & ~0xff, wip);
3045 cp += columns[j].sortkey_width;
3376 if (strcasecmp(col, columns[i].name) == 0)
3385 sortkey_sz += columns[i].sortkey_width;
3740 * sorting and the columns, since we won't use them anyway.
3816 uu_die(gettext("Too many columns.\n"));
3824 if (strcmp(columns[i].name, "N") == 0 ||
3825 strcmp(columns[i].name, "SN") == 0 ||
3826 strcmp(columns[i].name, "NSTA") == 0 ||
3827 strcmp(columns[i].name, "NSTATE") == 0)
3831 line_sz += columns[i].width + 1;