summaryrefslogtreecommitdiffstats
path: root/generic
Commit message (Collapse)AuthorAgeFilesLines
* * The changes below fix [Bug #462317] where Expect tried to readandreas_kupries2001-09-272-17/+54
| | | | | | | | | | | | | | | | | | | | | | | more than was in the buffers and then blocked in the OS call as its pty channel driver provides no blockmodeproc through which the OS could be notified of blocking-behaviour. Because of this the general I/O core has to take more care than usual to preserve the semantics of non-blocking channels. * generic/tclIO.c (Tcl_ReadRaw): Do not read from the driver if the channel is non-blocking and the fileevent causing the read was generated by a timer. We do not know if there is data available from the OS. Instead of going to the OS for more and potentially blocking we simply signal EWOULDBLOCK to the higher levels to cause the system to wait for true fileevents. (GetInput): Same as before. (ChannelTimerProc): Added set and clear of CHANNEL_TIMER_FEV. * generic/tclIO.h (CHANNEL_TIMER_FEV): New flag for channels. Is set if a fileevent was generated by a timer, the channel is not blocking and the driver did not provide a blockmodeproc. In that case the I/O core has to be especially careful about going to the driver for more data.
* * Vince Darley reports the 2001-09-24 TIP 27 changes left the windgp2001-09-273-7/+7
| | | | directory CONST poisoned. These changes should fix that.
* * Updated APIs in generic/tclGet.cdgp2001-09-256-26/+26
| | | | according to the guidelines of TIP 27. [Patch 464674]
* * generic/tclVar.c: removed comments referring to unused flag TCL_PARSE_PART1.Miguel Sofer2001-09-251-6/+4
|
* * Updated APIs indgp2001-09-248-46/+50
| | | | | generic/tclUtil.c according to the guidelines of TIP 27. [Patch 464553]
* * The change below fixes [Bug #464380]. The bug was reported byandreas_kupries2001-09-241-10/+11
| | | | | | | | | | Ronnie Brunner <rbrunner@users.sourceforge.net>. He also provided the patch. * generic/tclEvent.c (Tcl_Finalize): Moved release of 'tclLibraryPath' to Tcl_FinalizeThread. (Tcl_FinalizeThread): See above, new place for release of 'tclLibraryPath'.
* * generic/tclExecute.c (TclExecuteByteCode): correctedhobbs2001-09-211-1/+6
| | | | | INST_STR_CMP else case for strings to pass true utf char length to Tcl_UtfNCmp.
* * generic/tclCmdAH.c (Tcl_FormatObjCmd):hobbs2001-09-202-11/+25
| | | | | * generic/tclScan.c (Tcl_ScanObjCmd): corrected handling of format and scan on 64-bit machines. [Bug #412696] (rmax)
* * generic/tclTest.c (TestcmdtokenCmd): corrected pointerhobbs2001-09-201-6/+6
| | | | storage/retrieval for 64bit machines.
* * generic/tclExecute.c (TclExecuteByteCode): fixed invalid usagehobbs2001-09-191-30/+39
| | | | | | of valuePtr in TRACE_WITH_OBJ in INST_EVAL_STK case. [Bug #462594] Changed INST_STR_CMP instruction to promote to Unicode strings only when one of the strings is already of Unicode type.
* * generic/tclExecute.c (TclExecuteByteCode):hobbs2001-09-191-3/+3
| | | | | | | | * generic/tclCompile.c (instructionTable): * generic/tclCompCmds.c (TclCompileStringCmd): INST_STR_MATCH - Updated to Int1 instruction type and added special case to use INST_STR_EQ instead when no glob chars are specified in a static string.
* * generic/tclCompCmds.c (TclCompileStringCmd): INST_STR_MATCH -hobbs2001-09-191-15/+75
| | | | | | | | | | | Updated to Int1 instruction type and added special case to use INST_STR_EQ instead when no glob chars are specified in a static string. * tests/{for.test,foreach.test,if.test,while.test}: * generic/tclCompCmds.c (TclCompileForCmd, TclCompileForeachCmd, TclCompileIfCmd, TclCompileWhileCmd): Corrected the overaggressive compiling of loop bodies enclosed in ""s. [Bug #219166] (msofer)
* insured that execution stack errors are also detected at abnormal returns.Miguel Sofer2001-09-191-12/+11
|
* TclNeedSpace is now UTF8-aware. (Bug #411825 from <arobert3434@users.sf.net>)dkf2001-09-191-6/+13
|
* * generic/tclIOCmd.c (Tcl_PutsObjCmd): Rewritten to have saner andandreas_kupries2001-09-191-31/+48
| | | | | faster argument handling. Fixes bug #123552. Patch provided by Donal K. Fellows <fellowsd@cs.man.ac.uk>: #402564.
* * generic/tcl.h: removed forced #define USE_TCLALLOC 1 forhobbs2001-09-171-9/+1
| | | | | | Windows. This means the native system allocator will be used by default. This should be binary and source compatible with extensions, as Tcl_Alloc is a properly stubbed function.
* corrected small bug in [Patch 456668] - the varFramePtr was not restored in ↵Miguel Sofer2001-09-171-1/+2
| | | | one possible exit.
* Disabled all compile and execution tracing functionality in standardMiguel Sofer2001-09-174-19/+27
| | | | builds [Bug 451858].
* * generic/tclCmdMZ.c (Tcl_RegsubObjCmd): had to adjust fix fromhobbs2001-09-131-15/+27
| | | | | | 2001-08-06 to actually duplicate the objects in certain cases. This is really a place where feather would have been essential. [Bug #461322]
* * generic/tclUtf.c (Tcl_UtfPrev): corrected to return the properhobbs2001-09-131-5/+3
| | | | | location when the middle of a UTF-8 byte was passed in. [Bug #450504]
* Patch for [TIP 56], [Bug: 219384] and [Bug: 455151]: deprecate the useMiguel Sofer2001-09-135-52/+117
| | | | of Tcl_EvalTokens, replaced by the new Tcl_EvalTokensStandard.
* reserved a stub slot for [TIP 56]Miguel Sofer2001-09-121-3/+7
|
* * generic/tclEvent.c (TclInExit): Corrected handling of tsd inhobbs2001-09-111-3/+7
| | | | late stages of finalization. [Bug #419449] (darley)
* * tests/stack.test:hobbs2001-09-111-4/+17
| | | | | * generic/tclInterp.c (AliasObjCmd): Check the numLevels to ensure that we aren't hitting some alias loop condition. [Bug #443184]
* * Removeddgp2001-09-101-3/+5
| | | | | vestiges of Tcl's old initialization from registry variables. [Bug 455645]
* * generic/tclInt.decls: Also added 'TclWinFlushDirtyChannels' toandreas_kupries2001-09-103-3/+17
| | | | | | | | | | | the internal platform specific stub table. * win/tclWinFile.c (TclpObjStat): Now added the call to 'TclWinFlushDirtyChannels' to this function. I don't know where my head was last thursday (2001-09-06), but the call was actually added to 'TclpObjChdir', i.e. the implementation of [cd]. Corrected this now. Thanks to Vince Darley for spotting this.
* Bytecompiling noops [FQ #451441]Miguel Sofer2001-09-101-1/+105
|
* * generic/tcl.h:davygrvy2001-09-092-4/+4
| | | | | | * generic/tclPlatDecls.h: Reminder from David Cuthbert <dacut@kanga.org> that I hadn't finished the Borland compatibility stuff. [Patch: 436116]
* channel-copy-fixvincentdarley2001-09-083-21/+23
|
* fsvincentdarley2001-09-065-28/+93
|
* * generic/tclAlloc.c: Small Borland compatibility fix.davygrvy2001-09-061-2/+2
|
* Changes due to TIP#49 "Tcl_OutputBuffered" from Rolf Schroedterdkf2001-09-064-50/+64
|
* * generic/tclPlatDecls.h: Another small trim finalizing Borland support.davygrvy2001-09-061-13/+13
|
* * generic/tclPlatDecls.h: Another small trim finalizing Borland support.davygrvy2001-09-061-13/+14
|
* * generic/tcl.h: Removed a small mistake from before. Changes todavygrvy2001-09-051-11/+11
| | | | | | | | | | | | | the EXTERN macro for proper Borland compatibility will have to see a TIP. What's this with the MS compiler: __declspec(dllexport) int func (int a, int b); will have to be this with Borland: int __cdecl __export func (int a, int b); The order of the attribute needs to be after the return type.
* * generic/tcl.h:davygrvy2001-09-051-3/+7
| | | | | | * generic/tclPlatDecls.h: Borland compatibility change so ClientData was properly typed as a void* and TCHAR would not be defined twice.
* * generic/tcl.h: Borland compatibility change so ClientData wasdavygrvy2001-09-051-2/+2
| | | | properly typed as a void*
* made [proc] check that formal args have simple names [Bug: 458548]Miguel Sofer2001-09-041-1/+9
|
* minor fs, vfs fixesvincentdarley2001-09-0410-252/+520
|
* fixed incorrect opreands for INST_LIST [Bug: 458241]Miguel Sofer2001-09-041-2/+2
|
* * generic/tclExecute.c (TclExecuteByteCode): fixed missing commahobbs2001-09-031-2/+2
| | | | in debug macro.
* * generic/tcl.h: added TclCompileListCmd headerhobbs2001-09-014-7/+109
| | | | | | | | * generic/tclBasic.c: added TclCompileListCmd compile proc * generic/tclCompCmds.c (TclCompileListCmd): function to compile the 'list' command at parse time. * generic/tclExecute.c (TclExecuteByteCode): definition of INST_LIST bytecode.
* * tests/compile.test: added compile-11.* interp result checkshobbs2001-08-311-1/+6
| | | | | | | | | * generic/tclUtil.c (TclGetIntForIndex): added Tcl_ResetResult before Tcl_AppendStringsToObj to prevent shared object crash when called from bcc instruction. The Tcl_Append* calls that append to the result object that are invoked by bcc insts must remember to call Tcl_ResetResult because the bcc doesn't do this for us. [Bug #456892]
* * generic/tclIndexObj.c: fixed some casting problems that upsethobbs2001-08-301-5/+5
| | | | Crays. [Bug #419528] (andreasen)
* * Silence warning from Sun compiler. [Bug 454374]dgp2001-08-301-2/+2
|
* allow cached fully-qualified command names to be usable from differentMiguel Sofer2001-08-301-1/+19
| | | | namespaces within the same interpreter without forcing a new lookup. This speeds up scripts that pass command names in variables ("this" in some OO packages). [Patch 456668].
* filesystemvincentdarley2001-08-3010-557/+287
|
* * generic/tclAsync.c:davygrvy2001-08-303-5/+32
| | | | | | | | | | | | | * generic/tclEvent.c: * generic/tclInt.h: Improper cleanup of asyncMutex in tclAsync.c repaired. TclFinalizeSynchronization() was trying to remove a registered mutex that was dumped earlier when the TSD it was stored in was cleared. This was only surfacing on *nix. Windows was being masked by mutexes not actually being returned to the system! That was repaired in a previous patch. Needed to add a private TclFinalizeAsync() to tclAsync.c and called from Tcl_FinalizeThread(). Pheww.. Is this done yet? [Bug: 414419] requested by Rob Ratcliff <rrr6399@futuretek.com>
* * generic/tclCompCmds.c (TclPushVarName): noted 'static' defn.hobbs2001-08-281-2/+2
| | | | [Bug #453872]
* * tests/stringComp.test: added string-1.3hobbs2001-08-251-2/+3
| | | | | | | * generic/tclCompCmds.c (TclCompileStringCmd): changed to return TCL_OUT_LINE_COMPILE instead of TCL_ERROR when compiling and an unknown string method is called. This is necessary as the string command may be never called, or not until 'string' is redefined.