diff options
author | Christian Heimes <christian@cheimes.de> | 2007-12-02 14:31:20 (GMT) |
---|---|---|
committer | Christian Heimes <christian@cheimes.de> | 2007-12-02 14:31:20 (GMT) |
commit | 217cfd1c86c59ed8a55ce6d6b88bbe37309e7ba2 (patch) | |
tree | 4737b4a91359c94953623ab9ee297e9a90f319e4 /Doc/includes | |
parent | 1a3284ed69d545e4ef59869998cb8c29233a45fa (diff) | |
download | cpython-217cfd1c86c59ed8a55ce6d6b88bbe37309e7ba2.zip cpython-217cfd1c86c59ed8a55ce6d6b88bbe37309e7ba2.tar.gz cpython-217cfd1c86c59ed8a55ce6d6b88bbe37309e7ba2.tar.bz2 |
Cleanup: Replaced most PyInt_ aliases with PyLong_ and disabled the aliases in intobject.h
Diffstat (limited to 'Doc/includes')
-rw-r--r-- | Doc/includes/run-func.c | 4 | ||||
-rw-r--r-- | Doc/includes/shoddy.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/Doc/includes/run-func.c b/Doc/includes/run-func.c index e4f5a27..1c9860d 100644 --- a/Doc/includes/run-func.c +++ b/Doc/includes/run-func.c @@ -26,7 +26,7 @@ main(int argc, char *argv[]) if (pFunc && PyCallable_Check(pFunc)) { pArgs = PyTuple_New(argc - 3); for (i = 0; i < argc - 3; ++i) { - pValue = PyInt_FromLong(atoi(argv[i + 3])); + pValue = PyLong_FromLong(atoi(argv[i + 3])); if (!pValue) { Py_DECREF(pArgs); Py_DECREF(pModule); @@ -39,7 +39,7 @@ main(int argc, char *argv[]) pValue = PyObject_CallObject(pFunc, pArgs); Py_DECREF(pArgs); if (pValue != NULL) { - printf("Result of call: %ld\n", PyInt_AsLong(pValue)); + printf("Result of call: %ld\n", PyLong_AsLong(pValue)); Py_DECREF(pValue); } else { diff --git a/Doc/includes/shoddy.c b/Doc/includes/shoddy.c index 07a4177..4c46bea 100644 --- a/Doc/includes/shoddy.c +++ b/Doc/includes/shoddy.c @@ -10,7 +10,7 @@ static PyObject * Shoddy_increment(Shoddy *self, PyObject *unused) { self->state++; - return PyInt_FromLong(self->state); + return PyLong_FromLong(self->state); } |