mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
Pretensions of the 20th century... remove old-style preprocessor
hackery (/**/), leaving only new-style preprocessor hackery (##).
This commit is contained in:
parent
7d3a511a40
commit
0c89d4ec9a
1 changed files with 0 additions and 6 deletions
|
@ -184,15 +184,9 @@ op_delslice(PyObject *s, PyObject *a)
|
||||||
|
|
||||||
#undef spam1
|
#undef spam1
|
||||||
#undef spam2
|
#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 spam1(OP,DOC) {#OP, OP, METH_VARARGS, DOC},
|
||||||
#define spam2(OP,ALTOP,DOC) {#OP, op_##OP, METH_VARARGS, DOC}, \
|
#define spam2(OP,ALTOP,DOC) {#OP, op_##OP, METH_VARARGS, DOC}, \
|
||||||
{#ALTOP, op_##OP, METH_VARARGS, DOC},
|
{#ALTOP, op_##OP, METH_VARARGS, DOC},
|
||||||
#endif
|
|
||||||
|
|
||||||
static struct PyMethodDef operator_methods[] = {
|
static struct PyMethodDef operator_methods[] = {
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue