[Python-checkins] CVS: python/dist/src/Modules operator.c,2.14,2.15

Fred L. Drake python-dev@python.org
Fri, 7 Jul 2000 21:53:50 -0700


Update of /cvsroot/python/python/dist/src/Modules
In directory slayer.i.sourceforge.net:/tmp/cvs-serv6964
Modified Files:
	operator.c 
Log Message:
Pretensions of the 20th century... remove old-style preprocessor
hackery (/**/), leaving only new-style preprocessor hackery (##).
Index: operator.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/operator.c,v
retrieving revision 2.14
retrieving revision 2.15
diff -C2 -r2.14 -r2.15
*** operator.c	2000年07月08日 04:12:08	2.14
--- operator.c	2000年07月08日 04:53:48	2.15
***************
*** 185,197 ****
 #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[] = {
--- 185,191 ----

AltStyle によって変換されたページ (->オリジナル) /