| 701 | } |
| 702 | |
| 703 | static void add_arg_item(struct list_head *arg_head, char *tok, char *val, |
| 704 | const struct conf_info *conf, |
| 705 | const struct new_trailer_item *new_trailer_item) |
| 706 | { |
| 707 | struct arg_item *new_item = xcalloc(1, sizeof(*new_item)); |
| 708 | new_item->token = tok; |
| 709 | new_item->value = val; |
| 710 | duplicate_conf(&new_item->conf, conf); |
| 711 | if (new_trailer_item) { |
| 712 | if (new_trailer_item->where != WHERE_DEFAULT) |
| 713 | new_item->conf.where = new_trailer_item->where; |
| 714 | if (new_trailer_item->if_exists != EXISTS_DEFAULT) |
| 715 | new_item->conf.if_exists = new_trailer_item->if_exists; |
| 716 | if (new_trailer_item->if_missing != MISSING_DEFAULT) |
| 717 | new_item->conf.if_missing = new_trailer_item->if_missing; |
| 718 | } |
| 719 | list_add_tail(&new_item->list, arg_head); |
| 720 | } |
| 721 | |
| 722 | void parse_trailers_from_config(struct list_head *config_head) |
| 723 | { |
no test coverage detected