DragonFly bugs List (threaded) for 2009-04
DragonFly BSD
DragonFly bugs List (threaded) for 2009-04
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

[issue1345] [PATCH] Get rid of zero-size arrays in ASSYM/genassym


From: "Alex Hornung \(via DragonFly issue tracker\)" <sinknull@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 24 Apr 2009 13:05:23 +0000

Alex Hornung <ahornung@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@lists.dragonflybsd.org>
<http://bugs.dragonflybsd.org/issue1345>
_____________________________________________________



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]