summaryrefslogtreecommitdiffstats
path: root/generic
Commit message (Collapse)AuthorAgeFilesLines
* TIP#36 implementation. Also includes cleanup for subst optiondkf2001-07-125-76/+167
| | | | | handling and improved documentation for the subst command (in my capacity as maintainer of the Commands M-Z functional area.)
* * tests/var.test:hobbs2001-07-041-1/+6
| | | | | * generic/tclVar.c (Tcl_VariableObjCmd): added patch to check for number of args. [Patch #426038]
* * generic/tclExecute.c (TclExecuteByteCode): added TCL_TRACE_READShobbs2001-07-031-15/+9
| | | | | | flag to INST_LAPPEND(_ARRAY)_STK case to trigger read traces for newly created arrays. Removed unnecessary #ifdef for TCL_COMPILE_DEBUG in INST_LOAD_SCALAR1 case.
* * generic/tclVar.c (Tcl_GetVar2Ex): added ability to recognizehobbs2001-07-031-17/+64
| | | | | | | | | | | TCL_TRACE_READS flags to cause creation of part1 in TclLookupVar to make sure newly created array will get read traces triggered appropriately. This is called by Tcl_ObjGetVar2, Tcl_GetVar, and Tcl_GetVar2. (TclSetIndexedScalar, TclSetElementOfIndexedArray): added read trace triggering for lappend case. (Tcl_LappendObjCmd): pass TCL_TRACE_READS to Tcl_ObjGetVar2 to trigger possible read traces for new arrays.
* * tests/util.test: added util-4.6hobbs2001-07-031-5/+5
| | | | | * generic/tclUtil.c (Tcl_ConcatObj): Corrected walking backwards over utf-8 chars. [Bug #227512]
* Correction to faulty patch for bug #231259Miguel Sofer2001-06-281-2/+2
|
* * generic/tclInt.h:hobbs2001-06-282-3/+45
| | | | | | | * generic/tclObj.c: * unix/Makefile.in: added a -DPURIFY mode that makes Tcl_Obj's allocated and free singularly (instead of in alloc in blocks and never free) to allow checkers like Purify to operate better.
* * tests/subst.test:hobbs2001-06-281-6/+17
| | | | | * generic/tclUtf.c (Tcl_UtfBackslash): Corrected backslash handling of multibyte utf-8 chars. [Bug #217987]
* * generic/tclCmdIL.c (InfoProcsCmd): fixed potential mem leak inhobbs2001-06-281-9/+9
| | | | info procs that created objects without using them.
* * generic/tclCompCmds.c (TclCompileStringCmd): fixed mem leak whenhobbs2001-06-281-1/+2
| | | | string command failed to parse the subcommand.
* * generic/tclInt.decls:dgp2001-06-175-16/+19
| | | | | | | | | | | | | | | * generic/tclInt.h: * generic/tclPanic.c (Tcl_PanicVA): * mac/tclMacAppInit.c (main): * mac/tclMacPanic.c (TclpPanic): * unix/tclUnixPort.h: * win/tclWinPort.h: Replaced TclMacSetPanic with TclpPanic for setting a platform-specific panic handler. TclpPanic is NULL on Unix and Windows. Fixes broken wish on Mac due to earlier patches. [Patch 415648] * generic/tclIntPlatDecls.h: * generic/tclStubInit.c: `make gentubs` after above changes.
* Fix for bug #219232 (submatch errors with regexp -all -inline -indices)dkf2001-06-121-2/+6
|
* * generic/tcl.h:dgp2001-06-087-57/+37
| | | | | | | | | | | | | | | | | | | | | | | | * generic/tcl.decls: * generic/tclPanic.c: Added CONST to Tcl_*Panic* public interfaces. [Patch 415648, TIP 27] * generic/tclInt.decls: * mac/tclMacAppInit.c (main): * mac/tclMacBOAAppInit.c (main): * mac/tclMacPanic.c: Modified special Mac implementations of Tcl_*Panic* to be exact copies of the generic implementations. Added TclMacSetPanic. The generic implementations should be used directly, rather than copies, but that requires further changes by someone familiar with the Mac build systems. [Patch 415648] * generic/tclDecls.h: * generic/tclIntPlatDecls.h: *`generic/tclStubInit.c: `make gentubs` after above changes. * doc/Panic.3: * unix/mkLinks: New file documenting Tcl_*Panic* public interfaces, followed by `make mklinks`. [Patch 415648, Bug 219170, Bug 414936]
* * generic/tclUtil.c (Tcl_DStringAppendElement): patch to save anhobbs2001-06-041-4/+6
| | | | extra strlen call. [Bug #428572]
* Added casts to stop warnings with SUNWspro cc on Solaris8.dkf2001-05-311-3/+3
|
* Changes from TIP#15 "Functions to List and Detail Math Functions"dkf2001-05-305-7/+204
|
* minor comment changeshobbs2001-05-281-2/+3
|
* * generic/regc_locale.c: updated character class range data forhobbs2001-05-282-547/+910
| | | | | | | Unicode v3.1.0 compliance. * generic/tclUniData.c: regenerated from Unicode v3.1.0 data file (new as of 2001-05-16). This brings Tcl to current unicode compliance.
* [Patch #424851]: Faster array searching & obj cleanupMiguel Sofer2001-05-265-50/+130
|
* * generic/tclObj.c (TclAllocateFreeObjects): simplifiedhobbs2001-05-231-40/+22
| | | | | | objSizePlusPadding to use sizeof(Tcl_Obj) (max) Corrected use of tclObjsAlloced/Freed/Shared in TCL_MEM_DEBUG compile.
* removed unnecessary Tcl_DuplicateObj in generic/tclExecute.cMiguel Sofer2001-05-221-2/+2
|
* * generic/tclRegexp.c (Tcl_RegExpExecObj): added use ofhobbs2001-05-211-3/+2
| | | | Tcl_GetUnicodeFromObj.
* * Note that "tclbench" (see project "tcllib") was extended withandreas_kupries2001-05-191-22/+172
| | | | | | | | | | | | | | | | | | performance benchmarks for [fcopy] too. * doc/fcopy.n: Updated to reflect the extended behaviour of 'fcopy'. * tests/io.test: Added tests 'io-52.9', 'io-52.10' and 'io-52.11' to test the handling of encodings by 'fcopy' / 'TclCopychannel' [Bug #209210]. * generic/tclIO.c: Split of both 'Tcl_ReadChars' and 'Tcl_WriteChars' into a public error checking and an internal working part. The public functions now use the new internal ones. The new functions are 'DoReadChars' and 'DoWriteChars'. Extended 'CopyData' to use the new functions 'DoXChars' when required by the encodings on the input and output channels [Bug #209210].
* * generic/tclBasic.c: added new CompileProc invocations to basichobbs2001-05-179-650/+1471
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | command initialization. * generic/tclCompCmds.c: added new compile commands for append, lappend, lindex and llength. Refactored set and incr compile commands to use new TclPushVarName function for handling the varname component during compilation (also used by append and lappend). Changed string compile command to compile toplevel code as well (when possible). * generic/tclCompile.c: added new instruction enums * generic/tclCompile.h: added debug info for new instructions * generic/tclExecute.c (TclExecuteByteCode): moved elemPtr to toplevel var (oft-used). Added definitions for new bytecode instructions INST_LIST_INDEX, INST_LIST_LENGTH, INST_APPEND_SCALAR1, INST_APPEND_SCALAR4, INST_APPEND_ARRAY1, INST_APPEND_ARRAY4, INST_APPEND_ARRAY_STK, INST_APPEND_STK, INST_LAPPEND_SCALAR1, INST_LAPPEND_SCALAR4, INST_LAPPEND_ARRAY1, INST_LAPPEND_ARRAY4, INST_LAPPEND_ARRAY_STK, INST_LAPPEND_STK. Refactored repititious code for reuse with INST_LOAD_STK (same as INST_LOAD_SCALAR_STK), INST_STORE_STK (same as INST_STORE_SCALAR_STK). Updated INST_STR_CMP with style of fix of 2001-04-06 Fellows [Bug #219201] as that fix only affected the runtime eval'ed "string" (string compare is normally byte-compiled now). We may want to back these out for speed in the future, noting the problems with \x00 comparisons in the docs. * generic/tclInt.h: declarations for new compile commands. * generic/tclVar.c: change TclGetIndexedScalar, TclGetElementOfIndexedArray, TclSetElementOfIndexedArray and TclSetIndexedScalar to use flags. The Set functions now support TCL_APPEND_ELEMENT and TCL_LIST_ELEMENT as well. * generic/tclInt.decls: * generic/tclIntDecls.h: minor signature changes for above.
* generic/tclCmdMZ.c: made use of new Tcl_GetUnicodeFromObjhobbs2001-05-171-62/+60
|
* * generic/tcl.decls:hobbs2001-05-154-4/+76
| | | | | | | * generic/tclDecls.h: * generic/tclStubInit.c: * generic/tclStringObj.c (Tcl_GetUnicodeFromObj): new function to parallel Tcl_GetStringFromObj (fix of an API oversight).
* * generic/tclFileName.c (ExtractWinRoot): corrected ABR errorhobbs2001-05-151-12/+11
|
* Patch from [Bug: 231259]Miguel Sofer2001-05-152-7/+20
|
* Negative start index to [string first] caused offset return value (Bug 423581)dkf2001-05-141-1/+7
|
* rand() gets != seeds in != threads [Bug 416643]Miguel Sofer2001-05-071-2/+8
|
* Patch for bug #420507Miguel Sofer2001-05-031-2/+2
|
* Added several missing CONSTs in calls to TclGetNamespaceForQualNameKevin B Kenny2001-04-276-19/+24
|
* Added a bunch of missing CONST declarations to stop warnings aboutdkf2001-04-252-11/+15
| | | | using TclGetNamespaceForQualName from the (Solaris8) SUNWspro cc.
* (TIP #27) Another round of CONST changes, thisKevin B Kenny2001-04-249-111/+119
| | | | | | | | | time adding CONST to the API's exported from tclBasic.c. [Patch #415179] ***POTENTIAL INCOMPATIBILITY*** from 8.4a2, in which Vince Darley's changes to command tracing were added. A const has been added to the type signature of one of the parameters to Tcl_CommandTraceProc.
* Recognise the non-numeric boolean literals (true,false,yes,no,on,off.)dkf2001-04-091-3/+47
| | | | [Bug #217777]
* Avoid panic when there are extra items in the tcl stackMiguel Sofer2001-04-071-3/+7
| | | | [Bug #406709, Patch #414470]
* Corrected behaviour of [namespace code] (bug #219385, patch #403530)Miguel Sofer2001-04-071-4/+8
|
* Fixed problem with [string compare \x00 \x01] and hopefully sped thedkf2001-04-062-34/+108
| | | | | command up in a few cases too (notably byte arrays and UNICODE objects.) [Bug #219201]
* Fixed so tclCmdMZ.c will compile with K&R compilers [Patch #413844]dkf2001-04-051-3/+3
|
* Restore support for pre-ANSI compilers.dgp2001-04-041-2/+3
|
* 2001-04-04 Andreas Kupries <andreas_kupries@users.sourceforge.net>andreas_kupries2001-04-041-1/+39
| | | | | | | * generic/tclTest.c: * tests/io.tests: TIP #10 followup correcting a problem with the original patch because of the lack of 'testthread id' for a non-threaded compilation.
* (TIP#27) Changed a number of Tcl API's to accept "CONST char*"Kevin B Kenny2001-04-0410-207/+224
| | | | in place of simple "char*". (kennykb) [Patch #404026]
* * generic/tclListObj.c (Tcl_SetListObj): set objPtr->length = 0 inhobbs2001-04-041-1/+2
| | | | | empty object case to maintain sanctity of Tcl_Obj bytes/length pairing. (porter) [Patch #405998]
* Typo in commentdgp2001-04-041-2/+2
|
* * generic/tcl.h:hobbs2001-04-021-3/+3
| | | | | | | | | * tools/tcl.wse.in: * win/configure.in (VER): * win/configure: * unix/configure: * unix/configure.in (VER): * unix/tcl.spec: updated patchlevel information to 8.4a3
* * generic/tclCkalloc.c (TclFinalizeMemorySubsystem): set curTagPtrhobbs2001-03-312-3/+5
| | | | | | | | to NULL to allow for reuse. * generic/tclEvent.c (Tcl_Finalize): moved the tsdPtr initialization inside the subsystemsInitialized check to prevent it potentially getting called twice during finalization. (wu) [Patch #403532, Bug #219391]
* * generic/tclThreadTest.c (Tcl_ThreadObjCmd): cast fixeshobbs2001-03-311-3/+3
|
* * generic/tclTest.c (TestChannelCmd): added cast to mollifyhobbs2001-03-311-2/+2
| | | | Windows debug build.
* 2001-03-30 Andreas Kupries <andreas_kupries@users.sourceforge.net>andreas_kupries2001-03-306-6/+74
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * All of the changes below belong to TIP #10 [Tcl I/O Enhancement: Thread-Aware Channels]. See also [Patch #403358] at SF. * generic/tclIO.h (struct ChannelState, line 236f): Extended the structure with a new field of type 'Tcl_ThreadId' to hold the id of the thread currently managing all channels with this state. Note: This structure is shared by all channels in a stack of transformations. * generic/tclIO.c (Tcl_CreateChannel, lines 1058-1065): Modified to store the Id of the current thread in the 'ChannelState' of the new channel. * generic/tclIO.c (Tcl_SpliceChannel, lines 2265-2270): Modified in the same manner as 'Tcl_CreateChannel' as the channel will be managed by the current thread afterward. * generic/tclIO.c (Tcl_GetChannelThread, lines 1478-1503): * generic/tcl.decls (Tcl_GetChannelThread, lines 1504-1506): New API function to retrieve the Id of the managing thread from a channel. Implementation and declaration. * generic/tclTest.c (TestChannelCmd, lines 4520-4532): Added subcommand 'mthread' to query a channel about its managing thread.
* * tests/regexp.test (regexp-19.1):hobbs2001-03-281-3/+4
| | | | | * generic/tclCmdMZ.c (Tcl_RegsubObjCmd): fixed handling of nulls in subspec value.