Cnews ported to V/AT?
David Collier-Brown
davecb at yunexus.UUCP
Mon Feb 12 06:42:59 AEST 1990
jay at 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 at 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.
More information about the Comp.unix.microport
mailing list