# HG changeset patch # User Max Samukha # Date 1278956167 -10800 # Node ID 1d56b2a2e10c8fdcba87a9aae23cb4055c45850f # Parent 347e4c7a9ba1c1d8edfabfa8a9f4b88928e61557 Fixes to debugging stuff. Added size_t as primitive type to workaround Qwt build failure in debug diff -r 347e4c7a9ba1 -r 1d56b2a2e10c build/core.txt --- a/build/core.txt Sun Jul 11 01:59:42 2010 +0100 +++ b/build/core.txt Mon Jul 12 20:36:07 2010 +0300 @@ -65,12 +65,6 @@ ) endif() -if(${CMAKE_BUILD_TYPE} STREQUAL "Debug" OR UNITTEST) -set (d_qtd_files ${d_qtd_files} - Debug - ) -endif() - set (d_generated_files core/Qt QDefines) ## Classes. set (classes diff -r 347e4c7a9ba1 -r 1d56b2a2e10c d2/qtd/QtdObject.d --- a/d2/qtd/QtdObject.d Sun Jul 11 01:59:42 2010 +0100 +++ b/d2/qtd/QtdObject.d Mon Jul 12 20:36:07 2010 +0300 @@ -13,7 +13,7 @@ std.bitmanip, qtd.Core, qtd.Debug, - qtd.meta.Runtime; + qtd.meta.Runtime; /** QtdObject initialization options. @@ -140,7 +140,7 @@ Note that wrappers for QObject instances and instances of classes derived from QObject are always unique, therefore - the 'is' expression can be used instead of this function. + the 'is' operator can be used instead of this function. */ final bool isSame(const(QtdObject) other) const { @@ -198,7 +198,7 @@ else assert(false); - mixin(debugHandler("onWrapperOwnershipChanged", "obj")); + mixin(debugHandler("onObjectOwnershipChanged", "obj")); } // COMPILER BUG: 3206 diff -r 347e4c7a9ba1 -r 1d56b2a2e10c examples/qwt/simpleplot/build.sh --- a/examples/qwt/simpleplot/build.sh Sun Jul 11 01:59:42 2010 +0100 +++ b/examples/qwt/simpleplot/build.sh Mon Jul 12 20:36:07 2010 +0300 @@ -1,3 +1,3 @@ #! /bin/bash -dmd simple.d -L-lqtdqwt -L-lqtdgui -L-lqtdcore -L-lcpp_qwt -L-lcpp_core -L-lcpp_gui -L-lqwt-qt4 -L-lQtGui -L-lQtCore -ofsimple +dmd -I../../../d2 -I../../../output/build simple.d -L-lqtdqwt -L-lqtdgui -L-lqtdcore -L-lcpp_qwt -L-lcpp_core -L-lcpp_gui -L-lqwt-qt4 -L-lQtGui -L-lQtCore -ofsimple diff -r 347e4c7a9ba1 -r 1d56b2a2e10c generator/cppimplgenerator.cpp --- a/generator/cppimplgenerator.cpp Sun Jul 11 01:59:42 2010 +0100 +++ b/generator/cppimplgenerator.cpp Mon Jul 12 20:36:07 2010 +0300 @@ -180,6 +180,7 @@ table["long"] = "0"; table["float"] = "0f"; table["double"] = "0.0"; + table["size_t"] = "0"; table["java.lang.Object"] = "0"; } @@ -189,6 +190,7 @@ return returnStr + " " + signature; Q_ASSERT(!java_type->isPrimitive()); + if (java_type->isJObjectWrapper()) return returnStr + " JObjectWrapper()"; if (java_type->isVariant())