Just a minor new twist on free()
Arnold Robbins
arnold at audiofax.com
Fri Oct 26 03:22:17 AEST 1990
In article <117 at nazgul.UUCP> bright at nazgul.UUCP (Walter Bright) writes:
>I'd prefer to use, on non-conforming implementations of free():
>
> #if NONCONFORMINGFREE
> #define free(p) ((p) && free(p))
> #endif
Note that this requires an ANSI compliant cpp or C compiler. The original
discussion was about using an ANSI compiler with non-ansi libraries, so that's
fine, but if you try this macro on a pre-ansi cpp it'll recurse forever...
--
Arnold Robbins AudioFAX, Inc. | Laundry increases
2000 Powers Ferry Road, #200 / Marietta, GA. 30067 | exponentially in the
INTERNET: arnold at audiofax.com Phone: +1 404 933 7612 | number of children.
UUCP: emory!audfax!arnold Fax-box: +1 404 618 4581 | -- Miriam Robbins
More information about the Comp.lang.c
mailing list