| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
definition.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
escape, as documented in the comment for the check_escape() function
|
|
|
|
| |
marked my*.h as obsolete
|
|
|
|
|
|
|
|
|
|
| |
comments, docstrings or error messages. I fixed two minor things in
test_winreg.py ("didn't" -> "Didn't" and "Didnt" -> "Didn't").
There is a minor style issue involved: Guido seems to have preferred English
grammar (behaviour, honour) in a couple places. This patch changes that to
American, which is the more prominent style in the source. I prefer English
myself, so if English is preferred, I'd be happy to supply a patch myself ;)
|
|
|
|
|
|
|
|
| |
Somebody w/ gcc please check that the wngs are gone!
There are cheaper (at runtime) ways to prevent the wngs, but
they're obscure and delicate. I'm going for the easy Big
Hammer here under the theory that PCRE will be replaced by
SRE anyway.
|
|
|
|
|
| |
dumps core. Solution: fix check_escape() to match its comment and
use only the low 8 bits of the octal number.
|
|
|
|
|
|
|
| |
The same problem (mixed mallocs) exists for the pcre stack.
The buffers md->... are allocated via PyMem_RESIZE in grow_stack(),
while in free_stack() they are released with free() instead of
PyMem_DEL().
|
| |
|
|
|
|
| |
(AMK: you should probably copy this into your patch set for pcre.)
|
|
|
|
| |
after a return or goto).
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
'((a)*)*'. Andrew Kuchling posted a fix to the string-sig.
|
| |
|
| |
|
|
|
|
| |
in the pattern to wear out the reference count on small integers.
|
| |
|
| |
|
|
|
|
|
| |
(Should really let AMK do this, but don't know when he'll give me a
new version.)
|
|
|
|
| |
(Two small changes to shup up gcc added.)
|
|
This code is written by Philip Hazel and Andrew Kuchling.
It requires a new "re.py" module, too.
|