summaryrefslogtreecommitdiffstats
path: root/generic/tclIORChan.c
Commit message (Collapse)AuthorAgeFilesLines
* Use Tcl_NewWideIntObj() for values that might be bigger than 32-bitjan.nijtmans2022-02-101-2/+2
|
* Merge 8.6jan.nijtmans2022-02-101-5/+5
|\
| * Use TclListObjLength/TclListObjGetElements in stead of ↵jan.nijtmans2022-02-101-5/+5
| | | | | | | | Tcl_ListObjLength/Tcl_ListObjGetElements everywhere. This is slightly more efficient if the refered list already has the correct type
* | Merge 8.6jan.nijtmans2022-01-121-35/+35
|\ \ | |/
| * Fix [da6f155ca4]: STRING_SIZE() macro: parenthesize numChars usage. Fix more ↵jan.nijtmans2022-01-121-1/+1
| | | | | | | | macro's like this.
* | Make everything compile warning-free when TCL_THREADS=0jan.nijtmans2021-08-231-0/+2
|\ \ | |/
| * Remove incorrect/useless commentjan.nijtmans2021-03-181-2/+1
| |
* | TCL_THREADS=0 means no threads toojan.nijtmans2021-06-291-1/+1
| |
* | Re-apply fix for [67a5eabbd3d1]: refchan, coroutine, and postevent from the ↵pooryorick2021-06-161-6/+60
| | | | | | | | "watch" proc
* | Fix [18f4a94d03] by backout out [9bcec7cd880540c3]jan.nijtmans2021-06-151-60/+6
| |
* | Fix for io-28.6.pooryorick2021-04-261-4/+4
| |
* | Proposed implementation of RFE [4b4830eb54]jan.nijtmans2021-03-181-5/+98
| |
* | Omit -Wdeclaration-after-statement from CFLAGS: No longer needed since we ↵jan.nijtmans2021-01-081-4/+4
| | | | | | | | | | stopped support for MSVC 6++ Change Tcl_WideInt -> long long in various places: Tcl_WideInt could be a 128-bit type, we don't want that everywhere.
* | Add -finput-charset=UTF-8 and -fextended-identifiers to gcc (and clang). All ↵jan.nijtmans2020-12-081-1/+1
| | | | | | | | C sources can now use UTF-8, as far as gcc/clang/msvc support it. Not used yet
* | Fix MSVC++ 6.0 buildjan.nijtmans2020-10-141-6/+7
| |
* | Merge 8.6jan.nijtmans2020-10-131-3/+5
|\ \ | |/
| * More usage of TclNewObj() in stead of Tcl_NewObj() and TclNewIntObj() in ↵jan.nijtmans2020-10-131-4/+6
| | | | | | | | stead of Tcl_NewIntObj()
* | More usage of TclNewIntObj() macrojan.nijtmans2020-08-131-3/+5
| |
* | More unused arguments through the IO code.dgp2020-03-061-15/+8
| |
* | Merge 8.6jan.nijtmans2020-03-041-9/+9
|\ \ | |/
| * Implement WideSeekProc() for all channels which have a SeekProc(). Implement ↵jan.nijtmans2020-03-041-57/+93
| | | | | | | | | | Close2Proc() for all channels, as minimal wrapper around CloseProc(). Backported (with comments) and adapted from core-8-branch.
* | Implement TIP #562: Deprecate channel types 1-4jan.nijtmans2020-02-281-5/+20
|\ \
| * | Make Tcl_ChannelCloseProc() deprecated too. Implement close2Proc and ↵jan.nijtmans2020-01-311-4/+9
| | | | | | | | | | | | wideSeekProc for all internal channel types.
| * | Merge 8.7jan.nijtmans2020-01-301-1/+9
| |\ \
| * | | Deprecate channel types 1-4jan.nijtmans2020-01-291-0/+2
| |/ /
* | | Let's try a real C++ build with Travis on Linuxjan.nijtmans2019-08-301-3/+8
|\ \ \ | |/ /
* | | Merge tip-548jan.nijtmans2019-08-151-1/+1
|\ \ \ | |/ /
| * | Eliminate "register" keyword _everywhere_ in Tcl. This keyword is deprecated ↵jan.nijtmans2019-07-171-1/+1
| | | | | | | | | | | | in C++ (removed in C++17, even), and essentially does nothing with most modern compilers.
* | | Merge 8.7, and continue implementation. Almost donejan.nijtmans2019-07-101-33/+33
|/ /
* | Make more clear that TCL_INDEX_END|TCL_INDEX_NONE not necessary are int's ↵jan.nijtmans2019-05-081-4/+4
| | | | | | | | | | (in Tcl 9 they are not). Eliminate use of (local) list_index_t type
* | Add missed timer cleanup in tclIORChan.c/ReflectClose.pooryorick2019-04-241-0/+6
| |
* | Ensure that Tcl_CreateTimerHandler is not called if there is an existing timerpooryorick2019-04-231-2/+6
| | | | | | already scheduled.
* | Fix for [67a5eabbd3d1], refchan, coroutine, and postevent from the "watch"pooryorick2019-04-231-6/+50
| | | | | | proc.
* | More use of (efficient) TclHasIntRep() macro. Also eliminate many (size_t) ↵jan.nijtmans2019-02-271-3/+3
| | | | | | | | and (unsigned) type-casts, which don't make sense any more.
* | Eliminate the use of macro's like LLONG_MAX|MIN, since they assume that ↵jan.nijtmans2018-09-131-3/+3
| | | | | | | | Tcl_WideInt equals "long long". Also eliminate uses of Tcl_WideAsLong() and friends, as - often - simple type cases make things more clear.
* | Simplify usage of TCL_THREAD, along the lines of ↵jan.nijtmans2018-05-221-24/+24
| | | | | | | | [eeddb0693a950be980a66de3811630a00c7bab54|eeddb0693a]. Suggested by DKF
* | TIP #491 implementation: Threading Support: phasing out non-threaded buildsjan.nijtmans2018-05-171-24/+24
| |
* | merge 8.6dgp2017-08-101-0/+4
|\ \ | |/
| * Silence compiler warning in --disable-threads builddgp2017-08-101-0/+4
| |
* | Remove some unnecessary "struct" definitions and some type casts no longer ↵jan.nijtmans2017-04-111-7/+7
| | | | | | | | necessary. No functional changes.
* | More minor style fixes.dkf2017-04-101-20/+37
| |
* | Use more "size_t" in stead of "int" internall. Also eliminate a lot of ↵jan.nijtmans2016-11-161-9/+9
| | | | | | | | type-casts which are not necessary any more.
* | Micro-optimization: Use TclGetStringFromObj in stead of Tcl_GetStringFromObj ↵jan.nijtmans2016-07-081-4/+4
|/ | | | in many places where possible.
* [bbc304f61a] Avoid event handling when reflected channel has a watchdgp2016-03-081-2/+2
|\ | | | | | | | | change half-completed. (First half in 1 thread, second in another). When this is allowed to happen, false alarm errors from [chan postevent] are the result when timing is unlucky. See test iocmd.tf-24.17.bug3522560 .
| * [bbc304f61a] Proposed fix for reflected watch race condition.dgp2016-03-021-1/+3
|/
* Backout failed attempt to fix [32ae34e63a].dgp2015-09-251-0/+8
|\
* \ [32ae34e63a] Prevent segfaults and data corruption when CopyData() is called ↵dgp2015-09-231-8/+0
|\ \ | |/ | | | | | | recursively. Mark new test io-53.20 as "knownBug". It demos some unknown flaw in MoveBytes().
| * Protect CopyState buffer from conflicting uses when CopyData() is calleddgp2015-09-231-8/+0
| | | | | | recursively. Also, have ReflectWatch() always give driver a chance to act.
| * Backport the cheaper Preserve/Release on channels.dgp2014-08-011-2/+2
| |\ | |/ |/|
* | Reduce the cost of Preserve/Release on channelsdgp2014-07-301-2/+2
| |