[issue1345] [PATCH] Get rid of zero-size arrays in ASSYM/genassym
Alex Hornung (via DragonFly issue tracker)
sinknull at crater.dragonflybsd.org
Fri Apr 24 06:06:06 PDT 2009
Alex Hornung <ahornung at gmail.com> added the comment:
As can be seen below, it is already integrated into genassym.sh by means of
"substr($1, length($1) - 3, 4)", which only takes the last 4 digits of that
substring.
=========================================================
Excerpt from *CURRENT* sys/kern/genassym.sh
=========================================================
/ C .*sign$/ {
sign = substr($1, length($1) - 3, 4)
sub("^0*", "", sign)
if (sign != "")
sign = "-"
}
/ C .*w0$/ {
w0 = substr($1, length($1) - 3, 4)
}
/ C .*w1$/ {
w1 = substr($1, length($1) - 3, 4)
}
/ C .*w2$/ {
w2 = substr($1, length($1) - 3, 4)
}
/ C .*w3$/ {
w3 = substr($1, length($1) - 3, 4)
=========================================================
_____________________________________________________
DragonFly issue tracker <bugs at lists.dragonflybsd.org>
<http://bugs.dragonflybsd.org/issue1345>
_____________________________________________________
More information about the Bugs
mailing list