Lines Matching defs:specs
48 * When specifying stat specs in comparison mode, user can use one of the
225 static int parse_stats(const char *stats_str, struct stat_specs *specs);
722 static int parse_stat(const char *stat_name, struct stat_specs *specs)
729 if (specs->spec_cnt >= ARRAY_SIZE(specs->ids)) {
730 fprintf(stderr, "Can't specify more than %zd stats\n", ARRAY_SIZE(specs->ids));
745 specs->ids[specs->spec_cnt] = id;
746 specs->variants[specs->spec_cnt] = var;
747 specs->asc[specs->spec_cnt] = has_order ? is_asc : stat_defs[id].asc_by_default;
748 specs->spec_cnt++;
753 static int parse_stats(const char *stats_str, struct stat_specs *specs)
763 err = parse_stat(next, specs);
1427 static int parse_stats_csv(const char *filename, struct stat_specs *specs,
1468 err = parse_stat(next, specs);
1475 if (col >= specs->spec_cnt) {
1481 err = parse_stat_value(next, specs->ids[col], st);
1492 if (col < specs->spec_cnt) {
2018 struct stat_specs specs = {};
2027 err = parse_stats_csv(env.filenames[0], &specs,