]>
jfr.im git - irc/quakenet/newserv.git/blob - patricia/patricia_alloc.c
5 #include "../core/nsmalloc.h"
7 prefix_t
*newprefix() {
8 return nsmalloc(POOL_PATRICIA
, sizeof(prefix_t
));
11 void freeprefix(prefix_t
*prefix
) {
12 nsfree(POOL_PATRICIA
, prefix
);
15 patricia_node_t
*newnode() {
16 return nsmalloc(POOL_PATRICIA
, sizeof(patricia_node_t
));
19 void freenode(patricia_node_t
*node
) {
20 nsfree(POOL_PATRICIA
, node
);