[PATCH 1/3] Only #include directly referenced module header files

Keith Packard keithp at keithp.com
Wed Feb 12 14:15:44 PST 2014


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

Signed-off-by: Keith Packard <keithp at keithp.com>
---
 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('')
-- 
1.9.rc1



More information about the xorg-devel mailing list