summaryrefslogtreecommitdiff
path: root/Cython/Compiler/ModuleNode.py
diff options
context:
space:
mode:
authorStefan Behnel <scoder@users.berlios.de>2007-08-25 19:00:31 +0200
committerStefan Behnel <scoder@users.berlios.de>2007-08-25 19:00:31 +0200
commit63e4116966fef32318d6160d5d88659090bd1b51 (patch)
tree6eae0b81e220979008c252885b54ef3bcccf5381 /Cython/Compiler/ModuleNode.py
parent8d6047a6e3138eb32d177d4d0fb04ecb340ecbda (diff)
parent2bff23cbe57e2a6f94acb91405750701e81d21a2 (diff)
downloadcython-63e4116966fef32318d6160d5d88659090bd1b51.tar.gz
merge of 0.9.6.4
Diffstat (limited to 'Cython/Compiler/ModuleNode.py')
-rw-r--r--Cython/Compiler/ModuleNode.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Cython/Compiler/ModuleNode.py b/Cython/Compiler/ModuleNode.py
index d2d1d2923..1e5f09aeb 100644
--- a/Cython/Compiler/ModuleNode.py
+++ b/Cython/Compiler/ModuleNode.py
@@ -173,6 +173,8 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
code.putln(" #define PY_SSIZE_T_MIN INT_MIN")
code.putln(" #define PyInt_FromSsize_t(z) PyInt_FromLong(z)")
code.putln(" #define PyInt_AsSsize_t(o) PyInt_AsLong(o)")
+ code.putln(" #define PyNumber_Index(o) PyNumber_Int(o)")
+ code.putln(" #define PyIndex_Check(o) PyNumber_Check(o)")
code.putln("#endif")
self.generate_extern_c_macro_definition(code)
code.putln("%s double pow(double, double);" % Naming.extern_c_macro)