- 19 Ara, 2007 1 kayıt (commit)
-
-
Christian Heimes yazdı
#1629: Renamed Py_Size, Py_Type and Py_Refcnt to Py_SIZE, Py_TYPE and Py_REFCNT. Macros for b/w compatibility are available.
-
- 21 Kas, 2007 1 kayıt (commit)
-
-
Christian Heimes yazdı
-
- 21 Tem, 2007 1 kayıt (commit)
-
-
Martin v. Löwis yazdı
backwards compatibility. Add Py_Refcnt, Py_Type, Py_Size, and PyVarObject_HEAD_INIT.
-
- 12 Haz, 2006 1 kayıt (commit)
-
-
Neal Norwitz yazdı
copy is only in newer versions of zlib. This should allow zlibmodule to work with older versions like the Tru64 buildbot.
-
- 17 May, 2006 1 kayıt (commit)
-
-
Tim Peters yazdı
-
- 16 May, 2006 1 kayıt (commit)
-
-
Georg Brandl yazdı
copy() method.
-
- 01 Nis, 2006 1 kayıt (commit)
-
-
Georg Brandl yazdı
-
- 19 Ock, 2006 1 kayıt (commit)
-
-
Neal Norwitz yazdı
Probably should be backported.
-
- 22 Kas, 2005 1 kayıt (commit)
-
-
Andrew M. Kuchling yazdı
[Patch #1350573] zlib.crc32 doesn't handle 0xffffffff seed. Add tests and bugfix. Bug reported by John Schmidt; bugfix by Danny Yoo.
-
- 28 Ara, 2004 1 kayıt (commit)
-
-
Andrew M. Kuchling yazdı
[Bug #1083110] calling .flush() on decompress objects causes a segfault due to an uninitialized pointer: fixes the problem and adds a test case
-
- 03 Şub, 2003 1 kayıt (commit)
-
-
Guido van Rossum yazdı
extension implemented flush() was fixed. Scott also rewrite the zlib test suite using the unittest module. (SF bug #640230 and patch #678531.) Backport candidate I think.
-
- 23 Tem, 2002 1 kayıt (commit)
-
-
Mark Hammond yazdı
command line for Windows builds. This should allow MSVC to import and build the Python MSVC6 project files without error.
-
- 17 Tem, 2002 2 kayıt (commit)
-
-
Tim Peters yazdı
-
Jeremy Hylton yazdı
The staticforward define was needed to support certain broken C compilers (notably SCO ODT 3.0, perhaps early AIX as well) botched the static keyword when it was used with a forward declaration of a static initialized structure. Standard C allows the forward declaration with static, and we've decided to stop catering to broken C compilers. (In fact, we expect that the compilers are all fixed eight years later.) I'm leaving staticforward and statichere defined in object.h as static. This is only for backwards compatibility with C extensions that might still use it. XXX I haven't updated the documentation.
-
- 13 Haz, 2002 1 kayıt (commit)
-
-
Martin v. Löwis yazdı
-
- 27 Nis, 2002 1 kayıt (commit)
-
-
Tim Peters yazdı
don't understand how this function works, also beefed up the docs. The most common usage error is of this form (often spread out across gotos): if (_PyString_Resize(&s, n) < 0) { Py_DECREF(s); s = NULL; goto outtahere; } The error is that if _PyString_Resize runs out of memory, it automatically decrefs the input string object s (which also deallocates it, since its refcount must be 1 upon entry), and sets s to NULL. So if the "if" branch ever triggers, it's an error to call Py_DECREF(s): s is already NULL! A correct way to write the above is the simpler (and intended) if (_PyString_Resize(&s, n) < 0) goto outtahere; Bugfix candidate.
-
- 19 Nis, 2002 1 kayıt (commit)
-
-
Jeremy Hylton yazdı
Bug fix by mhammond. Bug fix candidate for 2.2, not present in 2.1.
-
- 01 Nis, 2002 1 kayıt (commit)
-
-
Fred Drake yazdı
directly.
-
- 11 Mar, 2002 1 kayıt (commit)
-
-
Sjoerd Mullender yazdı
-
- 08 Ara, 2001 1 kayıt (commit)
-
-
Guido van Rossum yazdı
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.
-
- 23 Eki, 2001 1 kayıt (commit)
-
-
Jack Jansen yazdı
-
- 17 Eki, 2001 5 kayıt (commit)
-
-
Jeremy Hylton yazdı
-
Tim Peters yazdı
line fits in reasonable screen width.
-
Tim Peters yazdı
-
Tim Peters yazdı
Made the presence/absence of a semicolon after macros consistent.
-
Tim Peters yazdı
removed the tricks). Changed the ENTER/LEAVE_ZLIB macros so as not to create a new block (a new block is neither necessary nor helpful).
-
- 16 Eki, 2001 7 kayıt (commit)
-
-
Jeremy Hylton yazdı
Apparently this patch (rev 2.41) replaced all the good old "s#" formats in PyArg_ParseTuple() with "S". Then it did PyString_FromStringAndSize() to get back the values setup by the "s#" format. It also incref'd and decref'd the string obtained by "S" even though the argument tuple had a reference to it. Replace PyString_AsString() calls with PyString_AS_STRING(). A good rule of thumb -- if you never check the return value of PyString_AsString() to see if it's NULL, you ought to be using the macro <wink>.
-
Jeremy Hylton yazdı
Many functions used a local variable called return_error, which was initialized to zero. If an error occurred, it was set to true. Most of the code paths checked were only executed if return_error was false. goto is clearer. The code also seemed to be written under the curious assumption that calling Py_DECREF() on a local variable would assign the variable to NULL. As a result, more of the error-exit code paths returned an object that had a reference count of zero instead of just returning NULL. Fixed the code to explicitly assign NULL after the DECREF. A bit more reformatting, but not much. XXX Need a much better test suite for zlib, since it the current tests don't exercise any of this broken code.
-
Jeremy Hylton yazdı
-
Jeremy Hylton yazdı
It sets a ZlibError exception, using the msg from the z_stream pointer if one is available.
-
Jeremy Hylton yazdı
When PyString_FromStringAndSize() and _PyString_Resize() fail, they set an exception. There's no need to set a new exception.
-
Jeremy Hylton yazdı
Consistently indent 4 spaces. Use whitespace around operators. Put braces in the right places.
-
Jeremy Hylton yazdı
Mostly by Toby Dickenson and Titus Brown. Add an optional argument to a decompression object's decompress() method. The argument specifies the maximum length of the return value. If the uncompressed data exceeds this length, the excess data is stored as the unconsumed_tail attribute. (Not to be confused with unused_data, which is a separate issue.) Difference from SF patch: Default value for unconsumed_tail is "" rather than None. It's simpler if the attribute is always a string.
-
- 09 Eki, 2001 1 kayıt (commit)
-
-
Martin v. Löwis yazdı
-
- 08 Eyl, 2001 1 kayıt (commit)
-
-
Martin v. Löwis yazdı
-
- 07 Eyl, 2001 1 kayıt (commit)
-
-
Martin v. Löwis yazdı
the module in multiple threads with a global lock.
-
- 22 Şub, 2001 1 kayıt (commit)
-
-
Andrew M. Kuchling yazdı
-
- 21 Şub, 2001 1 kayıt (commit)
-
-
Andrew M. Kuchling yazdı
* fixes the zlib decompress sync flush bug as reported in bug #124981 * avoids repeat calls to (in|de)flateEnd when destroying (de)compression objects * raises exception when allocating unused_data fails * fixes memory leak when allocating unused_data fails * raises exception when allocating decompress data fails * removes vestigial code from decompress flush now that decompression returns all available data * tidies code so object compress/decompress/flush routines are consistent
-
- 31 Ock, 2001 2 kayıt (commit)
-
-
Tim Peters yazdı
-
Mark Hammond yazdı
This involves changing the zlib build process to build zlib itself from sources, then use that library. Also updated are the comments to reflect the new official home of zlib, and add Windows specific notes regarding the build process.
-