* Append an OID to the specified list. See lappend() */
| 369 | * Append an OID to the specified list. See lappend() |
| 370 | */ |
| 371 | List * |
| 372 | lappend_oid(List *list, Oid datum) |
| 373 | { |
| 374 | Assert(IsOidList(list)); |
| 375 | |
| 376 | if (list == NIL) |
| 377 | list = new_list(T_OidList, 1); |
| 378 | else |
| 379 | new_tail_cell(list); |
| 380 | |
| 381 | llast_oid(list) = datum; |
| 382 | check_list_invariants(list); |
| 383 | return list; |
| 384 | } |
| 385 | |
| 386 | /* |
| 387 | * Make room for a new cell at position 'pos' (measured from 0). |
no test coverage detected