summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/block_template.c2
-rw-r--r--src/hash_template.c2
-rw-r--r--src/stream_template.c2
3 files changed, 0 insertions, 6 deletions
diff --git a/src/block_template.c b/src/block_template.c
index 0e7442a..6a1ec93 100644
--- a/src/block_template.c
+++ b/src/block_template.c
@@ -69,12 +69,10 @@ typedef struct
*/
#ifdef IS_PY3K
static PyTypeObject ALGtype;
-#define is_ALGobject(v) (Py_TYPE(v) == &ALGtype)
#define PyInt_CheckExact PyLong_CheckExact
#define PyInt_AS_LONG PyLong_AS_LONG
#else
staticforward PyTypeObject ALGtype;
-#define is_ALGobject(v) ((v)->ob_type == &ALGtype)
#endif
static ALGobject *
diff --git a/src/hash_template.c b/src/hash_template.c
index 249040f..cc66544 100644
--- a/src/hash_template.c
+++ b/src/hash_template.c
@@ -48,10 +48,8 @@ typedef struct {
*/
#ifdef IS_PY3K
static PyTypeObject ALGtype;
-#define is_ALGobject(v) (Py_TYPE(v) == &ALGtype)
#else
staticforward PyTypeObject ALGtype;
-#define is_ALGobject(v) ((v)->ob_type == &ALGtype)
#endif
static ALGobject *
diff --git a/src/stream_template.c b/src/stream_template.c
index 5d13650..5456664 100644
--- a/src/stream_template.c
+++ b/src/stream_template.c
@@ -55,10 +55,8 @@ typedef struct
*/
#ifdef IS_PY3K
static PyTypeObject ALGtype;
-#define is_ALGobject(v) (Py_TYPE(v) == &ALGtype)
#else
staticforward PyTypeObject ALGtype;
-#define is_ALGobject(v) ((v)->ob_type == &ALGtype)
#endif
static ALGobject *