summaryrefslogtreecommitdiffstats
path: root/generic/tclIO.h
Commit message (Collapse)AuthorAgeFilesLines
* Move CHANNEL_*BUFFERED (internal) flags to higher bits: prevent any ↵jan.nijtmans2023-09-251-6/+8
| | | | possibility for conflicts with public flags TCL_ENCODING_STOPONERROR|TCL_ENCODING_NO_TERMINATE|TCL_ENCODING_CHAR_LIMIT
* Changed CHANNEL_PROFILE_* to ENCODING_PROFILE_* and moved out of tclIO.h. ↵apnadkarni2023-05-031-7/+0
| | | | | | | | | See below. For whatever reason, these macros were renamed and moved to tclIO.h post-660. This is inappropriate as those macros deal with *encoding* flags, not *channel* flags and have relevance outside of I/O making their renaming inappropriate. Further putting them in tclIO.h forces inclusion of that header in modules that do not otherwise need that header.
* Correct spelling errors in comments and documentation, but also a non-comment pooryorick2023-04-121-4/+4
| | | corrections in history.tcl and tcltest.test.
* Move (TCL_ENCODING_PROFILE_MASK|GET|SET) from tcl.h to tclIO.h, since those ↵jan.nijtmans2023-03-221-0/+7
| | | | are not public. Some formatting.
* Proposed fix for [154ed7ce56]: Tcl 9: [gets] on -strictencoding 1 configured ↵jan.nijtmans2023-03-201-2/+0
| | | | | channel. Extracted from TIP #657 branch (better keeping bug-fix separate from enhancements)
* Merge 8.7apnadkarni2023-03-161-0/+3
|\
| * Further fix for issue [ea69b0258a9833cb], crash when using a channel ↵pooryorick2023-03-151-0/+3
| | | | | | | | transformation on TCP client socket.
* | Merge 8.7apnadkarni2023-02-281-0/+2
|\ \ | |/
| * Put back testcase io-52.20, and re-fix [4a7397e0b3]jan.nijtmans2023-02-281-0/+2
| |
* | Eliminate TCL_ENCODING_{STRICT,NOCOMPLAIN}apnadkarni2023-02-111-6/+0
| |
* | Phase out (almost) STRICT and NOCOMPLAIN flags.apnadkarni2023-02-101-1/+2
|/
* New proposal: Allow "-strict" immediately before or after "-failindex var".jan.nijtmans2023-01-191-0/+1
|
* Merge 8.7jan.nijtmans2022-11-201-8/+8
|\
| * typedef Tcl_Size as int (which is the Tcl 8.7 part of TIP #628)jan.nijtmans2022-10-211-8/+8
| |
* | Making a start fixing [6978c01b65]: Channel encoding difference 8.6 <-> 9.0jan.nijtmans2022-10-111-0/+2
|/
* -nocomplainencoding and -strictencoding are incompatiblejan.nijtmans2022-10-081-0/+2
|
* Merge 8.7jan.nijtmans2022-09-261-0/+2
|\
| * Revive TIP #220 implementation: Escalate Privileges in VFS Close Callbackjan.nijtmans2022-09-071-0/+2
| |
* | Add -strictencoding option to channels. Thanks to Harald Oehlman for his ↵jan.nijtmans2022-09-221-1/+2
|/ | | | example (largely copied). No testcases yet
* Merge 8.6. Remove tests/safe-stock86.test for win builds too (GIT, what are ↵jan.nijtmans2020-09-111-1/+1
|\ | | | | | | you doing ...!)
| * Fix [https://core.tcl-lang.org/tk/tktview?name=3bc0f44ef3|3bc0f44ef3]: UBSan ↵jan.nijtmans2020-09-111-1/+1
| | | | | | | | | | complains about body.chars[] usage. (Yes, I know, this one is for Tk, but Tcl was using the same construct too ....)
* | Eliminate (internal) TclOffset() usage, just use offsetof() in stead.jan.nijtmans2019-06-121-1/+1
| |
* | Add entry for Tcl_StaticPackage in internal stub table, since the public one ↵jan.nijtmans2018-11-151-1/+1
| | | | | | | | | | is deprecated and will be removed in 9.0 Clean-up a lot of type-casts, which are not necessary any more.
* | More internal use of size_t in stead of int, e.g. for epoch'sjan.nijtmans2017-02-151-1/+1
|/
* [104f2885bb] Rework the "chan" Tcl_ObjType to properly validate cached ↵dgp2016-07-181-4/+2
|\ | | | | | | channel name lookups.
| * [104f2885bb] Rework the "chan" Tcl_ObjType to properly validate cacheddgp2016-07-181-4/+2
| | | | | | channel name lookups.
* | Align comment. Remove some end-of-line spacing. No functional changes.jan.nijtmans2015-09-281-1/+1
|\ \ | |/
| * align comment, no functional changejan.nijtmans2015-09-281-1/+1
| |
* | Member field which should not have been const, because it is dynamically ↵jan.nijtmans2015-06-231-1/+1
|\ \ | |/ | | | | allocated. Some end-of-line spacing in header files.
| * Member field which should not have been CONST, because it is dynamically ↵jan.nijtmans2015-06-231-1/+1
| | | | | | | | allocated
| * Backport the cheaper Preserve/Release on channels.dgp2014-08-011-0/+2
| |\ | |/ |/|
* | Reduce the cost of Preserve/Release on channelsdgp2014-07-301-0/+2
| |
* | Refinements of FlushChannel() and its callers. Notably includes removal of ↵dgp2014-05-291-5/+0
|\ \ | |/ | | | | the flag BUFFER_READY.
| * Further simplifications to FlushChannel(). This makes clear thedgp2014-05-281-5/+0
| | | | | | BUFFER_READY flag serves no necessary purpose, so it is removed.
| * merge 8.5dgp2014-04-211-0/+1
| |\
* | \ merge trunkdgp2014-04-211-0/+1
|\ \ \
| * \ \ Merge refcounting machinery for ChannelBuffer.dgp2014-04-211-0/+1
| |\ \ \ | | | |/ | | |/|
| | * | Added a refcounting mechanism to ChannelBuffers. Other edits todgp2014-04-211-0/+1
| | | | | | | | | | | | stop segfaults in tests iocmd-21.2[12].
* | | | Merge the checkins of the dgp-read-bytes branch onto the trunk, up todgp2014-03-231-26/+0
|\ \ \ \ | |/ / / |/| | / | | |/ | |/| | | | and including checkin a1e82fb63e . Do not merge checkin bae1c688f2 which starts to take the dgp-read-bytes branch into directions apparently unfriendly to stacked channels, which tests for [chan push] on the trunk help us to detect.
| * | Remove long dead "BAD_BLOCKING" support code so it no longer confusesdgp2014-03-171-23/+0
| | | | | | | | | people reading/editing this code.
| * | Remove old dead code; silence compiler warnings; tidy up.dgp2014-03-051-3/+0
| |/
* | Remove from tclIO.h structs used only in tclIO.c.dgp2013-02-261-108/+4
|\ \ | |/
| * structs *ChannelHandler* GetsState CopyState used only locally.dgp2013-02-261-108/+4
| |\ | | | | | | Remove from tclIO.h.
| | * structs ChannelHandler ChannelHandlerEvent GetsState CopyState used locally.dgp2013-02-261-83/+4
| | | | | | | | | Remove from tclIO.h.
| | * struct NextChannelHandler used only locally. Remove from tclIO.h.dgp2013-02-261-25/+0
| | |
* | | Repair linked list management in Tcl_DeleteCloseHandler().dgp2013-02-251-13/+4
|\ \ \ | |/ / | | | CloseCallback struct used only locally. Remove from tclIO.h.
| * | Repair linked list management in Tcl_DeleteCloseHandler().dgp2013-02-251-13/+4
| |\ \ | | |/ | | | CloseCallback struct used only locally. Remove from tclIO.h.
| | * Repair linked list management in Tcl_DeleteCloseHandler(). dgp2013-02-251-12/+4
| | | | | | | | | CloseCallback struct is used only locally. Remove from tclIO.h.
* | | Factor out constant that must be the same in multiple places. Prompted by adkf2012-05-251-0/+7
| | | | | | | | | conversation with Alexandre Ferrieux.
* | | 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).