MCPcopy Create free account
hub / github.com/apache/cloudberry / add_variable_to_tail

Function add_variable_to_tail

src/interfaces/ecpg/preproc/variable.c:390–406  ·  view source on GitHub ↗

Append a new variable to our request list. */

Source from the content-addressed store, hash-verified

388
389/* Append a new variable to our request list. */
390void
391add_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
408void
409remove_variable_from_list(struct arguments **list, struct variable *var)

Callers

nothing calls this directly

Calls 1

mm_allocFunction · 0.85

Tested by

no test coverage detected