Date: Thu, 26 Nov 2009 19:08:33 +0000 (UTC) From: Tony Finch <fanf@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/usr.bin/unifdef unifdefall.sh Message-ID: <200911261908.nAQJ8k8A011304@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
fanf 2009-11-26 19:08:33 UTC FreeBSD src repository Modified files: usr.bin/unifdef unifdefall.sh Log: SVN rev 199842 on 2009-11-26 19:08:33Z by fanf unifdefall: optimise the loop that builds the unifdef command. The old code used a shell loop to convert each controlling macro definition into a command-line argument, reading the macro definitions file each time. The new code converts the list of controlling macros into a sed script which can run through the list of macro definitions in one go. Add some explanatory comments, since the code is quite meta. Use {} instead of () for redirecting a group of commands. Submitted by: Jonathan Nieder <jrnieder@gmail.com> Revision Changes Path 1.5 +17 -9 src/usr.bin/unifdef/unifdefall.sh
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200911261908.nAQJ8k8A011304>