awk: xfree() macro
Hi tech, Forwarding this in case it is considered useful. Trying to clean up xfree() macro in awk. Remove check for NULL before calling free(). As a side effect, we might set something to NULL which is already NULL (but I suppose that's ok). - Michael Index: awk.h === RCS file: /cvs/src/usr.bin/awk/awk.h,v retrieving revision 1.13 diff -u -p -u -r1.13 awk.h --- awk.h 6 Oct 2008 20:38:33 - 1.13 +++ awk.h 25 Feb 2015 05:29:37 - @@ -31,7 +31,11 @@ typedef double Awkfloat; typedefunsigned char uschar; -#definexfree(a){ if ((a) != NULL) { free((void *) (a)); (a) = NULL; } } +#definexfree(a) \ +do { \ + free((void *)(a)); \ + (a) = NULL;\ +} while (0) #defineNN(p) ((p) ? (p) : "(null)") /* guaranteed non-null for dprintf */
bsd.port.mk.5 typo
don't dis the distfiles -f -- philosophy: unintelligible answers to insoluble problems. Index: ./share/man/man5/bsd.port.mk.5 === RCS file: /cvs/src/share/man/man5/bsd.port.mk.5,v retrieving revision 1.412 diff -u -p -r1.412 bsd.port.mk.5 --- ./share/man/man5/bsd.port.mk.5 23 Dec 2014 14:05:16 - 1.412 +++ ./share/man/man5/bsd.port.mk.5 24 Feb 2015 11:39:50 - @@ -1198,7 +1198,7 @@ Defaults to empty, set to .Pa /cdrom/distfiles/${DIST_SUBDIR} to check that path. Distribution files are still copied or linked (see -.Ev FETCH_SYMLINK_DISFILES ) +.Ev FETCH_SYMLINK_DISTFILES ) into .Ev DISTDIR if they are found under CDROM_SITE.
Re: faq: remove references to aucat -M option
On Tue, Feb 24, 2015 at 09:34:17AM +0100, Remco wrote: > Alexandre Ratchov wrote: > > > The -M option of aucat was removed long time ago, and as we're at > > it mention about softsynths. > > > > OK? > > > > > +The later are handly for testing the hardware, bypassing most software > > Did you mean ... latter are handy ... ? sure, thanks :/
Re: faq: remove references to aucat -M option
On Mon, Feb 23, 2015 at 07:44:37AM -0500, Nick Holland wrote: > On 02/23/15 04:03, Alexandre Ratchov wrote: > > The -M option of aucat was removed long time ago, and as we're at > > it mention about softsynths. > > > > OK? > > ok nick@, but as I'd consider you an authority on this area, please skim > through the rest of this section looking for similar out-of-date-ness. > That's what I did, the content is still correct. IMHO it's too verbose and there are sections that could be slightly modernized & simplified. Another day.
Re: faq: remove references to aucat -M option
Alexandre Ratchov wrote: > The -M option of aucat was removed long time ago, and as we're at > it mention about softsynths. > > OK? > > +The later are handly for testing the hardware, bypassing most software Did you mean ... latter are handy ... ?