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

Function simple_oid_list_append

src/fe_utils/simple_list.c:25–39  ·  view source on GitHub ↗

* Append an OID to the list. */

Source from the content-addressed store, hash-verified

23 * Append an OID to the list.
24 */
25void
26simple_oid_list_append(SimpleOidList *list, Oid val)
27{
28 SimpleOidListCell *cell;
29
30 cell = (SimpleOidListCell *) pg_malloc(sizeof(SimpleOidListCell));
31 cell->next = NULL;
32 cell->val = val;
33
34 if (list->tail)
35 list->tail->next = cell;
36 else
37 list->head = cell;
38 list->tail = cell;
39}
40
41/*
42 * Is OID present in the list?

Calls 1

pg_mallocFunction · 0.85

Tested by

no test coverage detected