Xref: utzoo comp.unix.microport:3981 news.software.b:4140 Path: utzoo!utstat!helios.physics.utoronto.ca!ists!yunexus!davecb From: davecb@yunexus.UUCP (David Collier-Brown) Newsgroups: comp.unix.microport,news.software.b Subject: Re: Cnews ported to V/AT? Message-ID: <7470@yunexus.UUCP> Date: 11 Feb 90 19:42:59 GMT References: <45@frau.UUCP> <3+1:A3-@splut.conmicro.com> <1990Feb8.182437.25095@utzoo.uucp> <+#4:94@splut.conmicro.com> Organization: York U. Computing Services Lines: 17 jay@splut.conmicro.com (Jay "you ignorant splut!" Maynard) writes: >Expanding the macro by hand resolves the problem. Analogous changes need >to be made wherever nnfree() and nnafree() are used. At the expense of suggsting the obvious, would it not be better to write a "foo_free" function and just have the macros expand to it? #define nnfree foo_free int foo_free(void *p) { return (p != 0)? free(p): (void *) NULL; } -- David Collier-Brown, | davecb@yunexus, ...!yunexus!davecb or 72 Abitibi Ave., | {toronto area...}lethe!dave Willowdale, Ontario, | Joyce C-B: CANADA. 416-223-8968 | He's so smart he's dumb.