Only #include directly referenced module header files

This avoids having the nested header files also included at the top
level, which is more efficient.

Signed-off-by: Keith Packard <keithp@keithp.com>
Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Keith Packard 2014-02-12 14:15:44 -08:00 committed by Uli Schlachter
parent cb686b5767
commit 1f6cd9f1fc

View File

@ -190,7 +190,7 @@ def c_open(self):
_c('#define ALIGNOF(type) offsetof(struct { char dummy; type member; }, member)')
if _ns.is_ext:
for (n, h) in self.imports:
for (n, h) in self.direct_imports:
_hc('#include "%s.h"', h)
_h('')