changed the doubly linked list to circular in idmap-imp.h

started writing some code to implement gc
This commit is contained in:
2020-03-18 08:30:40 +00:00
parent bc87c486da
commit 1285d77c1e
11 changed files with 345 additions and 155 deletions

View File

@ -604,7 +604,7 @@ int hawk_htb_delete (hawk_htb_t* htb, const void* kptr, hawk_oow_t klen)
while (pair != HAWK_NULL)
{
if (htb->style->comper (htb, KPTR(pair), KLEN(pair), kptr, klen) == 0)
if (htb->style->comper(htb, KPTR(pair), KLEN(pair), kptr, klen) == 0)
{
if (prev == HAWK_NULL)
htb->bucket[hc] = NEXT(pair);