[Kde-bindings] KDE/kdebindings/generator/generators/smoke
Richard Dale
richard.j.dale at gmail.com
Sat Oct 9 06:44:52 UTC 2010
SVN commit 1184021 by rdale:
* Special case 'long long' types so that they are munged to '$'
* 'size_t' wasn't being resolved and so special case that too
CCMAIL: kde-bindings at kde.org
M +5 -1 helpers.cpp
--- trunk/KDE/kdebindings/generator/generators/smoke/helpers.cpp #1184020:1184021
@@ -458,7 +458,11 @@
return munge(&resolved);
}
- if (type->pointerDepth() > 1 || (type->getClass() && type->getClass()->isTemplate() && (!Options::qtMode || (Options::qtMode && type->getClass()->name() != "QFlags"))) ||
+ if (type->name().contains("long long") || type->name() == "size_t") {
+ // Special case 'long long' types as '$'.
+ // Hack: 'size_t' isn't being fully resolved for some reason.
+ return '$';
+ } else if (type->pointerDepth() > 1 || (type->getClass() && type->getClass()->isTemplate() && (!Options::qtMode || (Options::qtMode && type->getClass()->name() != "QFlags"))) ||
(Options::voidpTypes.contains(type->name()) && !Options::scalarTypes.contains(type->name())) )
{
// QString and QStringList are both mapped to Smoke::t_voidp, but QString is a scalar as well
More information about the Kde-bindings
mailing list