summaryrefslogtreecommitdiffstats
path: root/Modules/bz2module.c
Commit message (Collapse)AuthorAgeFilesLines
* - Fixed #853061: allow BZ2Compressor.compress() to receive an empty stringGustavo Niemeyer2004-02-141-0/+3
| | | | as parameter.
* Remove support for --without-universal-newlines (see PEP 11).Skip Montanaro2004-02-071-22/+0
|
* Use appropriate macros not the deprecated DL_IMPORT/DL_EXPORT macrosNeal Norwitz2003-07-011-1/+1
|
* Patch #708495: Port more stuff to OpenVMS.Martin v. Löwis2003-05-031-0/+2
|
* Applying patch #728656, by logistix, fixing opening of nonexistentGustavo Niemeyer2003-04-291-1/+1
| | | | bz2 files. Also, included a testcase for this problem.
* Applying patch by Neal Norwitz:Gustavo Niemeyer2003-04-271-0/+25
| | | | [#727759] get bzip2 to build on Solaris 8 (old bzip library)
* Rename LONG_LONG to PY_LONG_LONG. Fixes #710285.Martin v. Löwis2003-03-291-4/+4
|
* Unparenting BZ2File, as discussed in SF patch #661796.Gustavo Niemeyer2003-02-111-102/+158
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Modules/bz2module.c (BZ2FileObject): Now the structure includes a pointer to a file object, instead of "inheriting" one. Also, some members were copied from the PyFileObject structure to avoid dealing with the internals of that structure from outside fileobject.c. (Util_GetLine,Util_DropReadAhead,Util_ReadAhead,Util_ReadAheadGetLineSkip, BZ2File_write,BZ2File_writelines,BZ2File_init,BZ2File_dealloc, BZ2Comp_dealloc,BZ2Decomp_dealloc): These functions were adapted to the change above. (BZ2File_seek,BZ2File_close): Use PyObject_CallMethod instead of getting the function attribute locally. (BZ2File_notsup): Removed, since it's not necessary anymore to overload truncate(), and readinto() with dummy functions. (BZ2File_methods): Added xreadlines() as an alias to BZ2File_getiter, and removed truncate() and readinto(). (BZ2File_get_newlines,BZ2File_get_closed,BZ2File_get_mode,BZ2File_get_name, BZ2File_getset): Implemented getters for "newlines", "mode", and "name". (BZ2File_members): Implemented "softspace" member. (BZ2File_init): Reworked to create a file instance instead of initializing itself as a file subclass. Also, pass "name" object untouched to the file constructor, and use PyObject_CallFunction instead of building the argument tuple locally. (BZ2File_Type): Set tp_new to PyType_GenericNew, tp_members to BZ2File_members, and tp_getset to BZ2File_getset. (initbz2): Do not set BZ2File_Type.tp_base nor BZ2File_Type.tp_new. * Doc/lib/libbz2.tex Do not mention that BZ2File inherits from the file type.
* Patch #661760: Cygwin auto-import module patchJason Tishler2003-01-061-29/+14
| | | | | | | | | | | | The attached patch enables shared extension modules to build cleanly under Cygwin without moving the static initialization of certain function pointers (i.e., ones exported from the Python DLL core) to a module initialization function. Additionally, this patch fixes the modules that have been changed in the past to accommodate Cygwin.
* Patch #649060: Cygwin bz2module patchJason Tishler2002-12-051-14/+29
| | | | This patch enables the bz2 module to build cleanly under Cygwin.
* Include Python.h first.Martin v. Löwis2002-11-231-1/+1
|
* bz2_compress/bz2_decompress: more casting away LONG_LONG forTim Peters2002-11-091-2/+2
| | | | _PyString_Resize calls.
* BZ2Decomp_decompress(): Fixed more long vs LONG_LONG confusions.Tim Peters2002-11-091-2/+2
|
* BZ2Comp_flush(): Fixed more int vs LONG_LONG confusions.Tim Peters2002-11-091-2/+2
|
* BZ2Comp_compress(): Explicitly cast the LONG_LONG size argument toTim Peters2002-11-091-1/+1
| | | | _PyString_Resize to int.
* BZ2Comp_compress(): changed decl of totalout to LONG_LONG, since it'sTim Peters2002-11-091-1/+1
| | | | | solely used to hold LONG_LONG values, and the compiler rightfully warns about potential data loss otherwise.
* Repaired signed-vs-unsigned mismatch.Tim Peters2002-11-091-1/+1
|
* This couldn't compile on WIndows, due to hardcoded "long long". Repaired.Tim Peters2002-11-091-23/+23
|
* * Modules/bz2module.cGustavo Niemeyer2002-11-081-12/+21
| | | | | (BZ2File_dealloc): Call Util_DropReadAhead(). (*): Included aesthetic changes by Neal Norwitz.
* * bzmodule.cGustavo Niemeyer2002-11-051-3/+3
| | | | More fixes of XDECREF'd values not initialized.
* Fix SF #633935, test_bz2 failsNeal Norwitz2002-11-051-1/+1
| | | | | Needed to init ret since it was Py_XDECREF()d on error. All regressions pass in debug build for me.
* Patch implementing bz2 module.Gustavo Niemeyer2002-11-051-0/+2099
* setup.py (PyBuildExt.detect_modules): Included bz2 module detection. * Modules/bz2module.c * Lib/test/test_bz2.py * Doc/lib/libbz2.tex Included files implementing, testing, and documenting bz2 module. * Doc/Makefile.deps * Doc/lib/lib.tex Include references to libbz2.tex. * Misc/NEWS (Library): Mention distutils' c++ linkage patch, and new bz2 module.