- 12 Apr, 2002 23 commits
-
-
Martin v. Löwis authored
-
Martin v. Löwis authored
-
Tim Peters authored
most of the work. In particular, if the underlying realloc is able to grow the memory block in place, great (this routine used to do a fresh malloc + memcpy every time a block grew). BTW, I'm not so keen here on avoiding possible quadratic-time realloc patterns as I am on making the debug pymalloc more invisible (the more it uses memory "just like" the underlying allocator, the better the chance that a suspected memory corruption bug won't vanish when the debug malloc is turned on).
-
Tim Peters authored
-
Tim Peters authored
prefix. These symbols are private to the file, and the PYMALLOC_ gets in the way (overly long code lines, comments, and error messages).
-
Tim Peters authored
PyMem_{Del, DEL} doesn't work yet (compilation problems). pyport.h: _PyMem_EXTRA is gone. pmem.h: Repaired comments. PyMem_{Malloc, MALLOC} and PyMem_{Realloc, REALLOC} now make the same x-platform guarantees when asking for 0 bytes, and when passing a NULL pointer to the latter. object.c: PyMem_{Malloc, Realloc} just call their macro versions now, since the latter take care of the x-platform 0 and NULL stuff by themselves now. pypcre.c, grow_stack(): So sue me. On two lines, this called PyMem_RESIZE to grow a "const" area. It's not legit to realloc a const area, so the compiler warned given the new expansion of PyMem_RESIZE. It would have gotten the same warning before if it had used PyMem_Resize() instead; the older macro version, but not the function version, silently cast away the constness. IMO that was a wrong thing to do, and the docs say the macro versions of PyMem_xyz are deprecated anyway. If somebody else is resizing const areas with the macro spelling, they'll get a warning when they recompile now too.
-
Tim Peters authored
all the same within the #ifdef WITH_PYMALLOC block.
-
Neil Schemenauer authored
PyMalloc_ prefix and use PyObject_ instead. I'm not sure about the debugging functions. Perhaps they should stay as PyMalloc_.
-
Neil Schemenauer authored
-
Neil Schemenauer authored
-
Neil Schemenauer authored
PyObject_Del and PyObject_GC_Del can now be used as a function designators.
-
Neil Schemenauer authored
-
Neil Schemenauer authored
-
Neil Schemenauer authored
-
Neil Schemenauer authored
-
Neil Schemenauer authored
-
Neil Schemenauer authored
-
Neil Schemenauer authored
designators. Remove PyMalloc_New.
-
Neil Schemenauer authored
compatibility function. Make PyObject_GC_Track and PyObject_GC_UnTrack functions instead of trivial macros wrapping functions. Provide binary compatibility functions.
-
Neil Schemenauer authored
it's enabled.
-
Neil Schemenauer authored
it's enabled. Allow PyObject_Del, PyObject_Free, and PyObject_GC_Del to be used as function designators. Provide source compatibility macros. Make PyObject_GC_Track and PyObject_GC_UnTrack functions instead of trivial macros wrapping functions.
-
Neil Schemenauer authored
-
Tim Peters authored
-
- 11 Apr, 2002 17 commits
-
-
Jack Jansen authored
Get rid of backward compatibility modules. Do this fairly early in the 2.3 cycle so we don't shoot ourselves in the foot later.
-
Fred Drake authored
-
Fred Drake authored
The deprecation is now listed in PEP 4.
-
Jack Jansen authored
-
Jack Jansen authored
-
Jack Jansen authored
-
Guido van Rossum authored
not-GPL-compatible to GPL-compatible, with a footnote explaining that RMS disagrees. I'm not going to discuss this further -- both sides (CNRI and RMS) will argue their POV till they're blue in the face.
-
Jack Jansen authored
-
Jack Jansen authored
-
Jack Jansen authored
Got rid of ifdefs for long-obsolete GUSI versions and other stuff that is now standard (appearance, interned strings)
-
Jack Jansen authored
-
Jack Jansen authored
-
Tim Peters authored
module necessarily raises.
-
Tim Peters authored
-
Tim Peters authored
-
Tim Peters authored
-
Fred Drake authored
This is nice for use with "make TESTOPTS='-u all' test".
-