* Prepend an OID to the list. See lcons() */
| 501 | * Prepend an OID to the list. See lcons() |
| 502 | */ |
| 503 | List * |
| 504 | lcons_oid(Oid datum, List *list) |
| 505 | { |
| 506 | Assert(IsOidList(list)); |
| 507 | |
| 508 | if (list == NIL) |
| 509 | list = new_list(T_OidList, 1); |
| 510 | else |
| 511 | new_head_cell(list); |
| 512 | |
| 513 | linitial_oid(list) = datum; |
| 514 | check_list_invariants(list); |
| 515 | return list; |
| 516 | } |
| 517 | |
| 518 | /* |
| 519 | * Concatenate list2 to the end of list1, and return list1. |
no test coverage detected