]> granicus.if.org Git - python/commitdiff
Pretensions of the 20th century... remove old-style preprocessor
authorFred Drake <fdrake@acm.org>
Sat, 8 Jul 2000 04:53:48 +0000 (04:53 +0000)
committerFred Drake <fdrake@acm.org>
Sat, 8 Jul 2000 04:53:48 +0000 (04:53 +0000)
hackery (/**/), leaving only new-style preprocessor hackery (##).

Modules/operator.c

index cd86956e34e6e0658ffe0ad53ee5818db976e8f8..46e5b516a17d7548d2f4a986b130a34e2c5347bf 100644 (file)
@@ -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[] = {