Commit 101a3a2b authored by Fred Drake's avatar Fred Drake

Pretensions of the 20th century... remove old-style preprocessor

hackery (/**/), leaving only new-style preprocessor hackery (##).
parent 5377df5b
......@@ -184,15 +184,9 @@ op_delslice(PyObject *s, PyObject *a)
#undef spam1
#undef spam2
#ifdef HAVE_OLD_CPP
#define spam1(OP,DOC) {"OP", OP, METH_VARARGS, DOC},
#define spam2(OP,ALTOP,DOC) {"OP", op_/**/OP, METH_VARARGS, DOC}, \
{"ALTOP", op_/**/OP, METH_VARARGS, DOC},
#else
#define spam1(OP,DOC) {#OP, OP, METH_VARARGS, DOC},
#define spam2(OP,ALTOP,DOC) {#OP, op_##OP, METH_VARARGS, DOC}, \
{#ALTOP, op_##OP, METH_VARARGS, DOC},
#endif
static struct PyMethodDef operator_methods[] = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment