summaryrefslogtreecommitdiffstats
path: root/generic
Commit message (Collapse)AuthorAgeFilesLines
* * generic/tclInterp.c: (AliasObjCmd): Added refCounting of the wordsdgp2003-05-121-2/+8
| | | | | * tests/interp.test (interp-33.1): of the target of an interp alias during its execution. Also added test. [Bug 730244].
* * generic/tclBasic.c (TclInvokeObjectCommand): objv[argc] is nodgp2003-05-121-4/+3
| | | | | | | longer set to NULL (Tcl_CreateObjCommand docs already say that it should not be accessed). * tests/cmdMZ.test: Forgot to import [temporaryDirectory].
* * generic/tclObj.c (tclCmdNameType): Corrected variable use of thedgp2003-05-121-7/+4
| | | | | otherValuePtr or the twoPtrValue.ptr1 fields to store a (ResolvedCmdName *) as the internal rep. [Bug 726018].
* * generic/tclVar.c (TclObjLookupVar): [Bug 735335] temporary fix,Miguel Sofer2003-05-121-1/+13
| | | | | disabling usage of tclNsVarNameType. * tests/var.test (var-15.1): test for [Bug 735335]
* * generic/tclCmdMZ.c (Tcl_StringObjCmd): prevent string repeathobbs2003-05-101-1/+10
| | | | crash when overflow sizes were given (throws error). [Bug #714106]
* fix bad cvs lf conversionJoe Mistachkin2003-05-101-951/+952
|
* fix for [Bug 731754]Joe Mistachkin2003-05-091-955/+951
|
* fixing previous patchMiguel Sofer2003-05-091-5/+5
|
* fix for [Bug 735055]Miguel Sofer2003-05-091-1/+3
|
* The array of strings passed to Tcl_GetIndexFromObj must be NULL terminated.dkf2003-05-091-2/+2
|
* stop compiler warnings about unused variablesdgp2003-05-081-3/+1
|
* Made error message for [trace info] more consistent with documentation.dkf2003-05-071-3/+25
|
* Fixed memory leak caused by confusion about string ownership. [Bug 731706]dkf2003-05-071-3/+5
|
* * generic/tclBasic.c: Implementation of TIP 90, whichdgp2003-05-058-114/+323
| | | | | | | | | | | | | | | | * generic/tclCmdAH.c: extends the [catch] and [return] * generic/tclCompCmds.c: commands to enable creation of a * generic/tclExecute.c: proc that is a replacement for * generic/tclInt.h: [return]. [Patch 531640] * generic/tclProc.c: * generic/tclResult.c: * tests/cmdAH.test: * tests/cmdMZ.test: * tests/error.test: * tests/proc-old.test: * library/tcltest/tcltest.tcl: The -returnCodes option to [test] failed to recognize the symbolic name "ok" for return code 0.
* Corrected error message for grammar and spelling.dkf2003-05-051-3/+3
|
* corrected comment about the default matching mode for [switch].dgp2003-05-011-3/+4
|
* suppress compiler warning about uninitialized variables.dgp2003-04-291-7/+4
|
* Stopped warning about uninitialised variables in DictIncrCmddkf2003-04-291-26/+21
| | | | Thanks to Andreas Kupries for reporting this.
* Made [incr] able to accept and work with wide increments [Bug 728838]dkf2003-04-288-299/+557
|
* Default mode of operation of [switch] is exact matching. [Bug 727563]dkf2003-04-281-2/+2
|
* * generic/tclBasic.c: Tcl_EvalObjv() failed to honor thedgp2003-04-251-4/+8
| | | | | | TCL_EVAL_GLOBAL flag when resolving command names. Tcl_EvalEx passed a string rep including leading whitespace and comments to TclEvalObjvInternal().
* fix to glob and filenames with square bracketsvincentdarley2003-04-251-3/+14
|
* * The changes below fix SF bugs [593810], and [718045].andreas_kupries2003-04-222-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclIO.c (Tcl_CutChannel, Tcl_SpliceChannel): Invoke TclpCutSockChannel and TclpSpliceSockChannel. * generic/tclInt.h: Declare TclpCutSockChannel and TclpSpliceSockChannel. * unix/tclUnixSock.c (TclpCutSockChannel, TclpSpliceSockChannel): Dummy functions, on unix the sockets are _not_ handled specially. * mac/tclMacSock.c (TclpCutSockChannel, TclpSpliceSockChannel): * win/tclWinSock.c (TclpCutSockChannel, TclpSpliceSockChannel): New functions to handle socket specific cut/splice operations: auto-initi of socket system for thread on splice, management of the module internal per-thread list of sockets, management of association of sockets with HWNDs for event notification. * win/tclWinSock.c (NewSocketInfo): Extended initialization assignments to cover all items of the structure. During debugging of the new code mentioned above I found that two fileds could contain bogus data. * win/tclWinFile.c: Added #undef HAVE_NO_FINDEX_ENUMS before definition because when compiling in debug mode the compiler complains about a redefinition, and this warning is also treated as an error.
* corrected bogus commentsdgp2003-04-181-7/+2
|
* * generic/tclExecute.c (ExprCallMathFunc): remove incorrecthobbs2003-04-181-2/+2
| | | | extraneous cast from Tcl_WideAsDouble.
* * generic/tcl.h Made changes so that the "wideInt" Tcl_ObjTypedgp2003-04-1611-285/+113
| | | | | | | | | | | | | | | | | | | | | | * generic/tclObj.c is defined on all platforms, even those where * generic/tclPort.h TCL_WIDE_INT_IS_LONG is defined. Also made the Tcl_Value struct have a wideValue field on all platforms. This is a ***POTENTIAL INCOMPATIBILITY*** for TCL_WIDE_INT_IS_LONG platforms because that struct changes size. This is the same TIP 72 incompatibility that was seen on other platforms at the 8.4.0 release, when this change should have happened as well. [Bug 713562] * generic/tclInt.h: New internal macros TclGetWide() and TclGetLongFromWide() to deal with both forms of the "wideInt" Tcl_ObjType, so that conditional TCL_WIDE_INT_IS_LONG code is confined to the header file. * generic/tclCmdAH.c: Replaced most coding that was conditional * generic/tclCmdIL.c: on TCL_WIDE_INT_IS_LONG with code that * generic/tclExecute.c: works across platforms, sometimes using * generic/tclTest.c: the new macros above to do it. * generic/tclUtil.c: * generic/tclVar.c:
* removed undesired 'static'vincentdarley2003-04-161-2/+2
|
* remove duplicate function definitionvincentdarley2003-04-151-121/+1
|
* Stopped compiler warnings about type casts.dgp2003-04-152-4/+4
|
* shared filesystem functionvincentdarley2003-04-143-13/+12
|
* Implemented TIP #124 (clock clicks -microseconds and Tcl_WideInt Kevin B Kenny2003-04-121-22/+26
| | | | | | return values). Fixed Bug 710310 (duplicate test numbers in clock.test). Made major changes to tclWinTime.c and related code to improve loop filter stability.
* * generic/tclCmdMZ.c (Tcl_StringObjCmd,STR_IS_INT): Correcteddgp2003-04-111-10/+8
| | | | | | | | inconsistent results of [string is integer] observed on systems where sizeof(long) != sizeof(int). [Bug 718878] * tests/string.test: Added tests for Bug 718878. * doc/string.n: Clarified that [string is integer] accepts 32-bit integers.
* * generic/tclIO.c (UpdateInterest): When dropping interest inandreas_kupries2003-04-111-1/+44
| | | | | | | TCL_READABLE now dropping interest in TCL_EXCEPTION too. This fixes a bug where Expect detects eof on a file prematurely on solaris 2.6 and higher. A much more complete explanation is in the code itself (40 lines of comments for a one-line change :)
* fix 5 small filesystem bugs, and some typosvincentdarley2003-04-115-2091/+2391
|
* Use correct test for the empty string in Tcl_ErrorObjCmddkf2003-04-081-2/+2
|
* * generic/tclCompCmds.c (TclCompileIfCmd): Corrected string limits ofdgp2003-04-071-4/+4
| | | | arguments interpolated in error messages. [Bug 711371]
* * generic/tclCmdMZ.c (TraceExecutionProc): Added missingdgp2003-04-071-2/+4
| | | | Tcl_DiscardResult() call to avoid memory leak.
* Yet more warning killing, this time reported by Miguel Sofer by private chat.dkf2003-04-071-1/+2
|
* Stopped compilers from moaning about switch fall-through. [Bug 716327]dkf2003-04-071-1/+5
|
* Fixed bugs 715751 and 713562 so dict code should build everywhere and wide intsdkf2003-04-072-26/+40
| | | | be defined (though not necessarily useful) everywhere.
* Converted new files from DOS line endings to usual line endings.dgp2003-04-051-2519/+2519
|
* Final stage of getting dictionaries into the core. Test suite should work now!dkf2003-04-054-43/+10
|
* Regen.dkf2003-04-052-2/+110
|
* Build support for dicts on Unix and Windows, plus public API (structuredkf2003-04-052-2/+58
| | | | declaration and stubs entries.)
* The bulk of the TIP#111 implementation. Still need to finish plumbing thisdkf2003-04-051-0/+2558
| | | | into the rest of the core, but that won't take long...
* * generic/tclCompCmds.c (TclCompileReturnCmd): Now that [return]dgp2003-04-031-9/+1
| | | | compiles to INST_RETURN, it is safe to compile even outside a proc.
* * generic/tclParse.c (TclSubstTokens): Moved declaration ofdgp2003-04-021-2/+2
| | | | | | utfCharBytes to beginning of procedure so that it does not go out of scope (get free()d) while append is still pointing to it. [Bugs 703167, 713754]
* * generic/tclExecute.c (INST_RETURN): Bytecompiled [return] faileddgp2003-04-011-1/+2
| | | | | | to reset iPtr->returnCode, causing tests parse-18.17 and parse-18.21 to fail strangely. * tests/parse.test (parse-18.21): Corrected now functioning test.
* * generic/tclVar.c:Miguel Sofer2003-03-241-18/+42
| | | | | * tests/var.test: fixing ObjMakeUpvar's lookup algorithm for the created local variable, bugs #631741 and #696893.
* * generic/tclInt.h (tclOriginalNotifier):dgp2003-03-212-2/+26
| | | | | | | | | | | | | | | * generic/tclStubInit.c (tclOriginalNotifier): * mac/tclMacNotify.c (Tcl_SetTimer,Tcl_WaitForEvent): * unix/tclUnixNotfy.c (Tcl_SetTimer,Tcl_WaitForEvent, Tcl_CreateFileHandler,Tcl_DeleteFileHandler): * win/tclWinNotify.c (Tcl_SetTimer,Tcl_WaitForEvent): Some linkers apparently use a different representation for a pointer to a function within the same compilation unit and a pointer to a function in a different compilation unit. This causes checks like those in the original notifier procedures to fall into infinite loops. The fix is to store pointers to the original notifier procedures in a struct defined in the same compilation unit as the stubs tables, and compare against those values. [Bug 707174]