Create new (potentially multi-node) quicklist from a single existing ziplist. * * Returns new quicklist. Frees passed-in ziplist 'zl'. */
| 578 | * |
| 579 | * Returns new quicklist. Frees passed-in ziplist 'zl'. */ |
| 580 | quicklist *quicklistCreateFromZiplist(int fill, int compress, |
| 581 | unsigned char *zl) { |
| 582 | return quicklistAppendValuesFromZiplist(quicklistNew(fill, compress), zl); |
| 583 | } |
| 584 | |
| 585 | #define quicklistDeleteIfEmpty(ql, n) \ |
| 586 | do { \ |
no test coverage detected