summaryrefslogtreecommitdiffstats
path: root/generic/tclZlib.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix for bug 3525907. Reworked TransformInput() entirely, tightened use of ↵andreask2012-05-171-50/+256
| | | | timed events, and added code handling special situations like EAGAIN, parent eof, etc.
* * generic/tclUtil.c (TclDStringToObj): Added internal function to makedkf2012-04-251-6/+2
| | | | the fairly-common operation of converting a DString into an Obj a more efficient one.
* * generic/tclZlib.c (ZlibTransformSetOption): [Bug 3517696]: Makedkf2012-04-151-10/+12
| | | flushing work correctly in a pushed compressing channel transform.
* [Bug 3390073]: Return the correct length of written data for a compressingdkf2011-08-121-1/+1
| | | | transform, ensuring that buffers are written exactly once instead of multiple times or not at all (producing an invalid file).
* Make the -buffersize option to '$zstream add' function correctly instead ofdkf2011-08-081-12/+37
| | | having its value just be discarded unceremoniously.
* [Bug 3386197]: Fix buffer direction botch. Damn you, confusing terminology!dkf2011-08-051-2/+2
|
* [Bug 3386197]: Plug memory leak in unstacking of zlib transforms.dkf2011-08-041-0/+14
|
* Adjust ckalloc/ckfree macros to greatly reduce number of explicit casts indkf2011-03-121-6/+5
| | | rest of Tcl source code. No ABI change. API change *should* be harmless.
* MINOR: Formatting fixes, mainly to comments, so code better fits the style indkf2011-03-101-24/+24
| | | the Engineering Manual.
* Now that we're no longer using SCM based on RCS, the RCS Keyword linesdgp2011-03-021-2/+0
| | | cause more harm than good. Purged them (except in zlib files).
* * generic/tclZlib.c (Tcl_ZlibStreamGet): [Bug 3081008]: Ensure thatdkf2010-10-191-4/+13
| | | | | | | | | | | | | | | when a bytearray gets its internals entangled with zlib for more than a passing moment, that bytearray will never be shimmered away. This increases the amount of copying but is simple to get right, which is a reasonable trade-off. * generic/tclStringObj.c (Tcl_AppendObjToObj): Added some special cases so that most of the time when you build up a bytearray by appending, it actually ends up being a bytearray rather than shimmering back and forth to string. * tests/http11.test (check_crc): Use a simpler way to express the functionality of this procedure.
* * generic/tclZlib.c: Purge code that wrote to the object returned bydkf2010-10-191-50/+55
| | | | Tcl_GetObjResult, as we don't want to do that anti-pattern no more.
* Remove hack needed for zlib 1.2.3 on win32nijtmans2010-06-211-103/+28
|
* [Bug 2979399] uninitialized value troublesnijtmans2010-03-301-28/+5
|
* Code Audit results:dkf2010-03-051-32/+33
| | | | | | | | * use do { ... } while (0) in macros * avoid shadowing one local variable with another * use clearer 'foo.bar++;' instead of '++foo.bar;' where result not required (i.e., semantically equivalent) * follow Engineering Manual rules on spacing and declarations
* More tidying up (whitespace, spelling, useless parentheses, useless casts)dkf2010-02-241-8/+11
|
* * generic/tclZlib.c (ZlibTransformInput): [Bug 2742041]: Added aandreas_kupries2010-02-221-3/+22
| | | | | | | | | hack to work around the general problem, early EOF recoginition based on the base-chgannel, instead of the data we have ready for reading in the transform. Long-term we need a proper general fix (likely tracking EOF on each level of the channel stack), with attendant complexity. Further: Z_BUF_ERROR can be ignored, and must be when feeding the zlib code with single characters.
* [Bug 2947783]: Ensure that result is an unshared object before appending to it.dkf2010-02-081-1/+19
|
* Eliminate various gcc warnings (in -Wextra mode)nijtmans2009-11-181-2/+4
|
* Remove accidental C99-ism which reportedly makes the AIX native compiler choke.dkf2009-10-291-19/+31
|
* ZlibTransformClose may be called with a NULL interpreter during finalization andpatthoyts2009-07-101-5/+13
| | | | | Tcl_SetChannelError requires a list. Added some tests to ensure error propagation from the zlib library to the interp.
* [Bug #2818131] Added tests and fixed a typo that broke zlib push for deflate ↵patthoyts2009-07-091-2/+2
| | | | format.
* Silence a signed/unsigned warning that annoys msvcpatthoyts2009-07-061-2/+2
|
* Make [zlib push] work with [fcopy].dkf2009-07-051-90/+145
|
* Related correctionsdkf2009-03-041-4/+4
|
* Fix bug 2662434dkf2009-03-041-3/+5
|
* fix [Feature Request 2605263] use officialnijtmans2009-02-161-30/+82
| | | | zlib build.
* Improve error messages. [Bug 2573172]dkf2009-02-071-181/+198
|
* Fix [Bug 2536400]dkf2009-01-261-5/+9
|
* Plug memory leak.dkf2008-12-281-3/+11
|
* Fix my silly blunders. [Bug 2470237]dkf2008-12-271-9/+7
|
* Assorted minor corrections to the Zlib C API to make it work with the PNGdkf2008-12-271-44/+41
| | | | implementation better.
* Silence signed unsigned warningpatthoyts2008-12-221-2/+2
|
* fix warningsdas2008-12-201-3/+3
|
* Compressing and decompressing channel transformation support.dkf2008-12-181-145/+321
| | | | Note that there may be "quality-of-implementation" issues left...
* Now with *nearly* working gzipping channels...dkf2008-12-181-91/+99
|
* move variable "length" inside if()nijtmans2008-12-171-2/+2
| | | | | don't use ckfree((void *)...) but ckfree((char *)...)
* Removed unused flag.dkf2008-12-171-104/+202
|
* Working towards zlib-based channel transformsdkf2008-12-151-177/+340
|
* fix warningsdas2008-12-141-6/+6
|
* Improve docs, start working towards implementing [zlib push]dkf2008-12-131-60/+109
|
* Many improvements to docsdkf2008-12-131-10/+117
|
* change PATH_MAX to MAXPATHLEN (msvc doesn't have PATH_MAX)nijtmans2008-12-121-5/+5
|
* Make a bad zlib install less fatal to rest of Tcl for now.dkf2008-12-121-1/+111
|
* Let code extract gzip headersdkf2008-12-121-454/+140
|
* Fix [Bug 2419061]dkf2008-12-121-622/+405
|
* Eliminate warning: different 'const' qualifiersnijtmans2008-12-111-10/+11
| | | | | with msvc compiler. A few more 'const' optimizations. fix Windows build (msvc) for TIP #234 implementation
* Factor out the code to turn zlib errors into Tcl errors.dkf2008-12-111-49/+57
|
* Fixed prototypesdkf2008-12-111-92/+172
|
* First hack at TIP#234dkf2008-12-111-0/+2567