Branch: Tag:

2013-06-11

2013-06-11 20:22:57 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Added macro REFCOUNTED_TYPE().

This is to simplify renumbering of the types.

334:    struct keypair **prev;    for(prev = md->hash + e; (k = *prev);) {    count++; -  if ((TYPEOF(k->val) <= MAX_REF_TYPE) && +  if (REFCOUNTED_TYPE(TYPEOF(k->val)) &&    (*k->val.u.refs == 1)) {    /* map_delete(memsearch_cache, &k->ind); */    *prev = k->next;