Jason Tishler
fb8595df4f
Patch #661760 : Cygwin auto-import module patch
...
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.
2003-01-06 12:41:26 +00:00
Jason Tishler
d0ebd7edb1
Patch #649060 : Cygwin bz2module patch
...
This patch enables the bz2 module to build cleanly under Cygwin.
2002-12-05 20:31:53 +00:00
Martin v. Löwis
e17af7b3db
Include Python.h first.
2002-11-23 09:16:19 +00:00
Tim Peters
6ee6db81c2
bz2_compress/bz2_decompress: more casting away LONG_LONG for
...
_PyString_Resize calls.
2002-11-09 04:33:36 +00:00
Tim Peters
39185d622d
BZ2Decomp_decompress(): Fixed more long vs LONG_LONG confusions.
2002-11-09 04:31:38 +00:00
Tim Peters
2858e5e84b
BZ2Comp_flush(): Fixed more int vs LONG_LONG confusions.
2002-11-09 04:30:08 +00:00
Tim Peters
f29f0c6a78
BZ2Comp_compress(): Explicitly cast the LONG_LONG size argument to
...
_PyString_Resize to int.
2002-11-09 04:28:17 +00:00
Tim Peters
07f075cebb
BZ2Comp_compress(): changed decl of totalout to LONG_LONG, since it's
...
solely used to hold LONG_LONG values, and the compiler rightfully warns
about potential data loss otherwise.
2002-11-09 04:26:02 +00:00
Tim Peters
a17c0c4509
Repaired signed-vs-unsigned mismatch.
2002-11-09 04:23:31 +00:00
Tim Peters
e32280987c
This couldn't compile on WIndows, due to hardcoded "long long". Repaired.
2002-11-09 04:21:44 +00:00
Gustavo Niemeyer
49ea7be7e9
* Modules/bz2module.c
...
(BZ2File_dealloc): Call Util_DropReadAhead().
(*): Included aesthetic changes by Neal Norwitz.
2002-11-08 14:31:49 +00:00
Gustavo Niemeyer
7d7930bb3f
* bzmodule.c
...
More fixes of XDECREF'd values not initialized.
2002-11-05 18:41:53 +00:00
Neal Norwitz
18142c0ca7
Fix SF #633935 , test_bz2 fails
...
Needed to init ret since it was Py_XDECREF()d on error.
All regressions pass in debug build for me.
2002-11-05 18:17:32 +00:00
Gustavo Niemeyer
f8ca8364c9
Patch implementing bz2 module.
...
* 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.
2002-11-05 16:50:05 +00:00