From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Berlin To: "John R. Moore" Cc: Kevin Buettner , Subject: Re: xfree() -- set ptr to nil (fwd) Date: Mon, 12 Feb 2001 15:46:00 -0000 Message-id: References: X-SW-Source: 2001-02/msg00182.html On Mon, 12 Feb 2001, John R. Moore wrote: > > Yes, I've usually seen this as a macro > > #define XFREE(ptr) do \ > { \ > if (ptr) \ > { \ > free (ptr); \ > ptr = NULL; \ > } \ > } while (0) > > Ok, then, do we want to replace xfree() with something like XFREE() ? No, we try to get *rid* of macros, not add them. --Dan