[Python-checkins] CVS: python/dist/src/Python getargs.c,2.28,2.29
Guido van Rossum
python-dev@python.org
Tue, 28 Mar 2000 15:30:02 -0500 (EST)
Update of /projects/cvsroot/python/dist/src/Python
In directory eric:/home/guido/hp/mal/py-patched/Python
Modified Files:
getargs.c
Log Message:
Marc-Andre Lemburg:
The attached patch set includes a workaround to get Python with
Unicode compile on BSDI 4.x (courtesy Thomas Wouters; the cause
is a bug in the BSDI wchar.h header file) and Python interfaces
for the MBCS codec donated by Mark Hammond.
Also included are some minor corrections w/r to the docs of
the new "es" and "es#" parser markers (use PyMem_Free() instead
of free(); thanks to Mark Hammond for finding these).
The unicodedata tests are now in a separate file
(test_unicodedata.py) to avoid problems if the module cannot
be found.
Index: getargs.c
===================================================================
RCS file: /projects/cvsroot/python/dist/src/Python/getargs.c,v
retrieving revision 2.28
retrieving revision 2.29
diff -C2 -r2.28 -r2.29
*** getargs.c 2000/03/28 02:00:29 2.28
--- getargs.c 2000/03/28 20:29:59 2.29
***************
*** 705,709 ****
updated to point to the new buffer;
the caller is responsible for
! free()ing it after usage
- if *buffer is not NULL, the data
--- 705,709 ----
updated to point to the new buffer;
the caller is responsible for
! PyMem_Free()ing it after usage
- if *buffer is not NULL, the data
***************
*** 753,757 ****
into it; *buffer is updated to
point to the new buffer; the caller
! is responsible for free()ing it
after usage
--- 753,757 ----
into it; *buffer is updated to
point to the new buffer; the caller
! is responsible for PyMem_Free()ing it
after usage