summaryrefslogtreecommitdiffstats
path: root/generic/tclIO.c
Commit message (Collapse)AuthorAgeFilesLines
...
| | * | | | | | | | | | | | | Callers of TranslateInputEOL are expected to manage the INPUT_NEED_NL flag.dgp2014-02-181-0/+14
| | | | | | | | | | | | | | |
| | * | | | | | | | | | | | | Another coverage test that reveals refactoring error.dgp2014-02-181-1/+1
| | | | | | | | | | | | | | |
| | * | | | | | | | | | | | | coverage test for -translation crdgp2014-02-181-1/+0
| | | | | | | | | | | | | | |
| | * | | | | | | | | | | | | Refactor correction exposed by coverage test.dgp2014-02-181-1/+1
| | | | | | | | | | | | | | |
| | * | | | | | | | | | | | | Coverage test for -translation auto handling of INPUT_SAW_CR flag.dgp2014-02-181-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Demonstrates refactor failure.
| | * | | | | | | | | | | | | Refactor so that CopyAndTranslateBuffer() calls on TranslateInputEOL()dgp2014-02-111-2/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | instead of duplicating so much of its function. Note the testing gaps.
| | * | | | | | | | | | | | | Revised ReadChars to restore an attempt to make sure we do not short readdgp_may_be_pointlessdgp2014-02-061-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | because of a false notion of limited storage space. The test suite does not appear to demonstrate any case where this matters. Could be an incomplete test suite, or an example of pointless code.
| | * | | | | | | | | | | | | merge 8.5dgp2014-02-061-764/+170
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ | | | |/ / / / / / / / / / / /
| | * | | | | | | | | | | | | Revise the Tcl_Append* machinery to tolerate NULL bytes to append.dgp2014-01-271-52/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Then have ReadChars() use that machinery to resize buffer receiving input, rather than invent its own version. Simplify ReadChars() callers.
| | * | | | | | | | | | | | | merge 8.5dgp2014-01-241-10/+12
| | |\ \ \ \ \ \ \ \ \ \ \ \ \
| | * | | | | | | | | | | | | | There is no need for ReadBytes() or its caller(s) to track how many bytesdgp2014-01-211-29/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | are actually stored in objPtr. The ByteArray Tcl_ObjType already has the machinery to take care of this.
| | * | | | | | | | | | | | | | Backport of bytearray append machinery to support bug fixes in ReadBytes.dgp2014-01-211-13/+4
| | | | | | | | | | | | | | | |
* | | | | | | | | | | | | | | | Fix the panic in iogt-2.5.dgp2014-05-081-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Back in 2011, Bugs 3384654 and 3393276 first noticed troubles with ChannelBuffer sharing, but the magnitude of the problem wasn't truly grasped. A fix was applied that turned out to be more of a band-aid workaround. Now that the real fix is in place, the band-aid is actually preventing it working properly in thie case. Rip it off!
* | | | | | | | | | | | | | | | Revert the iogt-2.5 fix. For now one panic is better than widespreaddgp2014-05-081-4/+1
| |_|_|_|_|_|_|_|/ / / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | memory leaks.
* | | | | | | | | | | | | | | Merge 8.5.dgp2014-05-081-0/+5
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | |_|_|_|_|_|_|_|/ / / / / / | |/| | | | | | | | | | | | |
| * | | | | | | | | | | | | | Stop leak in iocmd-21.22.dgp2014-05-081-0/+1
| | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | Stop leak in io-53.5.dgp2014-05-071-0/+1
| | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | Stop memory leak in io-29.34dgp2014-05-061-0/+2
| | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | Stop memory leak in io-29.27.dgp2014-05-061-0/+1
| | |_|_|_|_|_|_|_|_|_|_|_|/ | |/| | | | | | | | | | | |
| * | | | | | | | | | | | | Backport "GotFlag" macro from Tcl 8.6. Makes code more readable. No change ↵jan.nijtmans2014-05-051-97/+89
| | |_|_|_|_|_|_|_|_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | in functionality.
| * | | | | | | | | | | | Backport channel self restacking support. (Test iogt-2.4).dgp2014-05-021-2/+59
| |\ \ \ \ \ \ \ \ \ \ \ \ | | | |_|_|_|_|_|_|/ / / / | | |/| | | | | | | | | / | | |_|_|_|_|_|_|_|_|_|/ | |/| | | | | | | | | |
* | | | | | | | | | | | Symptom relief. Make test stop panicking.dgp2014-05-061-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is not the proper final answer. ChannelBuffer management in FlushChannel is simply not robustly correct yet.
* | | | | | | | | | | | Add Panic call to better identify where iogt-2.5 goes wrong.dgp2014-05-061-0/+3
| |/ / / / / / / / / / |/| | | | | | | | | |
* | | | | | | | | | | Add some comments about possible other self-restacking troubles.dgp2014-05-021-1/+8
| | | | | | | | | | |
* | | | | | | | | | | Fully restore topChan resetting to accommodate self-restacking channels.dgp2014-05-021-17/+26
| | | | | | | | | | |
* | | | | | | | | | | Re-enable buffer recycling.dgp2014-05-021-1/+1
| | | | | | | | | | |
* | | | | | | | | | | Stop the segfault in iogt-2.4. First by changing the UpdateInterest()dgp2014-05-011-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | call that triggers it. "downChanPtr" may no longer be the right argument at that point. Second, after ending the segfault, the test became an infinite loop (nested unstacking?! whoa.), so revised the test to one that terminates (and passes). Left behind a comment that the recursive unstacking case may require more examination.
* | | | | | | | | | | merge trunkdgp2014-05-011-8/+27
|\ \ \ \ \ \ \ \ \ \ \ | | |_|_|_|_|_|_|/ / / | |/| | | | | | | | |
| * | | | | | | | | | Merge in the fixes for improper ChannelBuffer sharing via recycling.dgp2014-05-011-8/+27
| |\ \ \ \ \ \ \ \ \ \ | | |/ / / / / / / / /
| | * | | | | | | | | Stop the segfaults in [close] during [gets] tests.dgp2014-04-301-9/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Not sure this is the right behavior, but it's better than crashing.
| | * | | | | | | | | Panic message to pinpoint the cause of iocmd-21.23 segfault.dgp2014-04-301-0/+3
| | | | | | | | | | |
| | * | | | | | | | | Make sure no shared ChannelBuffers get recycled.dgp2014-04-291-0/+11
| | | | | | | | | | |
* | | | | | | | | | | merge trunkdgp2014-04-291-2/+4
|\ \ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / /
| * | | | | | | | | | Fix bug exposed when buffer recycling is disabled.dgp2014-04-291-2/+4
| |\ \ \ \ \ \ \ \ \ \ | | |/ / / / / / / / / | | | | | | | | / / / | | |_|_|_|_|_|/ / / | |/| | | | | | | |
| | * | | | | | | | Fix bug exposed when buffer recycling is disabled.dgp2014-04-291-2/+4
| | |\ \ \ \ \ \ \ \ | | | |_|_|_|_|_|_|/ | | |/| | | | | | |
| | | * | | | | | | Revise the logic for setting TCL_ENCODING_END in the outputEncodingFlagsdgp_no_buffer_recycledgp2014-04-291-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | so it does not rely on buffer recycling.
| | | * | | | | | | Disable buffer recycling to expose bugs for fixing.dgp2014-04-251-1/+1
| | |/ / / / / / /
* | | | | | | | | Disable buffer recycling, which creates mysteries.dgp2014-04-251-1/+1
| | | | | | | | |
* | | | | | | | | Test iortrans-4.8.2 demos an infinite loop. Possible trouble withdgp2014-04-251-0/+5
|/ / / / / / / / | | | | | | | | | | | | | | | | pushback buffers.
* | | | | | | | Merge refcounting machinery for ChannelBuffer.dgp2014-04-211-8/+42
|\ \ \ \ \ \ \ \ | |/ / / / / / / | | | | | | / / | |_|_|_|_|/ / |/| | | | | |
| * | | | | | Added a refcounting mechanism to ChannelBuffers. Other edits todgp2014-04-211-8/+42
| | |_|_|_|/ | |/| | | | | | | | | | stop segfaults in tests iocmd-21.2[12].
* | | | | | Fix for Bug [97069ea11a]: Set return message in close if a flush error is ↵oehhar2014-04-041-1/+11
|\ \ \ \ \ \ | |/ / / / / | | | | | | | | | | | | reported (which may be an error from a background flush)
| * | | | | Fix test failure socket-2.9: "1 {not owner}" instead of "1 {couldn't open ↵oehhar2014-04-011-9/+8
| | | | | | | | | | | | | | | | | | | | | | | | socket address already in use}" by only setting returned error message if not jet set.
| * | | | | Set return message in close if a flush error is reported (which may be an ↵oehhar2014-04-011-2/+13
| | | | | | | | | | | | | | | | | | | | | | | | error from a background flush). Ticket [97069ea11a]
* | | | | | Merge minimal fix for iocmd-23.11.dgp2014-03-281-10/+28
|\ \ \ \ \ \ | |/ / / / / | | / / / / | |/ / / / |/| | | | Note that top channel regeneration is removed, so that Preserve/Release call pairs are sure to operate on the same pointers. Other bug fixes may need to change that.
| * | | | Minimal patch to fix iocmd-23.11. Might not be the best fix, but is *a* fix.dgp2014-03-271-3/+20
| | |_|/ | |/| |
* | | | Simplify the core output operations of channels. Reduce duplicative and dead ↵dgp2014-02-041-590/+63
|\ \ \ \ | |/ / / | | | | | | | | code.
| * | | Simplify macro typecasting.dgp2014-01-311-6/+3
| | | |
| * | | The "channel" Tcl_ObjType is caching only. It never needs an UpdateString ↵dgp2014-01-311-46/+6
| | | | | | | | | | | | | | | | | | | | routine. It's also static to the tclIO.c file.
| * | | Do not call updateStringProc directly. We have TclGetString() for that.dgp2014-01-311-10/+1
| | | |