#include "stdinc.h"
#include "sprintf_irc.h"
-#include "tools.h"
#include "irc_string.h"
#include "client.h"
-#include "memory.h"
#include "setup.h"
-#include "balloc.h"
#include "irc_dictionary.h"
static BlockHeap *elem_heap = NULL;
s_assert(dtree != NULL);
- DLINK_FOREACH_SAFE(n, tn, dtree->head)
+ RB_DLINK_FOREACH_SAFE(n, tn, dtree->head)
{
if (destroy_cb != NULL)
(*destroy_cb)(n, privdata);
BlockHeapFree(elem_heap, n);
}
- MyFree(dtree);
+ rb_free(dtree);
}
/*
s_assert(dtree != NULL);
- DLINK_FOREACH_SAFE(n, tn, dtree->head)
+ RB_DLINK_FOREACH_SAFE(n, tn, dtree->head)
{
/* delem_t is a subclass of node_t. */
struct DictionaryElement *delem = (struct DictionaryElement *) n;
s_assert(dtree != NULL);
- DLINK_FOREACH_SAFE(n, tn, dtree->head)
+ RB_DLINK_FOREACH_SAFE(n, tn, dtree->head)
{
/* delem_t is a subclass of node_t. */
struct DictionaryElement *delem = (struct DictionaryElement *) n;