Path: utzoo!attcan!uunet!lll-winken!sol.ctr.columbia.edu!samsung!emory!audfax!arnold From: arnold@audiofax.com (Arnold Robbins) Newsgroups: comp.lang.c Subject: Re: Just a minor new twist on free() Message-ID: <280@audfax.audiofax.com> Date: 25 Oct 90 17:22:17 GMT References: <7365@darkstar.ucsc.edu> <1990Oct02.132313.6659@virtech.uucp> <117@nazgul.UUCP> Organization: AudioFAX Inc., Atlanta Lines: 15 In article <117@nazgul.UUCP> bright@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@audiofax.com Phone: +1 404 933 7612 | number of children. UUCP: emory!audfax!arnold Fax-box: +1 404 618 4581 | -- Miriam Robbins