summaryrefslogtreecommitdiffstats
path: root/generic/tclIO.c
Commit message (Collapse)AuthorAgeFilesLines
* More refactoring to reduce the choked-up complexity of tclZipfs.cdkf2021-03-151-1/+2
|
* Omit -Wdeclaration-after-statement from CFLAGS: No longer needed since we ↵jan.nijtmans2021-01-081-7/+7
| | | | | 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-2/+2
| | | | C sources can now use UTF-8, as far as gcc/clang/msvc support it. Not used yet
* Merge 8.6jan.nijtmans2020-10-231-2/+2
|\
| * Fix warning: /home/jboss/workspace/tcl8.7/generic/tclIO.c:9997:27: warning: ↵jan.nijtmans2020-10-231-2/+2
| | | | | | | | | | | | writing 1 byte into a region of size 0 [-Wstringop-overflow=] 9997 | RemovePoint(nextPtr)[0] = '\r'; | ^
* | Eliminate many usages of Tcl_NewObj (-> TclNewObj) and Tcl_NewIntObj (-> ↵jan.nijtmans2020-09-171-2/+2
| | | | | | | | TclNewIntObj or Tcl_NewWideIntObj)
* | Merge 8.6. Better solution for [e87000d842]jan.nijtmans2020-08-121-1/+1
|\ \ | |/
| * Fix [e87000d8425ab86a]: crash for "fconfigure stdout" in Win32.jan.nijtmans2020-08-121-1/+1
| | | | | | Even though the crash cannot happen in Tcl 8.6, the function Tcl_BadChannelOption() was to blame, so better fix that in 8.6 too.
* | Merge 8.6jan.nijtmans2020-08-111-2/+2
|\ \ | |/
| * Eliminate many unnecessary type-casts, mostly (size_t) when value is already ↵jan.nijtmans2020-08-111-3/+3
| | | | | | | | size_t or int
* | Prevent a binary read appending to a non-bytes value.dgp2020-04-011-1/+5
| |
* | merge 8.6dgp2020-04-011-0/+26
|\ \ | |/
| * fixes [f583715154] - tclUnixSock.c: introduced ThreadActionProc considering ↵sebres2020-03-311-0/+26
| | | | | | | | a transfer of async-connecting channel between threads; cherry-picked some prevention against invalid thread owner addressed in [815e246806]
* | TIP 569 - remove lint commentsdgp2020-03-171-4/+0
| |
* | moredgp2020-03-061-17/+13
| |
* | Merge 8.6jan.nijtmans2020-03-051-20/+15
|\ \ | |/
| * Move setting of interpreter error-message from tclUnixSock.c to tclIO.c, ↵jan.nijtmans2020-03-051-19/+14
| | | | | | | | | | since the same should be done for all channel types. (Thanks, Don, for noticing this!) Also, ENOTCONN for a half-close should not be fatal, just a EINVAL, when doing it as part of a full close. See: [65c9cd1534]
* | Merge 8.6jan.nijtmans2020-03-041-41/+47
|\ \ | |/
| * Implement WideSeekProc() for all channels which have a SeekProc(). Implement ↵jan.nijtmans2020-03-041-382/+464
| | | | | | | | | | 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-38/+92
|\ \
| * | Make Tcl_ChannelCloseProc() deprecated too. Implement close2Proc and ↵jan.nijtmans2020-01-311-28/+40
| | | | | | | | | | | | wideSeekProc for all internal channel types.
| * | Merge 8.7jan.nijtmans2020-01-301-55/+42
| |\ \
| * | | Deprecate channel types 1-4jan.nijtmans2020-01-291-51/+68
| | | |
* | | | Implement TIP #557: C++ support for Tcljan.nijtmans2020-02-281-31/+34
|\ \ \ \
| * \ \ \ Merge 8.7jan.nijtmans2020-02-261-1/+1
| |\ \ \ \ | |/ / / / |/| | | |
| * | | | Merge 8.7jan.nijtmans2020-02-131-71/+33
| |\ \ \ \ | | | |/ / | | |/| |
| * | | | Merge 8.7jan.nijtmans2019-12-131-2/+2
| |\ \ \ \
| | * | | | Little code tweaks, regarding the use of TCL_UTF_MAX or wchar_t.jan.nijtmans2019-12-121-2/+2
| | | | | |
| * | | | | Merge 8.7jan.nijtmans2019-10-061-1/+1
| |\ \ \ \ \ | | |/ / / /
| * | | | | Let's try a real C++ build with Travis on Linuxjan.nijtmans2019-08-301-1/+4
| |\ \ \ \ \
| * \ \ \ \ \ Merge tip-548jan.nijtmans2019-08-151-3/+3
| |\ \ \ \ \ \ | | |/ / / / /
| * | | | | | Merge 8.7, and continue implementation. Almost donejan.nijtmans2019-07-101-29/+29
| | | | | | |
* | | | | | | Merge 8.6jan.nijtmans2020-02-241-1/+1
|\ \ \ \ \ \ \ | |_|_|_|/ / / |/| | | | | / | | |_|_|_|/ | |/| | | |
| * | | | | Merge 8.5jan.nijtmans2020-02-241-1/+1
| |\ \ \ \ \
* | \ \ \ \ \ Merge 8.6jan.nijtmans2020-01-301-69/+31
|\ \ \ \ \ \ \ | |/ / / / / / | | | | | | / | |_|_|_|_|/ |/| | | | |
| * | | | | Simplify the use of HaveVersion() in Channel handling. Nothing functional, ↵jan.nijtmans2020-01-301-69/+31
| | | | | | | | | | | | | | | | | | | | | | | | only code clean-up.
* | | | | | Some code cleanup. Build with zlib dll on Win32 when using makefile.vc ↵jan.nijtmans2019-11-181-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | (shared-build only)
* | | | | | Merge 8.7. Unbreak travis build with TCL_UTF_MAX=3jan.nijtmans2019-11-171-3/+3
|\ \ \ \ \ \ | | |_|_|_|/ | |/| | | |
* | | | | | Merge 8.7jan.nijtmans2019-11-151-3/+3
|/ / / / /
* | | | | Merge 8.6jan.nijtmans2019-10-051-1/+1
|\ \ \ \ \ | |/ / / / | | | | / | |_|_|/ |/| | |
| * | | Change LSTATUS to LONG, since older SDK's don't know it. core.tcl.tk -> ↵jan.nijtmans2019-10-051-1/+1
| |\ \ \ | | |/ / | | | | | | | | core.tcl-lang.org and http -> https
* | | | Eliminate "register" keyword _everywhere_ in Tcl. This keyword is deprecated ↵jan.nijtmans2019-07-171-3/+3
| |_|/ |/| | | | | | | | in C++ (removed in C++17, even), and essentially does nothing with most modern compilers.
* | | Check for BG_FLUSH_SCHEDULED inside ChannelTimerProcpooryorick2019-05-011-2/+4
| | |
* | | Fix for de232b49f2, write-only nonblocking refchan and Tcl internal buffers.pooryorick2019-04-271-5/+33
| | |
* | | enlarge a few small buffers, which could overflow using Unicode characters > ↵jan.nijtmans2019-03-181-3/+3
| | | | | | | | | | | | /UFFFF. Eliminate some end-of-line spacing
* | | More use of (efficient) TclHasIntRep() macro. Also eliminate many (size_t) ↵jan.nijtmans2019-02-271-8/+8
| | | | | | | | | | | | and (unsigned) type-casts, which don't make sense any more.
* | | New internal macro TclFetchIntRep, which is faster than Tcl_FetchIntRep. jan.nijtmans2019-01-281-1/+1
| | | | | | | | | But ... don't use this function when the result is only compared to NULL: that's just overkill.
* | | merge 8.7dgp2018-10-181-17/+17
|\ \ \
| * | | Eliminate the use of macro's like LLONG_MAX|MIN, since they assume that ↵jan.nijtmans2018-09-131-17/+17
| | | | | | | | | | | | | | | | Tcl_WideInt equals "long long". Also eliminate uses of Tcl_WideAsLong() and friends, as - often - simple type cases make things more clear.
* | | | merge 8.7dgp2018-03-061-9/+13
|\ \ \ \ | |/ / /