summaryrefslogtreecommitdiffstats
path: root/generic/tclIOGT.c
Commit message (Collapse)AuthorAgeFilesLines
* merge 8.7dgp2020-03-171-2/+0
|\
| * TIP 569 - remove lint commentsdgp2020-03-171-2/+0
| |
* | Merge 8.7jan.nijtmans2020-02-281-94/+16
|\ \ | |/
| * Implement TIP #562: Deprecate channel types 1-4jan.nijtmans2020-02-281-21/+45
| |\
| | * 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-11/+17
| | |\
| | * | Deprecate channel types 1-4jan.nijtmans2020-01-291-21/+34
| | |/
* | | Merge 8.7jan.nijtmans2020-02-281-15/+15
|\ \ \ | |/ /
| * | Merge 8.7, and continue implementation. Almost donejan.nijtmans2019-07-101-15/+15
| |/
* | Merge 8.7jan.nijtmans2019-03-081-1/+1
|\ \ | |/
* | Another round of int -> size_t modifications, so strings > 2Gb are handled ↵jan.nijtmans2019-01-241-4/+4
| | | | | | | | correctly on 64-bit platforms.
* | merge trunkjan.nijtmans2018-09-131-7/+6
|\ \ | |/
| * Eliminate the use of macro's like LLONG_MAX|MIN, since they assume that ↵jan.nijtmans2018-09-131-7/+6
| | | | | | | | Tcl_WideInt equals "long long". Also eliminate uses of Tcl_WideAsLong() and friends, as - often - simple type cases make things more clear.
* | Change ckalloc and friends to Tcl_Alloc and friends. Add two defines, ↵jan.nijtmans2018-09-011-5/+5
|/ | | | TCL_IO_FAILURE and TCL_NO_LENGTH (experimental, still open to be renamed following discussion)
* More internal use of size_t in stead of int.jan.nijtmans2016-11-211-2/+2
|
* Revert some refcount changes on I/O structs.dgp2015-07-021-1/+1
| | | | | | | These are refcounts on structs, not Tcl_Obj's. Their scheme doesn't suffer the same difficulties and histories as Tcl_Obj's, and they need not copy every detail, appropriate or not, from Tcl_Obj refcount management. The "significant value" -- as dkf puts it -- for the struct refcounting scheme is 0 not 1.
* Another round of refCount consistancy improvements.jan.nijtmans2015-07-021-2/+2
|
* merge iogt fixes.dgp2014-11-061-4/+11
|\
| * fix failing testdgp2014-11-061-4/+11
| |
* | Same patch re-enabling read after EOF, but here applied to 8.6.dgp2014-11-031-8/+12
|\ \ | |/ | | Likely additional changes needed in the other channel transforms new in 8.6.
| * Work in progress restoring ability to [read] after [eof] and get non-emptydgp2014-10-281-8/+12
| | | | | | | | | | strings back in those cases where the channel has them to offer. Also working through all the implications of this possibility on Tcl's more exotic channel features, like stacking.
| * Simplify the inputProc of [testchannel transform].dgp2014-05-171-21/+18
| |
* | Simplify the inputProc of [testchannel transform].dgp2014-05-171-23/+18
| |
* | Merge 8.5. New test iogt-2.5 panics.dgp2014-05-061-2/+13
|\ \ | |/
| * Have to manage the lifetime of the self handle in testchannel transform.dgp2014-05-061-2/+13
| |
* | Merge the [testchannel transform] fixes.dgp2014-04-221-47/+75
|\ \ | |/
| * Add refcounting and preservation to [testchannel transform] to stop segfaultdgp2014-04-221-47/+75
| | | | | | in test iogt-2.4.
| * make some more internal tables constjan.nijtmans2012-04-231-1/+1
| |\
| | * make some more internal tables constjan.nijtmans2012-04-231-0/+1
| | | | | | | | | On cygwin, install dll's in /usr/bin, not in /usr/lib
* | | Eliminate some redundant Tcl_GetErrno() calls.jan.nijtmans2013-11-181-2/+3
| | |
* | | Final part of result generation conversion (modulo any minor blunders)dkf2012-08-051-2/+2
| | |
* | | Adjust ckalloc/ckfree macros to greatly reduce number of explicit casts indkf2011-03-121-6/+6
| | | | | | | | | rest of Tcl source code. No ABI change. API change *should* be harmless.
* | | 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).
| * | Now that we're no longer using SCM based on RCS, the RCS Keyword lines causedgp2011-03-021-2/+0
| |\ \ | | |/ | | | more harm than good. Purged them.
| | * Now that we're no longer using SCM based on RCS, the RCS Keyword lines causedgp2011-03-011-2/+0
| | | | | | | | | more harm than good. Purged them.
| | * * generic/tclIOGT.c (ExecuteCallback):hobbs2006-08-301-2/+2
| | | | | | | | | | | | | | | * generic/tclPkg.c (Tcl_PkgRequireEx): replace Tcl_GlobalEval(Obj) with more efficient Tcl_Eval(Obj)Ex
| | * * generic/tcl.h: Micro formatting fixes.andreas_kupries2004-09-101-2/+2
| | | | | | | | | | | | | | | * generic/tclIOGT.c: Channel version fixed, must be 3, to have wideseekProc. Thanks to David Graveraux <davygrvy@pobox.com>.
* | | * win/tclWinDde.c: VC++ 6.0 doesn't havenijtmans2010-01-101-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * win/tclWinReg.c PDWORD_PTR * win/tclWinThrd.c: Fix various minor gcc warnings. * win/tclWinTime.c * win/tclWinConsole.c Put channel type definitions * win/tclWinChan.c in static const memory * win/tclWinPipe.c * win/tclWinSerial.c * win/tclWinSock.c * generic/tclIOGT.c * generic/tclIORChan.c * generic/tclIORTrans.c * unix/tclUnixChan.c * unix/tclUnixPipe.c * unix/tclUnixSock.c * unix/configure (regenerated with autoconf 2.59) * tests/info.test: Make test independant from tcltest implementation.
* | | made variable Tcl_ChannelType *parentType in TransFormSeek(Wide)?Proc a ↵nijtmans2008-08-101-3/+3
|/ / | | | | | | | | | | | | const. This variable is only used in a Tcl_Channel(Wide)?SeekProc call, where it is handled as a const, so we might as well consider it a const a few lines earlier.
* | merge stable branch onto HEADdgp2007-12-131-1/+1
| |
* | Trim the fat from the sourcedkf2007-11-211-310/+280
| |
* | [Patch 1830038]: Increased usage of macros to detect and take advantage of ↵Miguel Sofer2007-11-111-2/+2
| | | | | | | | objTypes.
* | Eliminate use of (VOID*) casts when calling memset or memcpy.dkf2007-04-171-6/+5
| |
* | * generic/tclIOGT.c (ExecuteCallback):hobbs2006-08-301-2/+2
| | | | | | | | | | * generic/tclPkg.c (Tcl_PkgRequireEx): replace Tcl_GlobalEval(Obj) with more efficient Tcl_Eval(Obj)Ex
* | * doc/CrtChannel.3: Added TCL_CHANNEL_VERSION_5, made itandreas_kupries2006-03-271-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tcl.h: the version where the "truncateProc" * generic/tclIO.c: is defined at, and moved all channel * generic/tclIOGT.c: drivers of Tcl to v5. * generic/tclIORChan.c: * unix/tclUnixChan.c: * unix/tclUnixPipe.c: * win/tclWinChan.c: * win/tclWinConsole.c: * win/tclWinPipe.c: * win/tclWinSerial.c: * win/tclWinSock.c:
* | ANSIfy. Also converted some deeply nested code to a less nested form for ↵dkf2005-11-011-192/+167
| | | | | | | | easier reading.
* | Getting more systematic about styledkf2005-07-171-577/+576
| |
* | TIP #221 IMPLEMENTATIONdgp2004-11-131-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclBasic.c: Define [::tcl::Bgerror] in new interps. * generic/tclEvent.c: Update Tcl_BackgroundError to make use of the registered [interp bgerror] command. * generic/tclInterp.c: New [interp bgerror] subcommand. * tests/interp.test: syntax tests updated. TIP #226 IMPLEMENTATION * generic/tcl.decls: Stubs for Tcl_(Save|Restore|Discard)InterpState * generic/tcl.h: New public opaque type, Tcl_InterpState. * generic/tclInt.h: Drop old private declarations. Add Tcl(Get|Set)BgErrorHandler * generic/tclResult.c: Tcl_*InterpState implementations. * generic/tclDictObj.c: Update callers. * generic/tclIOGT.c: * generic/tclTrace.c: TIP #227 IMPLEMENTATION * generic/tcl.decls: Stubs for Tcl_(Get|Set)ReturnOptions. * generic/tclInt.h: Drop old private declarations. * generic/tclResult.c: Tcl_*ReturnOptions implementations. * generic/tclCmdAH.c: Update callers. * generic/tclMain.c:
* | * generic/tclInt.h (Tcl*InterpState): New internal routinesdgp2004-10-191-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclResult.c (Tcl*InterpState): TclSaveInterpState, TclRestoreInterpState, and TclDiscardInterpState are superior replacements for Tcl_(Save|Restore|Discard)Result. Intent is that these routines will be converted to public routines after TIP approval. * generic/tclBasic.c (TclEvalObjvInternal): * generic/tclDictObj.c (DictUpdateCmd, DictWithCmd): * generic/tclIOGT.c (ExecuteCallback): * generic/tclTrace.c (Trace*Proc,TclCheck*Traces,TclCallVarTraces): Callers of Tcl_*Result updated to call the new routines. The calls were relocated in several cases to perform save/restore operations only when needed. * generic/tclEvent.c (HandleBgErrors): * generic/tclFCmd.c (CopyRenameOneFile): Calls to Tcl_*Result that were eliminated because they appeared to serve no useful purpose, typically saving/restoring an error message, only to throw it away.
* | Braces round if bodies...dkf2004-10-061-5/+5
| |