Append a new variable to our request list. */
| 388 | |
| 389 | /* Append a new variable to our request list. */ |
| 390 | void |
| 391 | add_variable_to_tail(struct arguments **list, struct variable *var, struct variable *ind) |
| 392 | { |
| 393 | struct arguments *p, |
| 394 | *new = (struct arguments *) mm_alloc(sizeof(struct arguments)); |
| 395 | |
| 396 | for (p = *list; p && p->next; p = p->next); |
| 397 | |
| 398 | new->variable = var; |
| 399 | new->indicator = ind; |
| 400 | new->next = NULL; |
| 401 | |
| 402 | if (p) |
| 403 | p->next = new; |
| 404 | else |
| 405 | *list = new; |
| 406 | } |
| 407 | |
| 408 | void |
| 409 | remove_variable_from_list(struct arguments **list, struct variable *var) |
nothing calls this directly
no test coverage detected