chiark
/
gitweb
/
~mdw
/
pyke
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8eeb5ae
)
*.c: Use Python macros rather than functions where possible.
author
Mark Wooding
<mdw@distorted.org.uk>
Sun, 24 Nov 2019 12:35:45 +0000
(12:35 +0000)
committer
Mark Wooding
<mdw@distorted.org.uk>
Fri, 10 Apr 2020 21:42:39 +0000
(22:42 +0100)
catacomb.c
patch
|
blob
|
blame
|
history
diff --git
a/catacomb.c
b/catacomb.c
index e868f0f84373016d53704364cc5e56c3283fb87b..f02d39e428da0eaaaf82161958533197fb81e00f 100644
(file)
--- a/
catacomb.c
+++ b/
catacomb.c
@@
-74,8
+74,8
@@
PyObject *mexp_common(PyObject *me, PyObject *arg,
PyObject *qq, *x, *y, *z = 0;
char *v = 0, *vv;
PyObject *qq, *x, *y, *z = 0;
char *v = 0, *vv;
- if (PyTuple_
Size
(arg) == 1)
- arg = PyTuple_G
etItem
(arg, 0);
+ if (PyTuple_
GET_SIZE
(arg) == 1)
+ arg = PyTuple_G
ET_ITEM
(arg, 0);
Py_INCREF(arg);
if (!PySequence_Check(arg)) TYERR("not a sequence");
n = PySequence_Size(arg); if (n < 0) goto end;
Py_INCREF(arg);
if (!PySequence_Check(arg)) TYERR("not a sequence");
n = PySequence_Size(arg); if (n < 0) goto end;
@@
-135,7
+135,7
@@
static PyObject *smallprimes(void)
int i;
for (i = 0; i < NPRIME; i++)
int i;
for (i = 0; i < NPRIME; i++)
- PyList_S
etItem
(v, i, PyInt_FromLong(primetab[i]));
+ PyList_S
ET_ITEM
(v, i, PyInt_FromLong(primetab[i]));
return (v);
}
return (v);
}