aboutsummaryrefslogtreecommitdiffstats
path: root/tests/samplebinding/typesystem_sample.xml
diff options
context:
space:
mode:
authorMarcelo Lira <marcelo.lira@openbossa.org>2010-01-15 18:26:57 -0300
committerMarcelo Lira <marcelo.lira@openbossa.org>2010-01-15 20:12:26 -0300
commitd9c5531a3cf0967e2595cef18c63892c0d64d551 (patch)
treea62d5be5336acf5d518a813ab714632285e3e633 /tests/samplebinding/typesystem_sample.xml
parentde5187268ab7dd96fc5fa98c583086fc5afe5b48 (diff)
Adds CppGenerator::writeCppSelfDefinition method.
The code to write the definition of cppSelf was in two places and contained an #ifdef clause, now it is a writer method. Also added the ShibokenGenerator::cppSelfVariableName() method to be used instead of directly writing the "cppSelf" string. Updated custom code on test binding to remove warning. Reviewed by Hugo Parente Lima <hugo.lima@openbossa.org>
Diffstat (limited to 'tests/samplebinding/typesystem_sample.xml')
-rw-r--r--tests/samplebinding/typesystem_sample.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/samplebinding/typesystem_sample.xml b/tests/samplebinding/typesystem_sample.xml
index e18cdbd76..e66384fad 100644
--- a/tests/samplebinding/typesystem_sample.xml
+++ b/tests/samplebinding/typesystem_sample.xml
@@ -846,7 +846,7 @@
<add-function signature="multiplyString(PyString*, unsigned int)" return-type="const char*">
<inject-code class="target" position="beginning">
%PYARG_0 = PyString_FromString("");
- for (int i = 0; i &lt; %2; ++i)
+ for (unsigned int i = 0; i &lt; %2; ++i)
PyString_Concat(&amp;%PYARG_0, %PYARG_1);
</inject-code>
</add-function>