summaryrefslogtreecommitdiffstats
path: root/generic
Commit message (Collapse)AuthorAgeFilesLines
* fix to bug 553320vincentdarley2002-05-071-2/+9
|
* fix to 551306vincentdarley2002-05-022-37/+51
|
* Hex values on 64-bit machines can be booleans too! [Bug 548686]dkf2002-04-261-3/+25
|
* * generic/tclInt.h: corrected TclRememberJoinableThread decl tohobbs2002-04-241-2/+2
| | | | use VOID instead of void.
* noted that this code isn't needed on unixhobbs2002-04-241-2/+6
|
* * generic/tclAlloc.c:hobbs2002-04-233-2/+954
| | | | | | | | | | | | | | | * generic/tclInt.h: * generic/tclThreadAlloc.c (new): * unix/Makefile.in: * unix/tclUnixThrd.c: * win/Makefile.in: * win/tclWinInt.h: * win/tclWinThrd.c: added new threaded allocator contributed by AOL that significantly reduces lock contention when multiple threads are in use. Only Windows and Unix implementations are ready, and the Windows one may need work. It is only used by default on Unix for now, and requires that USE_THREAD_ALLOC be defined (--enable-threads on Unix will define this).
* cleanup of testfilesystem commandhobbs2002-04-231-19/+11
|
* * generic/tclIOUtil.c (Tcl_FSRegister, Tcl_FSUnregister):hobbs2002-04-231-10/+13
| | | | | corrected calling of Tcl_ConditionWait to ensure that there would be a condition to wait upon.
* generic/tclCmdAH.c (Tcl_FileObjCmd): added cast in FILE_SIZEhobbs2002-04-231-3/+4
|
* * Free the memory allocated for thedgp2002-04-201-2/+3
| | | | startup script path. [Bug 543549]
* 2002-04-20 Daniel Steffen <das@users.sourceforge.net>das2002-04-193-3/+16
| | | | | | | | | | | | | | * generic/tclInt.decls: * generic/tclIntPlatDecls.h: * generic/tclStubInit.c: * mac/tclMacFCmd.c: * mac/tclMacFile.c: * mac/tclMacUtil.c: Modified TclpObjNormalizePath to be alias file aware, and replaced various calls to FSpLocationFrom*Path by calls to new alias file aware versions FSpLLocationFrom*Path. The alias file aware routines don't resolve the last component of a path if it is an alias. This allows [file copy/delete] etc. to act correctly on alias files. (c.f. discussion in Bug #511666)
* list/string indexes don't destroy wide int rep [Bug #526717]dkf2002-04-191-48/+80
|
* [Bug 545325 ] info level didn't report namespace eval.Miguel Sofer2002-04-181-4/+6
|
* Fixed Bug #545644; [info body] always gives a proper string now!dkf2002-04-181-1/+8
|
* Partial resolution of Bug #536831; the comment is a bit clearer!dkf2002-04-181-2/+10
|
* fix for [Bug #542588], where "too large integers" were reported asMiguel Sofer2002-04-181-12/+20
| | | | "floating-point value" in [expr] error messages.
* * generic/tclEncoding.c (EscapeFromUtfProc):hobbs2002-04-182-34/+81
| | | | | | * generic/tclIO.c (WriteChars, Tcl_Close): corrected the handling of outputting end escapes for escape-based encodings. [Bug #526524] (yamamoto)
* Improved stack trace for TCL_BREAK and TCL_CONTINUE returns from procs. [Bug ↵Miguel Sofer2002-04-151-24/+23
| | | | 536955].
* made bytecodes check for a catch before returning; the compiled [return] is ↵Miguel Sofer2002-04-151-10/+12
| | | | otherwise non-catchable. [Bug 542588]
* * generic/tclNotify.c (TclFinalizeNotifier): remove remaininghobbs2002-04-121-1/+12
| | | | unserviced events on finalization.
* * generic/tclParse.c (Tcl_ParseVar): conditionally incr objhobbs2002-04-121-2/+10
| | | | refcount to prevent possible mem leak.
* 2002-04-08 Daniel Steffen <das@users.sourceforge.net>das2002-04-081-1/+5
| | | | | | | | | | | | | | | | | | | * generic/tcl.h: no <sys/types.h> on mac. * mac/tclMacFile.c: minor fixes to Vince's changes from 03-24. * mac/tclMacOSA.c: * mac/tclMacResource.c: added missing Tcl_UtfToExternalDString conversions of resource file names. * mac/tclMacSock.c (TcpGetOptionProc): fixed bug introduced by Andreas on 02-25; changed strcmp's to strncmp's so that option comparison behaves like on other platforms. * mac/tcltkMacBuildSupport.sea.hqx (CW Pro6 changes): added support to allow Tk to hookup C library stderr/stdout to TkConsole. * tests/basic.test: * tests/cmdAH.test: * tests/encoding.test: * tests/fileSystem.test: * tests/ioCmd.test: fixed tests failing on mac: check for existence of [exec], changed some result strings.
* * Corrected [subst] so that return codesdgp2002-04-051-3/+9
| | | | | | TCL_BREAK and TCL_CONTINUE returned by variable substitution have the same effect as when those codes are returned by command substitution. [Bug 536879]
* tilde expansion cache-clearingvincentdarley2002-04-032-21/+37
|
* * generic/tclCmdMZ.c (Tcl_TraceObjCmd, TraceVarProc)hobbs2002-03-291-13/+23
| | | | | | | | | (TraceCommandProc, TclTraceCommandObjCmd): corrected potential double-free of traces on variables by flagging in Trace*Proc that it will free the var in case the eval wants to delete the var trace as well. [Bug #536937] Also converted Tcl_UntraceVar -> Tcl_UntraceVar2 and Tcl_Eval to Tcl_EvalEx in Trace*Proc for slight efficiency improvement.
* * Corrected problems with Tcl_AllowExceptionsdgp2002-03-293-36/+42
| | | | | having influence over the wrong scope of Tcl_*Eval* calls. Patch from Miguel Sofer. Report from Jean-Claude Wippler. [Bug 219181]
* * Refactored CallTraces to collect repeateddgp2002-03-291-257/+124
| | | | handling of its returned value into CallTraces itself.
* passing the correct commandSize to TclEvalObjvInternal. [Bug 219362],Miguel Sofer2002-03-271-2/+3
| | | | fix by David Knoll.
* avoid exceptional returns at level 0 [Bug 219181]Miguel Sofer2002-03-271-1/+11
|
* Allow NULL callback on trace deletions [Bug 534728]Miguel Sofer2002-03-251-2/+4
|
* fix for [Bug 533907] in tclBasic.c (Tcl_EvalObjv).Miguel Sofer2002-03-241-27/+34
|
* fixed typo and compiler warning in last commit; all tests now pass on unixvincentdarley2002-03-241-2/+2
|
* 4 fs fixesvincentdarley2002-03-245-52/+83
|
* fixed the errorInfo for return codes other than (TCL_OK, TCL_ERROR) toMiguel Sofer2002-03-222-66/+19
| | | | | runLevel 0 [Bug 533758]. Removed the static RecordTracebackInfo(), as its functionality is easily replicated by Tcl_LogCommandInfo.
* * Updated interfaces of generic/tclVar.c accordingdgp2002-03-2011-74/+79
| | | | to TIP 27. In particular, the "part2" arguments were CONSTified.
* Fixed buffer overrun reported in 530320; luckily it is not likely todkf2002-03-151-3/+4
| | | | | be exploitable in any meaningful way, but crashing Tcl instead of triggering an error still isn't good.
* * generic/tclEncoding.c: Fix typo in comment.mdejong2002-03-112-18/+20
| | | | | | | | * generic/tclIO.c (DoReadChars, ReadBytes, ReadChars): Use NULL value instead of pointer set to NULL to make things more clear. Reorder arguments so that they match the function signatures. Cleanup little typos and add more descriptive comment.
* * Added the [interp recursionlimit] command todgp2002-03-072-53/+91
| | | | | set/query the recursion limit of an interpreter. Proposal and implementation from Stephen Trier. [TIP 87, Patch 522849]
* Bumped patchlevel; might need changing in the future, but it makes lifedkf2002-03-061-3/+3
| | | | easier for now.
* tclInt.h: restoring correct operation ordering in TclDecrRefCountMiguel Sofer2002-03-061-13/+13
| | | | macro [Bug 524802]
* TIP#81 implementation, tests and docsdkf2002-03-061-142/+252
|
* * tests/io.test:hobbs2002-03-041-16/+23
| | | | | | | | | * tests/encoding.test: corrected iso2022 encoding results. added encoding-24.* * generic/tclEncoding.c (EscapeFromUtfProc): corrected output of escape codes as per RFC 1468. [Patch #474358] (taguchi) (TclFinalizeEncodingSubsystem): corrected potential double-free when encodings were finalized on exit. [Bug #219314, #524674]
* * tests/encoding.test: added encoding-23.* testshobbs2002-03-021-4/+11
| | | | | | | * generic/tclIO.c (FilterInputBytes): reset the TCL_ENCODING_START flags in the ChannelState when using 'gets'. [Bug #523988] Also reduced the value of ENCODING_LINESIZE from 30 to 20 as this seems to improve the performance of 'gets' according to tclbench.
* * generic/tclCmdMZ.c (TraceCommandProc): ensure that TraceCommandInfohobbs2002-03-011-2/+6
| | | | | structure was also deleted when a command was deleted to prevent a mem leak.
* * generic/tclBasic.c (Tcl_CreateObjTrace): set tracePtr->flags ↵hobbs2002-03-011-1/+2
| | | | correctly.
* * generic/tclTimer.c (TimerExitProc): remove remaining events inhobbs2002-03-011-2/+14
| | | | tls on thread exit.
* generic/tclNamesp.c: optimisation of namespace lookups [Patch 458872]Miguel Sofer2002-02-281-6/+26
|
* Replaced a few direct stack accesses with the POP_OBJECT() macro [Bug 507181]Miguel Sofer2002-02-281-15/+13
|
* * doc/GetIndex.3:dgp2002-02-283-8/+8
| | | | | | | | | | | * generic/tcl.decls (Tcl_GetIndexFromObjStruct): * generic/tclIndexObj.c (Tcl_GetIndexFromObjStruct): Revised the prototype of the Tcl_GetIndexFromObjStruct to take its struct table as a (CONST VOID *) argument, better describing what it is, maintaining source compatibility, and adding CONST correctness according to TIP 27. Thanks to Joe English for an elegant solution. [Bug 520304] * generic/tclDecls.h: make genstubs
* * generic/tclMain.c (Tcl_Main,StdinProc): Corrected some referencedgp2002-02-281-1/+26
| | | | | count management errors on the interactive commandPtr Tcl_Obj found by Purify. Thanks to Jeff Hobbs for the report and assistance.