diff options
author | fanf <fanf@FreeBSD.org> | 2009-11-26 19:08:33 +0000 |
---|---|---|
committer | fanf <fanf@FreeBSD.org> | 2009-11-26 19:08:33 +0000 |
commit | 59b0d1fa1f1bcdb38058874415f7a8fa282d29d9 (patch) | |
tree | f4a75131fd50003eeda2c35ac3dead4b58f46b5e /lib/libc | |
parent | ac889796667ed236a1f32e354f7372c70ea0f881 (diff) | |
download | FreeBSD-src-59b0d1fa1f1bcdb38058874415f7a8fa282d29d9.zip FreeBSD-src-59b0d1fa1f1bcdb38058874415f7a8fa282d29d9.tar.gz |
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>
Diffstat (limited to 'lib/libc')
0 files changed, 0 insertions, 0 deletions