diff options
Diffstat (limited to 'dbus_bindings/dbus_bindings-internal.h')
-rw-r--r-- | dbus_bindings/dbus_bindings-internal.h | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/dbus_bindings/dbus_bindings-internal.h b/dbus_bindings/dbus_bindings-internal.h index 7b1ca1e..eb48897 100644 --- a/dbus_bindings/dbus_bindings-internal.h +++ b/dbus_bindings/dbus_bindings-internal.h @@ -92,29 +92,7 @@ static inline int type##_CheckExact (PyObject *o) \ (PyUnicode_Check(obj) ? (obj) : NULL), \ (PyUnicode_Check(obj) ? NULL : PyBytes_AS_STRING(obj)) -#ifdef PY3 -#define NATIVEINT_TYPE (PyLong_Type) -#define NATIVEINT_FROMLONG(x) (PyLong_FromLong(x)) -#define NATIVEINT_ASLONG(x) (PyLong_AsLong(x)) -#define INTORLONG_CHECK(obj) (PyLong_Check(obj)) -#define NATIVESTR_TYPE (PyUnicode_Type) -#define NATIVESTR_CHECK(obj) (PyUnicode_Check(obj)) -#define NATIVESTR_FROMSTR(obj) (PyUnicode_FromString(obj)) -#else -#define NATIVEINT_TYPE (PyInt_Type) -#define NATIVEINT_FROMLONG(x) (PyInt_FromLong(x)) -#define NATIVEINT_ASLONG(x) (PyInt_AsLong(x)) -#define INTORLONG_CHECK(obj) (PyLong_Check(obj) || PyInt_Check(obj)) -#define NATIVESTR_TYPE (PyBytes_Type) -#define NATIVESTR_CHECK(obj) (PyBytes_Check(obj)) -#define NATIVESTR_FROMSTR(obj) (PyBytes_FromString(obj)) -#endif - -#ifdef PY3 PyMODINIT_FUNC PyInit__dbus_bindings(void); -#else -PyMODINIT_FUNC init_dbus_bindings(void); -#endif /* conn.c */ extern PyTypeObject DBusPyConnection_Type; @@ -154,10 +132,6 @@ DEFINE_CHECK(DBusPyByteArray) DEFINE_CHECK(DBusPyByte) extern PyTypeObject DBusPyString_Type; DEFINE_CHECK(DBusPyString) -#ifndef PY3 -extern PyTypeObject DBusPyUTF8String_Type; -DEFINE_CHECK(DBusPyUTF8String) -#endif extern PyTypeObject DBusPyDouble_Type; DEFINE_CHECK(DBusPyDouble) extern PyTypeObject DBusPyInt16_Type, DBusPyUInt16_Type; |