[Python-checkins] CVS: python/dist/src/Modules Setup.dist,1.16,1.17 pyexpat.c,2.37,2.38
Martin v. Löwis
loewis@users.sourceforge.net
Tue, 06 Feb 2001 01:34:42 -0800
Update of /cvsroot/python/python/dist/src/Modules
In directory usw-pr-cvs1:/tmp/cvs-serv27393
Modified Files:
Setup.dist pyexpat.c
Log Message:
Support older PYTHON_API_VERSIONs for backwards compatibility.
Index: Setup.dist
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/Setup.dist,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -r1.16 -r1.17
*** Setup.dist 2001/02/04 09:18:21 1.16
--- Setup.dist 2001/02/06 09:34:40 1.17
***************
*** 152,158 ****
#_testcapi _testcapimodule.c # Python C API test module
! #unicodedata unicodedata.c unicodedatabase.c
! # static Unicode character database
! #ucnhash ucnhash.c # Unicode Character Name expansion hash table
#_locale _localemodule.c # access to ISO C locale support
--- 152,156 ----
#_testcapi _testcapimodule.c # Python C API test module
! #unicodedata unicodedata.c # static Unicode character database
#_locale _localemodule.c # access to ISO C locale support
Index: pyexpat.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/pyexpat.c,v
retrieving revision 2.37
retrieving revision 2.38
diff -C2 -r2.37 -r2.38
*** pyexpat.c 2001/01/25 21:48:14 2.37
--- pyexpat.c 2001/02/06 09:34:40 2.38
***************
*** 258,263 ****
--- 258,265 ----
nulltuple, /* names */
nulltuple, /* varnames */
+ #if PYTHON_API_VERSION >= 1010
nulltuple, /* freevars */
nulltuple, /* cellvars */
+ #endif
filename, /* filename */
name, /* name */
***************
*** 291,296 ****
c, /*code*/
tstate->frame->f_globals, /*globals*/
! NULL, /*locals*/
! NULL); /* closure */
if (f == NULL)
return NULL;
--- 293,301 ----
c, /*code*/
tstate->frame->f_globals, /*globals*/
! NULL /*locals*/
! #if PYTHON_API_VERSION >= 1010
! ,NULL /*closure*/
! #endif
! );
if (f == NULL)
return NULL;