| 1510 | } |
| 1511 | |
| 1512 | void _quicklistBookmarkDelete(quicklist *ql, quicklistBookmark *bm) { |
| 1513 | int index = bm - ql->bookmarks; |
| 1514 | zfree(bm->name); |
| 1515 | ql->bookmark_count--; |
| 1516 | memmove(bm, bm+1, (ql->bookmark_count - index)* sizeof(*bm)); |
| 1517 | /* NOTE: We do not shrink (realloc) the quicklist yet (to avoid resonance, |
| 1518 | * it may be re-used later (a call to realloc may NOP). */ |
| 1519 | } |
| 1520 | |
| 1521 | void quicklistBookmarksClear(quicklist *ql) { |
| 1522 | while (ql->bookmark_count) |
no test coverage detected