Xref: utzoo comp.unix.microport:4000 news.software.b:4185 Path: utzoo!attcan!uunet!fernwood!apple!sun-barr!newstop!texsun!texbell!splut!jay From: jay@splut.conmicro.com (Jay "you ignorant splut!" Maynard) Newsgroups: comp.unix.microport,news.software.b Subject: Re: Cnews ported to V/AT? Message-ID: Date: 16 Feb 90 14:02:10 GMT References: <45@frau.UUCP> <3+1:A3-@splut.conmicro.com> <1990Feb8.182437.25095@utzoo.uucp> <+#4:94@splut.conmicro.com> <7470@yunexus.UUCP> Reply-To: jay@splut.conmicro.com (Jay "you ignorant splut!" Maynard) Organization: Confederate Microsystems, League City, TX Lines: 19 In article <7470@yunexus.UUCP> davecb@yunexus.UUCP (David Collier-Brown) writes: >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; >} This looks feasible, as well...I'll try it if the HP Spectrum fix doesn't work. -- Jay Maynard, EMT-P, K5ZC, PP-ASEL | Never ascribe to malice that which can jay@splut.conmicro.com (eieio)| adequately be explained by stupidity. {attctc,bellcore}!texbell!splut!jay +---------------------------------------- Free the DC-10!