HomeFreeBSD

Add static/const keywords to the arrays.

Description

Add static/const keywords to the arrays.

This theoretically allows a compiler to optimize (parts of) the array
away if unused.

While there, make the array size implicit and use a _Static_assert() to
ensure that the definition matches up with the number of elements in the
list.

Details

Provenance
edAuthored on Apr 9 2013, 4:16 PM
Parents
rG8cf455b8d986: Since now we support 256 items per slab, we need more bits
Branches
Unknown
Tags
Unknown

Event Timeline