diff options
author | Keith Packard <keithp@keithp.com> | 2014-02-12 14:15:44 -0800 |
---|---|---|
committer | Uli Schlachter <psychon@znc.in> | 2014-03-22 14:44:52 +0100 |
commit | 1f6cd9f1fcd3c07d323b678292c9cb00ae1f7504 (patch) | |
tree | 5fd8e26706756b9be4d8774ea38fcc93b2cf408e | |
parent | cb686b576739deea00180c54697c8b62b8419ae0 (diff) |
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>
-rw-r--r-- | src/c_client.py | 2 |
1 files changed, 1 insertions, 1 deletions
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('') |