summaryrefslogtreecommitdiffstats
path: root/generic
Commit message (Collapse)AuthorAgeFilesLines
* lint init regexphobbs2003-02-111-2/+2
|
* * tests/lsearch.test:hobbs2003-02-111-2/+19
| | | | | * generic/tclCmdIL.c (Tcl_LsearchObjCmd): protect against the case that lsearch -regepx list and pattern objects are equal.
* * tests/stringObj.test:hobbs2003-02-111-7/+6
| | | | | * generic/tclStringObj.c (Tcl_GetCharLength): correct ascii char opt of 2002-11-11 to not stop early on \x00. [Bug #684699]
* * generic/tclParse.c (CommandComplete): more paranoid check tohobbs2003-02-111-2/+2
| | | | break on (p >= end) instead of just (p == end).
* * generic/tclParse.cMiguel Sofer2003-02-111-2/+2
| | | | * tests/parse.test: fix for [Bug 684744], by Don Porter.
* * generic/tclIOUtil.c (Tcl_FSJoinPath, Tcl_FSGetNormalizedPath):hobbs2003-02-111-79/+91
| | | | | | | | (UpdateStringOfFsPath): revert the cwdLen == 0 check and instead follow a different code path in Tcl_FSJoinPath. (Tcl_FSConvertToPathType, Tcl_FSGetNormalizedPath): (Tcl_FSGetFileSystemForPath): Update string rep path objects before freeing the internal object. (darley)
* * tests/fileSystem.test: added test 8.3hobbs2003-02-111-73/+78
| | | | | * generic/tclIOUtil.c (Tcl_FSGetNormalizedPath): (Tcl_FSMatchInDirectory): handle the cwdLen == 0 case
* further fs cleanupvincentdarley2003-02-102-46/+24
|
* filesystem speed up round 2vincentdarley2003-02-102-110/+574
|
* fix to crashing filesystem testvincentdarley2003-02-071-44/+62
|
* * generic/tclCompCmds.c (TclCompileIncrCmd):mdejong2003-02-071-5/+1
| | | | | | | | | | | * tests/incr.test: Don't include the text "(increment expression)" in the errorInfo generated by the compiled version of the incr command since it does not match the message generated by the non-compiled version of incr. It is also not possible to match this error output under Jacl, which does not support a compiler.
* * generic/tclExecute.c (TclExecuteByteCode): When anmdejong2003-02-061-1/+2
| | | | | | | | | | | | | error is encountered reading the increment value during a compiled call to incr, add a "(reading increment)" error string to the errorInfo variable. This makes the errorInfo variable set by the compiled incr command match the value set by the non-compiled version. * tests/incr-old.test: Change errorInfo result for the compiled incr command case to match the modified implementation. * tests/incr.test: Add tests to make sure the compiled and non-compiled errorInfo messages are the same.
* added regression test for recent bug fixvincentdarley2003-02-051-23/+61
|
* finalization and test fixesvincentdarley2003-02-043-102/+155
|
* * generic/tclBasic.c: Changed [trace add command] so that 'rename' Kevin B Kenny2003-02-031-4/+25
| | | | | | | | | | callbacks get fully qualified names of the command. [Bug 651271]. ***POTENTIAL INCOMPATIBILITY*** * tests/trace.test: Modified the test cases for [trace add command] to expect fully qualified names on the 'rename' callbacks. Added a case for renaming a proc within a namespace. * doc/trace.n: Added language about use of fully qualified names in trace callbacks.
* * generic/tclCompCmds.c: Removed an unused variable that caused Kevin B Kenny2003-02-011-13/+2
| | | | compiler warnings on SGI. [Bug 664379]
* * generic/tclLoad.c: Changed the code so that if Tcl_StaticPackage Kevin B Kenny2003-02-011-18/+40
| | | | | | | | | is called to report the same package as being loaded in two interps, it shows up in [info loaded {}] in both of them (previously, it didn't appear in the static package list in the second. * tests/load.test Added regression test for the above bug. [Bug 670042]
* * generic/tclClock.c: Fixed a bug that incorrectly allowed Kevin B Kenny2003-02-011-4/+6
| | | | | | | | [clock clicks {}] and [clock clicks -] to be accepted as if they were [clock clicks -milliseconds]. * tests/clock.test: Added regression tests for the above bug. [Bug 675356]
* 2003-02-01 Kevin Kenny <kennykb@users.sourceforge.net> Kevin B Kenny2003-02-011-2/+12
| | | | | | | | | * doc/Tcl.n: Added headings to the eleven paragraphs, to improve formatting in the tools that attempt to extract tables of contents from the manual pages. [Bug 627455] * generic/tclClock.c: Expanded mutex protection around the setting of env(TZ) and the thread-unsafe call to tzset(). [Bug 656660]
* filesystem bug fix and new testvincentdarley2003-01-282-5/+193
|
* * generic/tcl.h: Add TCL_PREFIX_IDENT andmdejong2003-01-281-1/+4
| | | | | | | | | | | | | | | | | TCL_DEBUG_IDENT, used only by TclpCreateProcess. * unix/Makefile.in: Define TCL_DBGX. * win/Makefile.in: Define TCL_DBGX. * win/tclWinPipe.c (TclpCreateProcess): Check that the Tcl pipe dll actually exists in the Tcl bin directory and panic if it is not found. Incorporate TCL_DBGX into the Tcl pipe dll name. This fixes a really mysterious error that would show up when exec'ing a 16 bit application under Win95 or Win98 when Tcl was compiled with symbols. The error seemed to indicate that the executable could not be found, but it was actually the Tcl pipe dll that could not be found.
* * generic/tclIO.c (Tcl_CutChannel, Tcl_SpliceChannel):mdejong2003-01-262-2/+8
| | | | | | | | | | | | | | | | Invoke TclpCutFileChannel and TclpSpliceFileChannel. * generic/tclInt.h: Declare TclpCutFileChannel and TclpSpliceFileChannel. * unix/tclUnixChan.c (FileCloseProc, TclpOpenFileChannel, Tcl_MakeFileChannel, TclpCutFileChannel, TclpSpliceFileChannel): Implement thread load data cut and splice for file channels. This avoids an invalid memory ref when compiled with -DDEPRECATED. * win/tclWinChan.c (FileCloseProc, TclpCutFileChannel, TclpSpliceFileChannel): Implement thread load data cut and splice for file channels. This avoids an invalid memory ref that was showing up in the thread extension.
* * generic/tclEvent.c (Tcl_Finalize): revert finalize change onhobbs2003-01-251-11/+19
| | | | | | 2002-12-04 to correct the issue with extensions that have TSD needing to finalize that before they are unloaded. This issue needs further clarification.
* stringObj unicode Tcl_SetObjLength fixesvincentdarley2003-01-242-84/+138
|
* change %ud to %u as appropriatehobbs2003-01-191-8/+8
|
* * generic/tcl.h: Revert earlier change thatmdejong2003-01-172-3/+9
| | | | | | | | | | | | defined TCL_WIDE_INT_TYPE as long long and TCL_LL_MODIFIER as L when compiling with mingw. This change ended up causing some test case failures when compiling with mingw. * generic/tclObj.c (UpdateStringOfWideInt): Describe the warning generated by mingw and why it needs to be ignored so that someone is not tempted to "fix" this problem again in the future.
* execution trace, command trace and stringObj bug fixesvincentdarley2003-01-174-114/+241
|
* * generic/tclClock.c (FormatClock): corrected typo thathobbs2003-01-141-2/+2
| | | | incorrectly conditionally defined savedTZEnv and savedTimeZone.
* Fix mingw build problems and compiler warnings.mdejong2003-01-143-6/+6
| | | | | | | | | | | | | | | | * generic/tcl.h: Add if defined(__MINGW32__) check to code that sets the TCL_WIDE_INT_TYPE and TCL_LL_MODIFIER. * generic/tclClock.c (FormatClock): Don't define savedTimeZone and savedTZEnv if we are not going to use them. * generic/tclEnv.c: Add cast to avoid warning. * win/tclWinChan.c: Use DWORD instead of int to avoid compiler warning. * win/tclWinThrd.c: Only define allocLock, allocLockPtr, and dataKey when TCL_THREADS is defined. This avoid a compiler warning about unused variables.
* * generic/tcl.h: Skip Tcl's define of CHAR,mdejong2003-01-131-3/+6
| | | | | | | | | | | | | | SHORT, and LONG when HAVE_WINNT_IGNORE_VOID is defined. This avoids a bunch of compiler warnings when building with Cygwin or Mingw. * win/configure: Regen. * win/configure.in: Define HAVE_WINNT_IGNORE_VOID when we detect a winnt.h that still defines CHAR, SHORT, and LONG when VOID has already been defined. * win/tcl.m4 (SC_LOAD_TCLCONFIG): Subst the TCL_DEFS loaded from tclConfig.sh so that Tcl defines can make it into the Tk Makefile.
* WinTcl crash on exit fixvincentdarley2003-01-101-1/+10
|
* * generic/tclCompCmds.c (TclCompilerReturnCmd): Corrected off-by-onedgp2003-01-091-5/+8
| | | | problem with recent commit. [Bug 633204]
* non-ascii chars in file mtime fixvincentdarley2003-01-092-31/+5
|
* remove unused variablevincentdarley2003-01-091-4/+1
|
* * generic/tclExecute.c (TclExprFloatError): Use the IS_NAN macrodgp2003-01-081-2/+2
| | | | for greater clarity of code.
* * generic/tclCompCmds.c (TclCompileReturnCmd):dgp2003-01-081-1/+15
| | | | | | | * tests/compile.test: Corrects failure of bytecompiled [catch {return}] to have result TCL_RETURN (not TCL_OK) [Bug 633204]. This patch is a workaround for 8.4.X. A new opcode INST_RETURN is a better long term solution for 8.5 and later.
* * generic/tclNotify.c (TclFinalizeNotifier, Tcl_SetServiceMode):hobbs2002-12-171-4/+10
| | | | | (Tcl_ThreadAlert): Check that the stub functions are non-NULL before calling them. They could be set to NULL by Tcl_SetNotifier.
* * generic/tclPipe.c (TclCleanupChildren):davygrvy2002-12-171-2/+10
| | | | | | | | | | | | | | * tests/winPipe.c: * win/tclWinPipe.c (Tcl_WaitPid): * win/tclWinTest.c: Gave Tcl_WaitPid the ability to return a Win32 exception code translated into a posix style SIG*. This allows [close] to report "CHILDKILLED" without the meaning getting lost in a truncated exit code. In TclCleanupChildren(), TclpGetPid() had to get moved to before Tcl_WaitPid() as the the handle is removed from the list taking away the ability to get the process id after the wait is done. This shouldn't effect the unix implimentaion unless waitpid is called with a pid of zero, meaning "any". I don't think it is..
* * generic/tclProc.c (ProcessProcResultCode): Fix failure todgp2002-12-111-2/+2
| | | | | propagate negative return codes up the call stack. [Bug 647307] * tests/proc.test (proc-6.1): Test for Bug 647307
* * generic/tclParseExpr.c (TclParseInteger): Return 1 for thedgp2002-12-111-2/+4
| | | | | string "0x" (recognize leading "0" as an integer). [Bug 648441]. * tests/parseExpr.test (parseExpr-19.1): Test for Bug 648441.
* * win/tclWinThrd.c (TclpMasterUnlock):hobbs2002-12-101-3/+1
| | | | | * generic/tclThread.c (TclFinalizeThreadData): TclpMasterUnlock must exist and be called unconditional of TCL_THREADS. [Bug #651139]
* * generic/tclStubInit.c: regenhobbs2002-12-063-3/+17
| | | | | | | | | | | | * generic/tclIntPlatDecls.h: regen * generic/tclInt.decls: added TclWinResetInterface * win/tclWin32Dll.c (TclWinResetInterfaces): * win/tclWinInit.c (TclpSetInitialEncodings, WinEncodingsCleanup): add exit handler that resets the encoding information to a state where we can reuse Tcl. Following these changes, it is possible to reuse Tcl (following Tcl_FindExecutable or Tcl_CreateInterp) following a Tcl_Finalize.
* * generic/tclIOUtil.c (TclFinalizeFilesystem): reset statics tohobbs2002-12-061-2/+13
| | | | their original values on finalize to allow reuse of the library.
* filesystem cleanup fix, virtual filesystem load fixvincentdarley2002-12-043-22/+41
|
* * generic/tclStubLib.c (Tcl_InitStubs): prevent the cached check ofhobbs2002-12-041-11/+15
| | | | | tclStubsPtr to allow for repeated load/unload of the Tcl dll by hosting apps. [Bug 615304]
* * generic/tclInterp.c (AliasCreate): preserve/release interps tohobbs2002-11-271-14/+23
| | | | prevent possible FMR error in bad alias cases.
* * generic/tclEncoding.c (TclFinalizeEncodingSubsystem): properlyhobbs2002-11-271-2/+4
| | | | cleanup all encodings by using Tcl_FirstHashEntry in the while loop.
* * tests/interp.test: interp-14.4hobbs2002-11-231-5/+16
| | | | | * generic/tclInterp.c (TclPreventAliasLoop): prevent seg fault when creating an alias command over the interp name. [Bug #641195]
* * generic/tclUtil.c (SetEndOffsetFromAny): handle integer offsethobbs2002-11-193-24/+39
| | | | | | | | | | after the "end-" prefix. * generic/get.test: * generic/string.test: * generic/tclObj.c (SetIntFromAny, SetWideIntFromAny): * generic/tclGet.c (TclGetLong, Tcl_GetInt): simplify sign handling before calling strtoul(l). [Bug #634856]
* * generic/regexpComp.test: added tests 22.*hobbs2002-11-141-32/+45
| | | | | | | * generic/tclCompCmds.c (TclCompileRegexpCmd): add left and right anchoring (^ and $) recognition and check starting or ending .* to extend the number of REs that can be compiled to string match or string equal.