Lines Matching refs:columns

34  * instance selected.  The columns available to display are described by the
35 * struct column columns array. The columns to actually display are kept in
36 * the opt_columns array as indicies into the columns array. The selection
146 static int *opt_columns = NULL; /* Indices into columns to display. */
149 static int *opt_sort = NULL; /* Indices into columns to sort. */
976 * greater than the column width we allow it to overlap other columns.
1143 /* State columns (STATE, NSTATE, S, N, SN, STA, NSTA) */
1512 /* Component columns */
1773 * Information about columns which can be displayed. If you add something,
1776 static const struct column columns[] = {
1806 static const int ncolumns = sizeof (columns) / sizeof (columns[0]);
1902 "\t-o list only the specified columns in the output\n"
1929 columns[i].name, description_of_column(i));
1935 * A getsubopt()-like function which returns an index into the columns table.
1953 if (strcasecmp(str, columns[i].name) == 0) {
1975 const struct column * const colp = &columns[opt_columns[i]];
3027 columns[opt_columns[i]].sprint(&lp->str, wip);
3044 assert(columns[j].get_sortkey != NULL);
3045 columns[j].get_sortkey(cp, opt_sort[i] & ~0xff, wip);
3046 cp += columns[j].sortkey_width;
3377 if (strcasecmp(col, columns[i].name) == 0)
3386 sortkey_sz += columns[i].sortkey_width;
3741 * sorting and the columns, since we won't use them anyway.
3816 uu_die(gettext("No columns specified.\n"));
3820 uu_die(gettext("Too many columns.\n"));
3828 if (strcmp(columns[i].name, "N") == 0 ||
3829 strcmp(columns[i].name, "SN") == 0 ||
3830 strcmp(columns[i].name, "NSTA") == 0 ||
3831 strcmp(columns[i].name, "NSTATE") == 0)
3835 line_sz += columns[i].width + 1;