aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMarcelo Lira <marcelo.lira@openbossa.org>2009-12-08 11:59:57 -0300
committerMarcelo Lira <marcelo.lira@openbossa.org>2009-12-08 12:09:49 -0300
commitf38e34a3a987f15e947d45efb0ef7ffeb7f3275e (patch)
tree4908d7da9ea33cb6e19378633e0a401b57c0ef65 /tests
parentdc1ca0f9a9aa216973a6ab1f458f0f965033530d (diff)
Renamed a lot of Shiboken things with "Py" prefix to use "Sbk" prefix.
To avoid confusion of Python stuff with Shiboken generated stuff. For example: a C++ class called "String" would have the PyString_Type wrapper generated for it, mixing with the proper Python PyString_Type; now the generate code will have things like SbkString_Type, SbkString_New, SbkString_someMethod, and so on. PyBaseWrapper and its variants were renamed to SbkBaseWrapper. PyType<T>() is now SbkType<T>() PyEnumObject was renamed to SbkEnumObject.
Diffstat (limited to 'tests')
-rw-r--r--tests/samplebinding/typesystem_sample.xml6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/samplebinding/typesystem_sample.xml b/tests/samplebinding/typesystem_sample.xml
index d27647de4..c3c5786ba 100644
--- a/tests/samplebinding/typesystem_sample.xml
+++ b/tests/samplebinding/typesystem_sample.xml
@@ -82,7 +82,7 @@
<inject-code class="native" position="beginning">
static void reparent_layout_items(PyObject* parent, PyObject* layout)
{
- const ObjectTypeList&amp; objChildren = PyObjectTypeLayout_cptr(layout)->objects();
+ const ObjectTypeList&amp; objChildren = SbkObjectTypeLayout_cptr(layout)->objects();
ObjectTypeList::const_iterator it = objChildren.begin();
for (; it != objChildren.end(); ++it) {
if ((*it)->isLayoutType()) {
@@ -544,7 +544,7 @@
</modify-function>
<modify-function signature="name()">
<inject-code class="native" position="end">
- PyStr_cptr(%0)->prepend(Str("Pimped"));
+ SbkStr_cptr(%0)->prepend(Str("Pimped"));
</inject-code>
</modify-function>
<modify-function signature="callMe()">
@@ -755,7 +755,7 @@
<add-function signature="__setitem__" >
<inject-code class="target" position="beginning">
PyObject* args = Py_BuildValue("(iO)", _i, _value);
- PyObject* result = PyStr_set_char(self, args);
+ PyObject* result = SbkStr_set_char(self, args);
Py_DECREF(args);
int ok = result == Py_True;
if (result) {