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

Function simple_ptr_list_append

src/fe_utils/simple_list.c:161–175  ·  view source on GitHub ↗

* Append a pointer to the list. * * Caller must ensure that the pointer remains valid. */

Source from the content-addressed store, hash-verified

159 * Caller must ensure that the pointer remains valid.
160 */
161void
162simple_ptr_list_append(SimplePtrList *list, void *ptr)
163{
164 SimplePtrListCell *cell;
165
166 cell = (SimplePtrListCell *) pg_malloc(sizeof(SimplePtrListCell));
167 cell->next = NULL;
168 cell->ptr = ptr;
169
170 if (list->tail)
171 list->tail->next = cell;
172 else
173 list->head = cell;
174 list->tail = cell;
175}

Callers 3

flagInhIndexesFunction · 0.85
compile_database_listFunction · 0.85

Calls 1

pg_mallocFunction · 0.85

Tested by

no test coverage detected