We are about to make the NEW wrapper exit on allocation failure, so this
preserves the existing semantics of allowing these calls to handle allocation
failure locally.
{
LeafList_t *llp;
- if ((llp = NEW(LeafList_t))) {
+ if ((llp = calloc(1, sizeof(LeafList_t)))) {
llp->leaf = lp;
llp->next = 0;
}
*/
static struct ListNode *RTreeNewListNode(void)
{
- return NEW(struct ListNode);
+ return calloc(1, sizeof(struct ListNode));
}
#if UNUSED
{
RTree_t *rtp;
- if ((rtp = NEW(RTree_t)))
+ if ((rtp = calloc(1, sizeof(RTree_t))))
rtp->root = RTreeNewIndex(rtp);
return rtp;
}