From 1f6cd9f1fcd3c07d323b678292c9cb00ae1f7504 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Wed, 12 Feb 2014 14:15:44 -0800 Subject: [PATCH] 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 Signed-off-by: Uli Schlachter --- src/c_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/c_client.py b/src/c_client.py index aaaab2e..c94a9e6 100644 --- a/src/c_client.py +++ b/src/c_client.py @@ -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('')