summaryrefslogtreecommitdiffstats
path: root/generic/tclIO.c
Commit message (Collapse)AuthorAgeFilesLines
...
| | * | | | | | | | | | | | | Adapt CopyAndTranslateBuffer() to changes in TranslateInputEOL().dgp2014-03-051-40/+77
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Notably no longer using the INPUT_NEED_NL flag.
| | * | | | | | | | | | | | | Merge repair to correct failing tests.dgp2014-03-051-2/+2
| | | |_|_|_|_|_|_|_|_|_|_|/ | | |/| | | | | | | | | | |
| | * | | | | | | | | | | | Fixups make the test suite almost pass (except *io-39.17)dgp2014-03-011-7/+6
| | | | | | | | | | | | | |
| | * | | | | | | | | | | | Bring over the ReadChars rewrite for integration into the other I/O work.dgp2014-02-281-2/+273
| | |\ \ \ \ \ \ \ \ \ \ \ \
| | | * | | | | | | | | | | | tidy up.dgp_read_charsdgp2014-02-281-4/+2
| | | | | | | | | | | | | | |
| | | * | | | | | | | | | | | More ReadChars rewriting. Test suite now passes.dgp2014-02-281-21/+173
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Note that this reform simplifies ReadChars a fair bit (at least in my eyes). Also it does away with the use of an INPUT_NEED_NL flag, using the same strategy for partial \r\n sequences as is used for incomplete multibyte chars.
| | | * | | | | | | | | | | | Work in progress attempting a ReadChars rewrite.dgp2014-02-271-1/+119
| | | | | | | | | | | | | | |
| | * | | | | | | | | | | | | remove commentdgp2014-02-271-1/+1
| | | | | | | | | | | | | | |
| | * | | | | | | | | | | | | More coverage tests and bug fixes.dgp2014-02-261-2/+1
| | | | | | | | | | | | | | |
| | * | | | | | | | | | | | | Reduce ReadBytes to simplest expression.dgp2014-02-241-23/+5
| | | | | | | | | | | | | | |
| | * | | | | | | | | | | | | simplification trimsdgp2014-02-241-30/+4
| | | | | | | | | | | | | | |
| | * | | | | | | | | | | | | Merge the stricter binary mode experiment.dgp2014-02-241-6/+18
| | |\ \ \ \ \ \ \ \ \ \ \ \ \
| | | * | | | | | | | | | | | | Simplify ReadBytes based on new constraints.dgp_experimentdgp2014-02-211-0/+5
| | | | | | | | | | | | | | | |
| | | * | | | | | | | | | | | | fix type errordgp2014-02-211-1/+1
| | | | | | | | | | | | | | | |
| | | * | | | | | | | | | | | | Switch consistently on the narrower def of binary mode.dgp2014-02-201-5/+9
| | | | | | | | | | | | | | | |
| | | * | | | | | | | | | | | | Can we send some binary reads down the char-reading path?dgp2014-02-201-5/+8
| | | |/ / / / / / / / / / / /
| | * | | | | | | | | | | | | Refactoring repair to fix failing test.dgp2014-02-201-15/+37
| | | | | | | | | | | | | | |
| | * | | | | | | | | | | | | Next coverage test to expose another refactoring error.dgp2014-02-191-1/+0
| | | | | | | | | | | | | | |
| | * | | | | | | | | | | | | Shortcut ReadBytes() when it's a no-op.dgp2014-02-191-1/+4
| | | | | | | | | | | | | | |
| | * | | | | | | | | | | | | 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
| | | | | | | | | | |