summaryrefslogtreecommitdiffstats
path: root/generic/tclZlib.c
Commit message (Collapse)AuthorAgeFilesLines
* 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. FossilOrigin-Name: 5574bdd262b2672cde48771787370c12854cecf4
* MINOR: Formatting fixes, mainly to comments, so code better fits the style indkf2011-03-101-24/+24
| | | | | the Engineering Manual. FossilOrigin-Name: 5cb634a1c1fc60d754c5b98a3d8760b06f21e777
* 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). FossilOrigin-Name: c64f310d38b977e7ae26a48bcf8bb8c50e453af7
* * 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. FossilOrigin-Name: 885ee93472cc7073906419cbfe1cc989eac0e39c
* * 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. FossilOrigin-Name: e451f7d81075da71bfec8f1b5e66de50d335c471
* Remove hack needed for zlib 1.2.3 on win32nijtmans2010-06-211-103/+28
| | | FossilOrigin-Name: eb83f762ef5cae8fba7346547af046b2984e13fd
* [Bug 2979399] uninitialized value troublesnijtmans2010-03-301-28/+5
| | | FossilOrigin-Name: a7f4609167e5017da8f53234eb30095d02fd538c
* 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 FossilOrigin-Name: 4d8a4f639d28df5b5dfabd407be8efbb44454601
* More tidying up (whitespace, spelling, useless parentheses, useless casts)dkf2010-02-241-8/+11
| | | FossilOrigin-Name: 511d94dd873e4ace6252b896eeb821f03023f00f
* * 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. FossilOrigin-Name: e438b413a8e229fff483cc631d49d182bda5683e
* [Bug 2947783]: Ensure that result is an unshared object before appending to it.dkf2010-02-081-1/+19
| | | FossilOrigin-Name: 98913ba9aad3f9f6b3d81d82422b550e97b20a54
* Eliminate various gcc warnings (in -Wextra mode)nijtmans2009-11-181-2/+4
| | | FossilOrigin-Name: 8780faf488c79569934af0cd318800d73489137d
* Remove accidental C99-ism which reportedly makes the AIX native compiler choke.dkf2009-10-291-19/+31
| | | FossilOrigin-Name: a39af4be39fe42ec96ece5d431213dc8ac2e0439
* 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. FossilOrigin-Name: 13321da7b209d4a41c01fa2dcaf664bdc8dbb441
* [Bug #2818131] Added tests and fixed a typo that broke zlib push for deflate ↵patthoyts2009-07-091-2/+2
| | | | | format. FossilOrigin-Name: af721af1edc8a88e589984e0ca260e14028924a8
* Silence a signed/unsigned warning that annoys msvcpatthoyts2009-07-061-2/+2
| | | FossilOrigin-Name: 73b2dd28f26d28e86ba53ab640411fd2c921fc0a
* Make [zlib push] work with [fcopy].dkf2009-07-051-90/+145
| | | FossilOrigin-Name: 03d972d6d9c0fbe597a0e6d7b89a95d4931a5ff2
* Related correctionsdkf2009-03-041-4/+4
| | | FossilOrigin-Name: 2693844b2e76ae7759286546a13686561f4c0cc1
* Fix bug 2662434dkf2009-03-041-3/+5
| | | FossilOrigin-Name: 9b6e8a380e7a23ab7fd010ec7418940ea8206895
* fix [Feature Request 2605263] use officialnijtmans2009-02-161-30/+82
| | | | | | zlib build. FossilOrigin-Name: 8f34b18e0ca9febb906e4f9bf1750692c3c6e966
* Improve error messages. [Bug 2573172]dkf2009-02-071-181/+198
| | | FossilOrigin-Name: 63979525656cf8ee8925e31b150c8844462b2a46
* Fix [Bug 2536400]dkf2009-01-261-5/+9
| | | FossilOrigin-Name: 45b68fba260d9ecdfca27f2ad2dbf205681a71c4
* Plug memory leak.dkf2008-12-281-3/+11
| | | FossilOrigin-Name: a666bdae88e13b4ad6118c0663f78bf60a25be11
* Fix my silly blunders. [Bug 2470237]dkf2008-12-271-9/+7
| | | FossilOrigin-Name: 5ddf0f02bb23772d78652a4ce5e945ca23f4fc57
* Assorted minor corrections to the Zlib C API to make it work with the PNGdkf2008-12-271-44/+41
| | | | | | implementation better. FossilOrigin-Name: 723a16de608c37e4c62e49f521299789cec06491
* Silence signed unsigned warningpatthoyts2008-12-221-2/+2
| | | FossilOrigin-Name: 36e1f380bce2a6517635a0ebe9cbcfa0200011ed
* fix warningsdas2008-12-201-3/+3
| | | FossilOrigin-Name: 2b3316aba9faf1336f220cc9581446ac29d8224b
* Compressing and decompressing channel transformation support.dkf2008-12-181-145/+321
| | | | | | Note that there may be "quality-of-implementation" issues left... FossilOrigin-Name: 9e962b0a8f43b2e89eb8283c0c4f0cf7396499cc
* Now with *nearly* working gzipping channels...dkf2008-12-181-91/+99
| | | FossilOrigin-Name: 70cc20e8e5358d751525512bb1090f5addd34190
* move variable "length" inside if()nijtmans2008-12-171-2/+2
| | | | | | | don't use ckfree((void *)...) but ckfree((char *)...) FossilOrigin-Name: 0a08bcb02de15a8c2f35c3659c98e4f85bfb621b
* Removed unused flag.dkf2008-12-171-104/+202
| | | FossilOrigin-Name: 0dd4a2524d33a8998c5ac74df2c74f7744a3bea8
* Working towards zlib-based channel transformsdkf2008-12-151-177/+340
| | | FossilOrigin-Name: 0eb0bc66c472ced9125e45af98f3b1100c2ddda7
* fix warningsdas2008-12-141-6/+6
| | | FossilOrigin-Name: 230b6aa75f8bd42361d9d11b0337bc10b9e60764
* Improve docs, start working towards implementing [zlib push]dkf2008-12-131-60/+109
| | | FossilOrigin-Name: 30744092cf5c5552b525b5f68dba49755cf43cbc
* Many improvements to docsdkf2008-12-131-10/+117
| | | FossilOrigin-Name: e71a39bcd47d3ee52fa095498792eb58078f2cc0
* change PATH_MAX to MAXPATHLEN (msvc doesn't have PATH_MAX)nijtmans2008-12-121-5/+5
| | | FossilOrigin-Name: ec83cf1a3230f3f7d446a2d24faffb41c100532f
* Make a bad zlib install less fatal to rest of Tcl for now.dkf2008-12-121-1/+111
| | | FossilOrigin-Name: 727529ef0e69a5c84e0e16ff2762e3d255ab6fca
* Let code extract gzip headersdkf2008-12-121-454/+140
| | | FossilOrigin-Name: b0c7b90bc3cbcbc223d08556f83e707a70440810
* Fix [Bug 2419061]dkf2008-12-121-622/+405
| | | FossilOrigin-Name: aa16bed9aa949f92958e2050614b55ca66590b59
* 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 FossilOrigin-Name: 2c2dca1f776109693468ca2ffc3ed5428480a643
* Factor out the code to turn zlib errors into Tcl errors.dkf2008-12-111-49/+57
| | | FossilOrigin-Name: 76dfa9d80da4e9202839c6c79fa41b60a5a35b7b
* Fixed prototypesdkf2008-12-111-92/+172
| | | FossilOrigin-Name: aa4617ad55326cf4273ec9727217d2f2f22e5a76
* First hack at TIP#234dkf2008-12-111-0/+2567
FossilOrigin-Name: b84ee14c8c7da55c8c050da775ecf656915451fd