Wrapper to allow argument-based switching between HEAD/TAIL pop */
| 1436 | |
| 1437 | /* Wrapper to allow argument-based switching between HEAD/TAIL pop */ |
| 1438 | void quicklistPush(quicklist *quicklist, void *value, const size_t sz, |
| 1439 | int where) { |
| 1440 | if (where == QUICKLIST_HEAD) { |
| 1441 | quicklistPushHead(quicklist, value, sz); |
| 1442 | } else if (where == QUICKLIST_TAIL) { |
| 1443 | quicklistPushTail(quicklist, value, sz); |
| 1444 | } |
| 1445 | } |
| 1446 | |
| 1447 | /* Create or update a bookmark in the list which will be updated to the next node |
| 1448 | * automatically when the one referenced gets deleted. |
no test coverage detected