summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorChristoph Reiter <reiter.christoph@gmail.com>2020-04-16 18:58:14 +0200
committerChristoph Reiter <reiter.christoph@gmail.com>2020-04-16 18:58:14 +0200
commit721a0969e508fbcc7bc77957a3ee958d8c0ae0be (patch)
treeaee90a529fb2c098790d11a451db3662b137efdc /tests
parent9787959fa5003dc42ed609dab24fd3ea1231b0e1 (diff)
downloadpygobject-721a0969e508fbcc7bc77957a3ee958d8c0ae0be.tar.gz
Rename PYGLIB_DEFINE_TYPE to PYGI_DEFINE_TYPE
This is a leftover from when things were split up
Diffstat (limited to 'tests')
-rw-r--r--tests/testhelpermodule.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/testhelpermodule.c b/tests/testhelpermodule.c
index 848d8203..e6f6ffe4 100644
--- a/tests/testhelpermodule.c
+++ b/tests/testhelpermodule.c
@@ -5,7 +5,7 @@
#include "test-unknown.h"
#include "test-floating.h"
-#define PYGLIB_DEFINE_TYPE(typename, symbol, csymbol) \
+#define PYGI_DEFINE_TYPE(typename, symbol, csymbol) \
PyTypeObject symbol = { \
PyVarObject_HEAD_INIT(NULL, 0) \
typename, \
@@ -116,7 +116,7 @@ static const PyMethodDef _PyTestInterface_methods[] = {
};
/* TestInterface */
-PYGLIB_DEFINE_TYPE("test.Interface", PyTestInterface_Type, PyObject);
+PYGI_DEFINE_TYPE("test.Interface", PyTestInterface_Type, PyObject);
static PyObject *
_wrap_TestInterface__do_iface_method(PyObject *cls, PyObject *args, PyObject *kwargs)
@@ -141,7 +141,7 @@ _wrap_TestInterface__do_iface_method(PyObject *cls, PyObject *args, PyObject *kw
return Py_None;
}
-PYGLIB_DEFINE_TYPE("testhelper.Unknown", PyTestUnknown_Type, PyGObject);
+PYGI_DEFINE_TYPE("testhelper.Unknown", PyTestUnknown_Type, PyGObject);
static void
_wrap_TestInterface__proxy_do_iface_method(TestInterface *self)
@@ -227,10 +227,10 @@ static const GInterfaceInfo __TestInterface__iinfo = {
};
/* TestFloating */
-PYGLIB_DEFINE_TYPE("testhelper.Floating", PyTestFloating_Type, PyGObject);
+PYGI_DEFINE_TYPE("testhelper.Floating", PyTestFloating_Type, PyGObject);
/* TestOwnedByLibrary */
-PYGLIB_DEFINE_TYPE("testhelper.OwnedByLibrary", PyTestOwnedByLibrary_Type, PyGObject);
+PYGI_DEFINE_TYPE("testhelper.OwnedByLibrary", PyTestOwnedByLibrary_Type, PyGObject);
static PyObject *
_wrap_test_owned_by_library_release (PyGObject *self)
@@ -245,7 +245,7 @@ static const PyMethodDef _PyTestOwnedByLibrary_methods[] = {
};
/* TestFloatingAndSunk */
-PYGLIB_DEFINE_TYPE("testhelper.FloatingAndSunk", PyTestFloatingAndSunk_Type, PyGObject);
+PYGI_DEFINE_TYPE("testhelper.FloatingAndSunk", PyTestFloatingAndSunk_Type, PyGObject);
static PyObject *
_wrap_test_floating_and_sunk_release (PyGObject *self)