Bug #1925 » 1925.patch
| tools/ruleutil/rulesave.c | ||
|---|---|---|
|
secfile_insert_str(sfile, extra_rule_name(pextra),
|
||
|
"%s.extra", path);
|
||
|
save_reqs_vector(sfile, &(proad->first_reqs), path, "first_reqs");
|
||
|
secfile_insert_int(sfile, proad->move_cost, "%s.move_cost", path);
|
||
|
if (proad->move_mode != RMM_FAST_ALWAYS) {
|
||
| ... | ... | |
|
secfile_insert_str_vec(sfile, flag_names, set_count,
|
||
|
"%s.flags", path);
|
||
|
}
|
||
|
if (extra_type_list_size(proad->integrators) > 0) {
|
||
|
const char *integrate_names[extra_type_list_size(proad->integrators)];
|
||
|
set_count = 0;
|
||
|
extra_type_list_iterate(proad->integrators, iextra) {
|
||
|
if (iextra != pextra) {
|
||
|
integrate_names[set_count++] = extra_rule_name(iextra);
|
||
|
}
|
||
|
} extra_type_list_iterate_end;
|
||
|
if (set_count > 0) {
|
||
|
secfile_insert_str_vec(sfile, integrate_names, set_count,
|
||
|
"%s.integrates", path);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
} extra_type_by_cause_iterate_end;
|
||