Hi Sven,
On Sun, Mar 22, 2015 at 03:51:17PM +0100, Sven Eckelmann wrote:
The source and header files could not be build indepdent from each other. This is happened because headers didn't include all includes for anything they've used. This was problematic because the success of a build required to know the right order of local includes.
Also source files were not including everything they've used explicitly. Instead it required that transient includes are always stable. This is problematic because some transient includes are not obvious, depent on config settings and may not be stable in the future.
The order for include blocks are:
- primary headers (main.h and the *.h file of a *.c file)
- global linux headers
- required local headers
- extra forward declarations for pointers in function/struct declarations
Thanks for your work. This patch looks really good.
Best Regards,
Markus