[Python-checkins] python/dist/src/Modules pyexpat.c,2.73,2.74
fdrake@users.sourceforge.net
fdrake@users.sourceforge.net
2002年9月02日 08:54:09 -0700
Update of /cvsroot/python/python/dist/src/Modules
In directory usw-pr-cvs1:/tmp/cvs-serv13082
Modified Files:
pyexpat.c
Log Message:
Minor change for symmetry with PyXML: PyDoc_STR should not include
the "safety" parentheses since some older compilers refuse to compile
the module then, claiming that static initializers are non-constant.
This doesn't actually make any difference for Python, since these
definitions are not used when compiling with a version of Python that
already defines the PyDoc_* macros.
Index: pyexpat.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/pyexpat.c,v
retrieving revision 2.73
retrieving revision 2.74
diff -C2 -d -r2.73 -r2.74
*** pyexpat.c 16 Aug 2002 17:01:07 -0000 2.73
--- pyexpat.c 2 Sep 2002 15:54:06 -0000 2.74
***************
*** 7,11 ****
#ifndef PyDoc_STRVAR
! #define PyDoc_STR(str) (str)
#define PyDoc_VAR(name) static char name[]
#define PyDoc_STRVAR(name,str) PyDoc_VAR(name) = PyDoc_STR(str)
--- 7,11 ----
#ifndef PyDoc_STRVAR
! #define PyDoc_STR(str) str
#define PyDoc_VAR(name) static char name[]
#define PyDoc_STRVAR(name,str) PyDoc_VAR(name) = PyDoc_STR(str)