aboutsummaryrefslogtreecommitdiffstats
path: root/libshiboken/sbkpython.h
diff options
context:
space:
mode:
authorRenato Filho <renato.filho@openbossa.org>2011-09-28 15:48:27 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-08 16:18:17 -0300
commit52fdebcb0b3822180a374ee821f3503d746656c1 (patch)
tree3fd0757a3a5efb0bc3688838c817bb72f10299da /libshiboken/sbkpython.h
parentc6b9bb836c98a6bcf922ad6ad4dda60e3383d41b (diff)
Update string usage to new Shiboken::String API.
Diffstat (limited to 'libshiboken/sbkpython.h')
-rw-r--r--libshiboken/sbkpython.h24
1 files changed, 0 insertions, 24 deletions
diff --git a/libshiboken/sbkpython.h b/libshiboken/sbkpython.h
index 24b70fe6d..84f92d25e 100644
--- a/libshiboken/sbkpython.h
+++ b/libshiboken/sbkpython.h
@@ -38,19 +38,7 @@
#define Py_TPFLAGS_CHECKTYPES 0
#define SBK_NB_BOOL(x) (x).nb_bool
- #define SBK_STR_NAME "bytes"
#define SBK_PyMethod_New PyMethod_New
- #define SBK_PyString_FromCString PyUnicode_FromString
- #define SBK_PyString_FromFormat PyUnicode_FromFormat
- #define SBK_PyString_CompareWithASCIIString PyUnicode_CompareWithASCIIString
-
- // Module MACROS
- #define SBK_MODULE_INIT_ERROR 0
- #define SBK_MODULE_INIT_FUNCTION_BEGIN(ModuleName) \
- extern "C" SBK_EXPORT_MODULE PyObject* PyInit_##ModuleName() {
-
- #define SBK_MODULE_INIT_FUNCTION_END \
- return module; }
#else
// Note: if there wasn't for the old-style classes, only a PyNumber_Check would suffice.
@@ -59,18 +47,6 @@
#define SBK_NB_BOOL(x) (x).nb_nonzero
#define SBK_STR_NAME "str"
#define SBK_PyMethod_New(X, Y) PyMethod_New(X, Y, (PyObject*)Py_TYPE(Y))
- #define SBK_PyString_FromCString PyBytes_FromString
- #define SBK_PyString_FromFormat PyString_FromFormat
- #define SBK_PyString_CompareWithASCIIString(X, Y) strcmp(PyString_AS_STRING(X), Y)
-
- // Module MACROS
- #define SBK_MODULE_INIT_ERROR
- #define SBK_MODULE_INIT_FUNCTION_BEGIN(ModuleName) \
- extern "C" SBK_EXPORT_MODULE void init##ModuleName()
-
- #define SBK_MODULE_INIT_FUNCTION_END \
- }
-
#endif
#endif