]> Chaos Git - corbenik/corbenik.git/commit
Kill common.h, std/unused.h
authorchaoskagami <chaos.kagami@gmail.com>
Tue, 17 Jan 2017 13:33:29 +0000 (08:33 -0500)
committerchaoskagami <chaos.kagami@gmail.com>
Tue, 17 Jan 2017 13:33:29 +0000 (08:33 -0500)
commit85a37e20917401c38b679ce2faf72f9f2da23f1d
tree54745e571c49b99a8710c6c88f8b6ca3489be5a5
parent5e32333ad57807848b108d772d99ab1b5d3a5ae9
Kill common.h, std/unused.h

_UNUSED is a stupid macro and I should just use __attribute__((unused)) directly.
This will never build on anything aside from GCC or clang anyways, since msvc is shit
that targets windows and armcc is proprietary and expensive.

Clean up includes massively; the mess was mainly due to common.h "abstracting" all
the dependencies, allowing me to be lazy and not properly componentize code. Now all
files include solely what they need, which is a step in the right direction of unfucking
all the cross-dependencies.

This would have been much more painful to figure out were it not for include-what-you-use
(https://github.com/include-what-you-use/include-what-you-use) so next time you dig your
grave into source dependency hell using a common header, try that tool.
29 files changed:
boot/arm11.c
boot/chainloader.c
boot/configback/dummy.c
boot/configback/file-dat.c
boot/corbenik.c
boot/firm/decryptor.c
boot/firm/firm.c
boot/firm/firmlaunch.c
boot/firm/keys.c
boot/firm/util.c
boot/firm/version.c
boot/input.c
boot/interpreter.c
boot/interrupt.c
boot/menu-backend.c
boot/menu.c
boot/patch/emunand.c
boot/patch/module.c
boot/patch/reboot.c
boot/patch/svc.c
boot/patcher.c
boot/std/abort.c
boot/std/draw.c
boot/std/fs.c
boot/std/memory.c
include/common.h [deleted file]
include/input.h
include/std/unused.h [deleted file]
loader/source/patcher.c