summaryrefslogtreecommitdiffstats
path: root/Modules/pcremodule.c
Commit message (Collapse)AuthorAgeFilesLines
* Patch #477750: Use METH_ constants in Modules.Martin v. Löwis2002-01-171-3/+3
|
* Patch supplied by Burton Radons for his own SF bug #487390: ModifyingGuido van Rossum2001-12-081-1/+1
| | | | | | | | | | | | | type.__module__ behavior. This adds the module name and a dot in front of the type name in every type object initializer, except for built-in types (and those that already had this). Note that it touches lots of Mac modules -- I have no way to test these but the changes look right. Apologies if they're not. This also touches the weakref docs, which contains a sample type object initializer. It also touches the mmap test output, because the mmap type's repr is included in that output. It touches object.h to put the correct description in a comment.
* sprintf -> PyOS_snprintf in some "obviously safe" cases.Tim Peters2001-11-281-2/+3
| | | | | Also changed <>-style #includes to ""-style in some places where the former didn't make sense.
* Make more warnings go away on the SGI compiler.Fred Drake2001-07-191-4/+1
| | | | This is part of SF patch #424992.
* Remove redundant include of assert.h.Tim Peters2001-07-151-1/+0
|
* [Bug #433047, reported by Armin Rigo] Remove extra 'i' character inAndrew M. Kuchling2001-06-181-1/+2
| | | | | | PyArg_ParseTuple() call. (2.1.1 bugfix candidate.)
* REMOVED all CWI, CNRI and BeOpen copyright markings.Guido van Rossum2000-09-011-16/+0
| | | | This should match the situation in the 1.6b1 tree.
* Do the absolute minimal amount of modifications to eradicateBarry Warsaw2000-09-011-4/+0
| | | | | | | | | | | | | | | Py_FatalError() from module initialization functions. The importing mechanism already checks for PyErr_Occurred() after module importation and it Does The Right Thing. Unfortunately, the following either were not compiled or tested by the regression suite, due to issues with my development platform: almodule.c cdmodule.c mpzmodule.c puremodule.c timingmodule.c
* Bunch of minor ANSIfications: 'void initfunc()' -> 'void initfunc(void)',Thomas Wouters2000-07-211-1/+1
| | | | | | | | | | | | | | | | | | and a couple of functions that were missed in the previous batches. Not terribly tested, but very carefully scrutinized, three times. All these were found by the little findkrc.py that I posted to python-dev, which means there might be more lurking. Cases such as this: long func(a, b) long a; long b; /* flagword */ { and other cases where the last ; in the argument list isn't followed by a newline and an opening curly bracket. Regexps to catch all are welcome, of course ;)
* ANSI-ficationPeter Schneider-Kamp2000-07-101-23/+9
|
* Python 2.0 is not supposed to use string exceptions in the standard libraryFred Drake2000-07-061-1/+1
| | | | | & extensions, so create exceptions in extension modules using the PyErr_NewException() API.
* Change copyright notice.Guido van Rossum2000-06-301-22/+7
|
* Vladimir Marangozov's long-awaited malloc restructuring.Guido van Rossum2000-05-031-2/+2
| | | | | | | | | | For more comments, read the patches@python.org archives. For documentation read the comments in mymalloc.h and objimpl.h. (This is not exactly what Vladimir posted to the patches list; I've made a few changes, and Vladimir sent me a fix in private email for a problem that only occurs in debug mode. I'm also holding back on his change to main.c, which seems unnecessary to me.)
* Charles G Waldman: Doing a PyObject_New then PyMem_DEL causes havoc ifGuido van Rossum2000-04-251-3/+3
| | | | you are trying to use Py_TRACE_REFS.
* Massive patch by Skip Montanaro to add ":name" to as manyGuido van Rossum2000-02-291-3/+3
| | | | PyArg_ParseTuple() format string arguments as possible.
* Patch from Vladimir Marangozov <marangoz@python.inrialpes.fr>:Andrew M. Kuchling2000-02-181-4/+2
| | | | | | The buffers self->regex and self->regex_extra are allocated in pcre_compile() and pcre_study() via pcre_malloc, but are released via free() instead of pcre_free.
* Patch from Paul Sokolovsky <Paul.Sokolovsky@technologist.com>:Fred Drake2000-02-041-1/+3
| | | | | Attached is patch (against 1.5.2 release) to allow some modules to be buildable as pyd's (usual &PyType_Type stuff).
* PyPcre_expand(): Fixed two memory leaks, where a PyString_FromString()Barry Warsaw1999-02-011-3/+26
| | | | | | | | | | | was appended to a list. Lists are reference count neutral, so the string must be DECREF'd. Also added some checks for the return value of PyList_Append(). Note: there are still some memory problems reported by Purify (I get two Array Bounds Reads still and an Unitialized Memory Read). Also, in scanning the code, there appears to be some potential problems where return values aren't checked. To much to attack now though.
* Add DL_EXPORT() to all modules that could possibly be usedGuido van Rossum1998-12-041-1/+1
| | | | on BeOS or Windows.
* Use the t# format where appropriate. Greg Stein.Guido van Rossum1998-10-081-2/+2
|
* Add test for failure of the getattr call in pcre_expand() -- it usedGuido van Rossum1998-07-171-0/+4
| | | | to core dump if the first argument did not have a "group" attribute.
* Fix benign problems found by a picky SGI compiler (unreachable breakGuido van Rossum1998-07-071-9/+0
| | | | after a return).
* Address warnings issued by the MSVC++ compilerGuido van Rossum1998-04-101-1/+0
|
* AMK's latestGuido van Rossum1998-04-031-40/+35
|
* patch for re.sub bug, by AMK.Guido van Rossum1998-03-101-3/+1
|
* AMK's latest -- synchronized with PCRE 1.04.Guido van Rossum1997-12-221-1/+1
|
* AMK's latest; plus three null bytes that I added for purifyGuido van Rossum1997-12-171-13/+29
|
* New pcre version from AMKGuido van Rossum1997-12-081-438/+388
|
* Add proper (getattrfunc) cast in Pcre_Type.Guido van Rossum1997-10-201-1/+1
|
* Checking in AMK's latest installement.Guido van Rossum1997-10-081-114/+50
| | | | (Two small changes to shup up gcc added.)
* New "re" regular expression support.Guido van Rossum1997-10-061-0/+775
This code is written by Philip Hazel and Andrew Kuchling. It requires a new "re.py" module, too.