summaryrefslogtreecommitdiffstats
path: root/generic
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* * generic/tclTest.c (TestStatProc[123]): correct harmless UMRs.hobbs2002-02-281-1/+4
|
* * generic/tclLink.c (Tcl_LinkVar): correct mem leak in error case.hobbs2002-02-281-2/+5
|
* * generic/tclBasic.c (Tcl_EvalTokensStandard): corrected mem leakhobbs2002-02-281-5/+6
| | | | in error case.
* reversed accidental commit of unfinished sourceshobbs2002-02-273-990/+34
|
* generic/tclCmdMZ.chobbs2002-02-275-44/+1003
|
* * generic/tclFileName.c (Tcl_TranslateFileName): decr refcount forhobbs2002-02-271-3/+4
| | | | error case to prevent mem leak.
* * generic/tclVar.c (Tcl_ArrayObjCmd): removed extra obj allocation.hobbs2002-02-271-10/+8
|
* bugfix to the bugfix to the new [for] compiled codeMiguel Sofer2002-02-261-3/+5
|
* revert accidental commit of tclAlloc.c to r1.11hobbs2002-02-261-946/+2
|
* * generic/tclHash.c (AllocArrayEntry, AllocStringEntry):hobbs2002-02-262-7/+957
| | | | | | | | Before invoking ckalloc when creating a Tcl_HashEntry, check that the amount of memory being allocated is at least as large as sizeof(Tcl_HashEntry). The previous code was allocating memory regions that were one or two bytes short. [Bug #521950] (dejong)
* avoiding a buffer overrun in [subst]; restoring tcl7.6 behaviour [Bug #495207]Miguel Sofer2002-02-251-4/+24
|
* Added clarification comment.dkf2002-02-251-1/+4
|
* fixing a bug in last tclCompCmds.c patch, in the code for [for] and [while].Miguel Sofer2002-02-251-21/+25
|
* * generic/tclInt.h:dgp2002-02-223-23/+68
| | | | | | | * generic/tclObj.c: renamed global variable emptyString -> tclEmptyString because it is no longer static. * generic/tclPkg.c: Fix for panic when library is loaded on a platform without backlinking without proper use of stubs. [Bug 476537]
* Optimising [if], [for] and [while] for constant conditionsMiguel Sofer2002-02-221-193/+273
|
* Added TIP#76 implementation, docs + tests.dkf2002-02-221-11/+19
|
* typo correction in latest changedgp2002-02-211-2/+2
|
* Improving 'long long' detection...dkf2002-02-211-6/+11
|
* * generic/tcl.decls (Tcl_RegExpRange,Tcl_GetIndexFromObjStruct):dgp2002-02-203-18/+13
| | | | | | | Overlooked a few source incompatibilities. Now using CONST84. * generic/tclDecls.h: make genstubs * generic/tcl.h (Tcl_CmdObjTraceProc): silence warning from Sun Workshop compiler.
* Made tcl.h better at guessing what is going on with 64-bit types whendkf2002-02-201-4/+8
| | | | configure doesn't tell it explicitly.
* Fixed behaviour of [format] on 64-bit platforms by defining it to work withdkf2002-02-191-13/+16
| | | | | | machine words by default. This seems to be what the test suite expected anyway, and it is a fairly sensible choice. The other alternative was to make %d always 32-bit and %ld always 64-bit, but that'd be more complex to do.
* * generic/tclIndexObj.c (STRING_AT): removed ptrdiff_t cast andhobbs2002-02-161-14/+2
| | | | use of VOID* in default case (GNU-ism).
* Further changes to the TIP 72 patch to make it compile under VC++Kevin B Kenny2002-02-154-8/+43
|
* * tclExecute.c:andreas_kupries2002-02-153-6/+10
| | | | | | | * tclIOGT.c: * tclIndexObj.c: Touchups to the TIP 72 patch to make it compileable under Windows again. The changes are not complete, there is one nasty regarding _stati64
* TIP#72 implementation. See ChangeLog for details.dkf2002-02-1531-1254/+3092
| | | | | This version builds clean on Solaris/SPARC, with GCC and CC, both with and without threads and both in 32-bit and 64-bit mode.
* * generic/tclIOCmd.c (Tcl_GetsObjCmd): Trivial fix for bugandreas_kupries2002-02-141-4/+2
| | | | | | #517503, a memory leak reported by Miguel Sofer <msofer@users.sourceforge.net>. The leak happens if an error occurs for "set var [gets $chan]" and leak one empty object.
* Added Tcl_CreateObjTrace, Tcl_GetCommandInfoFromToken andKevin B Kenny2002-02-107-93/+517
| | | | Tcl_SetCommandInfoFromToken. (TIPs #32 and #79.)
* * generic/tclScan.c (Tcl_ScanObjCmd): prevented ckfree beinghobbs2002-02-081-2/+4
| | | | called on a pointer to NULL.
* * Partial TIP 27 rollback. Following routinesdgp2002-02-0811-60/+58
| | | | | | | | | | | | | restored to return (char *): Tcl_DStringAppend, Tcl_DStringAppendElement, Tcl_JoinPath, Tcl_TranslateFileName, Tcl_ExternalToUtfDString, Tcl_UtfToExternalDString, Tcl_UniCharToUtfDString, Tcl_GetCwd, Tcl_WinTCharToUtf. Also restored Tcl_WinUtfToTChar to return (TCHAR *) and Tcl_UtfToUniCharDString to return (Tcl_UniChar *). Modified some callers. This change recognizes that Tcl_DStrings are de-facto white-box objects. * generic/tclCmdMZ.c: corrected use of C++-style comment.