* Append an OID to the list. */
| 23 | * Append an OID to the list. |
| 24 | */ |
| 25 | void |
| 26 | simple_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? |
no test coverage detected