summaryrefslogtreecommitdiffstats
path: root/Modules/pyexpat.c
Commit message (Collapse)AuthorAgeFilesLines
* ParserCreate(): Added test that the namespace_separator value, if given,Fred Drake2000-10-291-0/+9
| | | | | | | has the required length. initpyexpat(): Provide the type object for the ParserCreate() return value as XMLParserType.
* PyModule_AddStringConstant(): Make this static since it isn't usedFred Drake2000-09-291-1/+5
| | | | elsewhere in 1.5.2.
* Remove unused VERSION #define.Martin v. Löwis2000-09-291-5/+26
| | | | | Add PyModule_AddStringConstant and PyModule_AddObject if version <2.0, to allow to share this file with PyXML.
* Repaired damaged string.Tim Peters2000-09-241-1/+1
|
* xmlparse_ExternalEntityParserCreate(): Add required cast to return toFred Drake2000-09-241-1/+1
| | | | avoid compiler warnings.
* Added ExternalEntityParserCreate method (patch 101635).Lars Gustäbel2000-09-241-0/+66
|
* Change the name of the exception from "pyexpat.error" toFred Drake2000-09-231-12/+13
| | | | | | | | "xml.parsers.expat.error", so it will reflect the public name of the exception rather than the internal name. Also change some of the initialization to use the new PyModule_Add*() convenience functions.
* When PyInt_FromLong() returns NULL, you do not need to checkFred Drake2000-09-221-4/+2
| | | | | PyErr_Occurred(). Removed the extra test and setting of a bogus exception.
* Fix for SF bug 115051: Dodgy use of PyTuple_SET_ITEM in pyexpat.cTim Peters2000-09-221-2/+1
|
* Remove debugging print. ;(Fred Drake2000-09-221-2/+0
|
* Remove memory leaks of strings/Unicode objects passed into the characterFred Drake2000-09-211-58/+21
| | | | | | | | | | data and default handlers -- a new reference was being passed to Py_BuildValue() for the "O" format character; using "N" plugs the leak. Fixed two other (minor) leaks that occurred on various error conditions. Removed uses of the UNLESS macro, which makes code hard to read, and is Evil.
* 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.
* Try to supply a prototype for the module init function but avoidTim Peters2000-08-261-1/+1
| | | | | | Windows "inconsistent linkage" warnings at the same time. I agree with Mark Hammond that the whole DL_IMPORT/DL_EXPORT macro system needs an overhaul; this is just an expedient hack until then.
* initpyexpat(): Code cleanup; makes it more robust and reduces warnings.Fred Drake2000-08-251-126/+143
| | | | | | | | | Added prototype to remove yet another warning. Make a number of the handlers and helpers "static" since they are not used in other C source files. This also reduces the number of warnings. Make a lot of the code "more Python". (Need to get the style guide done!)
* Fix the evil booboos. ;( Causes discussed with Jeremy offline.Fred Drake2000-08-241-2/+2
|
* Remove the Py_FatalError() from initpyexpat(); the Guido has decreedFred Drake2000-08-241-10/+22
| | | | | | | | | that this is not appropriate. Made somewhat more robust in the face of reload() (exception is not rebuilt, etc.). Made the exception a class exception.
* Mark Favas's fix for typos in docstrings.Thomas Wouters2000-07-221-4/+4
|
* Convert coding style to be internally consistent and similar to theFred Drake2000-07-121-545/+531
| | | | | rest of the Python C code: space between "if", "for" and "(", no space between "(", ")" and function call parameters, etc.
* Fix bugs in readinst():Andrew M. Kuchling2000-07-121-10/+25
| | | | | | | | * There was no error reported if the .read() method returns a non-string * If read() returned too much data, the buffer would be overflowed causing a core dump * Used strncpy, not memcpy, which seems incorrect if there are embedded \0s. * The args and bytes objects were leaked
* Patch #100854 from jhylton: eliminate compiler warnings in pyexpat:Andrew M. Kuchling2000-07-121-21/+22
| | | | | | | | The first two warnings seem harmless enough, but the last one looks like a potential bug: an uninitialized int is returned on error. (I also ended up reformatting some of the code, because it was hard to read.)
* pyexpat.errors is a *strange* module!Fred Drake2000-07-041-14/+15
| | | | | | | | | It gets initialized when pyexpat is imported, and is only accessible as an attribute of pyexpat; it cannot be imported itself. This allows it to at least be importable after pyexpat itself has been imported by adding it to sys.modules, so it is not quite as strange. This arrangement needs to be better thought out.
* Fixes for compilation problems on Tru64 reported by Mark FavasAndrew M. Kuchling2000-07-041-16/+16
|
* Change copyright notice.Guido van Rossum2000-06-301-22/+7
|
* Added support for passing Unicode strings to Expat handlers by default.Andrew M. Kuchling2000-06-271-485/+663
| | | | This version still includes #ifdef hackery to compile with 1.5.2.
* 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.)
* Skip Montanaro: add string precisions to calls to PyErr_FormatGuido van Rossum2000-04-101-1/+1
| | | | to prevent possible buffer overruns.
* Make it compile on Windows.Guido van Rossum2000-03-311-2/+4
|
* Added Python interface to Expat XML parser.Andrew M. Kuchling2000-03-311-0/+868
The Setup.in entry is sort of a lie; it links with -lexpat, but Expat's Makefile doesn't actually build a libexpat.a. I'll send Expat's author a patch to do that; if he doesn't accept it, this rule will have to list Expat's object files (ick!), or have a comment explaining how to build a .a file.