]> git.sur5r.net Git - cc65/commit
Factored out target specific inclusion of target header.
authorOliver Schmidt <ol.sc@web.de>
Fri, 2 Feb 2018 11:59:05 +0000 (12:59 +0100)
committerOliver Schmidt <ol.sc@web.de>
Fri, 2 Feb 2018 11:59:05 +0000 (12:59 +0100)
commitd7afadb2fe62a2154ad5bcb949644da17e4ac7c6
tree5c45b5b7c792400f1e8356078d46605a806a7ef1
parent2cf1bb89be0fec491d3c24cd238325651d0e55fb
Factored out target specific inclusion of target header.

So far conio.h included the target header to get the CH_... and COLOR_... macros. However tgi.h never did the same to get the TGI_COLOR_... macros. And some time ago the JOY_..._MASK macros moved from joystick.h into the target header yet joystick.h didn't include the target header.

Why wasn't that issue detected so far? Because about every program using TGI and/or the joystick uses CONIO too and therefore includes the target header that way.

However, conceptually it's clean to factor out the target header inclusion and have tgi.h and joystick.h do it like conio.h.

Apart from that user code may make direct use of target.h too.
include/conio.h
include/joystick.h
include/target.h [new file with mode: 0644]
include/tgi.h