Reduce #ifs by weeding out some cross-chunk function definitions.
authorKevin O'Connor <kevin@koconnor.net>
Sun, 3 Jan 2010 23:33:00 +0000 (18:33 -0500)
committerKevin O'Connor <kevin@koconnor.net>
Sun, 3 Jan 2010 23:33:00 +0000 (18:33 -0500)
commit7c1b18655e6a450b5f1270a956c7146f821a2c23
treedb1c8dd00708ea798f882aaaad07b9daeb2a4e47
parentf9b25d306b66bbafdbf9656103b41fbb83836d03
Reduce #ifs by weeding out some cross-chunk function definitions.

Reduce the need for placing #if guards around functions that are
marked as VISIBLE in another code chunk by declaring the functions as
"weak" when they are not needed.

It's still necessary to ensure that no C code references the data from
a different chunk (or an -fwhole-program compile might try to keep a
local reference).
src/apm.c
src/pcibios.c
src/resume.c
src/types.h