summaryrefslogtreecommitdiffstats
path: root/headergenerator.cpp
diff options
context:
space:
mode:
authorMarcelo Lira <marcelo.lira@openbossa.org>2009-09-01 22:25:08 -0300
committerMarcelo Lira <marcelo.lira@openbossa.org>2009-09-01 23:04:57 -0300
commit67a473bc145feb44c07da5e8383adc1e06899352 (patch)
treec68194e686789e55c057d47df488567e64c5b8a8 /headergenerator.cpp
parent5db89848578a416d2904317bc6cc361c3409af2c (diff)
downloadshiboken-67a473bc145feb44c07da5e8383adc1e06899352.tar.gz
shiboken-67a473bc145feb44c07da5e8383adc1e06899352.tar.xz
shiboken-67a473bc145feb44c07da5e8383adc1e06899352.zip
generated headers now include headers defined on type system file for primitive types
Diffstat (limited to 'headergenerator.cpp')
-rw-r--r--headergenerator.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/headergenerator.cpp b/headergenerator.cpp
index 64649193..61358d16 100644
--- a/headergenerator.cpp
+++ b/headergenerator.cpp
@@ -383,8 +383,17 @@ void HeaderGenerator::finishGeneration()
s << endl;
}
+ if (!primitiveTypes().isEmpty()) {
+ s << "// Conversion Includes - Primitive Types" << endl;
+ foreach (const PrimitiveTypeEntry* ptype, primitiveTypes()) {
+ if (ptype->include().isValid())
+ s << ptype->include().toString() << endl;
+ }
+ s << endl;
+ }
+
if (!containerTypes().isEmpty()) {
- s << "// Conversion Includes" << endl;
+ s << "// Conversion Includes - Container Types" << endl;
foreach (const ContainerTypeEntry* ctype, containerTypes()) {
if (ctype->include().isValid())
s << ctype->include().toString() << endl;