summaryrefslogtreecommitdiffstats
path: root/generic
Commit message (Collapse)AuthorAgeFilesLines
* Bumped up patchlevel to 8.4a4 to distinguishdgp2001-08-081-3/+3
| | | | | | | CVS snapshots from the 8.4a3 release. This does not necessarily mean there will be an 8.4a4 release. [Bug 448938]. FossilOrigin-Name: 599ec8bcb761e577362f699bf9588106e0e9861c
* * generic/tclFileName.c (Tcl_FSSplitPath): update to Tcl stylehobbs2001-08-072-34/+33
| | | | | | | | | guide. * generic/tclFCmd.c (FileCopyRename): fixed mem leak in introduction of vfs code where a new Tcl_Obj wasn't freed. FossilOrigin-Name: 7a8f69b47b0cb8165099a51f5427df749accb44c
* * generic/tclCmdMZ.c (Tcl_RegexpObjCmd, Tcl_RegsubObjCmd):hobbs2001-08-071-12/+18
| | | | | | | reordered the retrieval of arguments to avoid shimmering bug when the pattern and string referenced the same object. FossilOrigin-Name: 3e61e33896af87918a4e2a2235c9558f3e0d98d7
* 2001-08-06 Andreas Kupries <andreas_kupries@users.sourceforge.net>andreas_kupries2001-08-061-4/+6
| | | | | | | * generic/tclIOCmd.c (Tcl_GetsObjCmd): Applied patch from SF item [442665] to fix the bug reported by it. FossilOrigin-Name: 29ddd6bb07b25751a04915704d33eacab3b027b5
* * [package forget] now forgets all of thedgp2001-08-061-2/+2
| | | | | | | package arguments it receives, not stopping when a package is not found. [Bug 415273] FossilOrigin-Name: bae87bd0068ae118d52a5412f8e5d9dd1839de79
* * generic/tclIOUtil.c (Tcl_FSMatchInDirectory): correctedhobbs2001-08-021-21/+23
| | | | | | uninitialized value. FossilOrigin-Name: 92e08470094e3348272042bda4a07d97e7d28d42
* * generic/tclPlatDecls.h:mdejong2001-08-021-25/+7
| | | | | | | | | | * win/tclWinPort.h: Revert <tchar.h> related changes made to improve Cygwin support on 2001-07-18. This change ended up breaking the VC++ build because of conflicts between Windows APIs and internal Tk APIs. FossilOrigin-Name: 5e4792ac7a8977d948af62bea600a3649bd8429e
* Changes from TIP#17 "Redo Tcl's filesystem"vincentdarley2001-07-3121-1029/+5842
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The following files were impacted. * doc/Access.3: * doc/FileSystem.3: * doc/OpenFileChnl.3: * doc/file.n: * doc/glob.n: * generic/tcl.decls: * generic/tcl.h: * generic/tclCmdAH.c: * generic/tclCmdIL.c: * generic/tclCmdMZ.c: * generic/tclDate.c: * generic/tclDecls.h: * generic/tclEncoding.c: * generic/tclFCmd.c: * generic/tclFileName.c: * generic/tclGetDate.y: * generic/tclIO.c: * generic/tclIOCmd.c: * generic/tclIOUtil.c: * generic/tclInt.decls: * generic/tclInt.h: * generic/tclIntDecls.h: * generic/tclLoad.c: * generic/tclStubInit.c: * generic/tclTest.c: * generic/tclUtil.c: * library/init.tcl: * mac/tclMacFCmd.c: * mac/tclMacFile.c: * mac/tclMacInit.c: * mac/tclMacPort.h: * mac/tclMacResource.c: * mac/tclMacTime.c: * tests/cmdAH.test: * tests/event.test: * tests/fCmd.test: * tests/fileName.test: * tests/io.test: * tests/ioCmd.test: * tests/proc-old.test: * tests/registry.test: * tests/unixFCmd.test: * tests/winDde.test: * tests/winFCmd.test: * unix/mkLinks: * unix/tclUnixFCmd.c: * unix/tclUnixFile.c: * unix/tclUnixInit.c: * unix/tclUnixPipe.c: * win/tclWinFCmd.c: * win/tclWinFile.c: * win/tclWinInit.c: * win/tclWinPipe.c FossilOrigin-Name: 9461aca54800a289624dfe39d333e41e20168ac3
* * generic/tclPlatDecls.h: Define TCHAR by includingmdejong2001-07-191-7/+25
| | | | | | | | | | | | windows.h instead of tchar.h since Cygwin does not support the tchar.h header. Include CHECK_UNICODE_CALLS logic from tclWinPort.h. * win/tclWinPort.h: Remove CHECK_UNICODE_CALLS logic. Remove include of windows.h since this now done it tclPlatDecls.h. * win/tclWinReg.c: Remove duplicate include of windows.h. FossilOrigin-Name: 750a94af1da9e3de8c5a743d05420417ebcc8e71
* 2001-07-18 Andreas Kupries <andreas_kupries@users.sourceforge.net>andreas_kupries2001-07-181-1/+25
| | | | | | | | | * generic/tclIO.c: Aftermath to [SF #427196]. Squash empty buffers if they are smaller than the requested buffersize, to prevent reusage of old buffers and to honor changes in the requested buffersize made by the user. FossilOrigin-Name: f732d07f7943bce22d508ef1151dfe1a67478fb7
* 2001-07-17 Andreas Kupries <andreas_kupries@users.sourceforge.net>andreas_kupries2001-07-171-2/+16
| | | | | | | | | | | | * generic/tclIO.c (GetInput): Fixed [SF #427196]. Memory was overwritten because a buffer was used after a change of the requested buffersize together with that requested buffersize and not its actual size, which was smaller. Note that the continous reuse of the smaller buffer negatively impacts performance. The system never allocates a buffer with the newly requested bigger buffersize. FossilOrigin-Name: c3fafed4c209104cc9d4f50e66c13b941e7005dc
* * generic/tcl.h: Define __WIN32__ whenmdejong2001-07-172-5/+7
| | | | | | | | | __CYGWIN__ or __MINGW32__ is defined. * generic/tclAlloc.c: Define caddr_t when compiling with VC++ or mingw. This type is already defined when compiling with Cygwin. FossilOrigin-Name: 61cfc6bb3b50f61dadc5d363f057b6b6e502dd9c
* * generic/tclCmdMZ.c: Removed extra copy of the SCAN_* macroshobbs2001-07-161-17/+1
| | | | | | #defined in generic/tclScan.c. (porter) [Bug 441230] FossilOrigin-Name: c09c476a2f7c80a2fc1fa210fdd37dadd1c60356
* 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.) FossilOrigin-Name: ea6ab47ee7480478f9483420f0c5ea3053d28cf4
* * tests/var.test:hobbs2001-07-041-1/+6
| | | | | | | * generic/tclVar.c (Tcl_VariableObjCmd): added patch to check for number of args. [Patch #426038] FossilOrigin-Name: 1e4a59710d9858c6a81fe86dc6fd80e6e392b180
* * 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. FossilOrigin-Name: 6a80a5463bd1b0b08690906f366949fe9a31c028
* * 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. FossilOrigin-Name: cdb24ed9699632f1c38b5d2e8445dbe8f5910caf
* * 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] FossilOrigin-Name: 8ee4571bc620e35190a9217409e007663b749a6a
* Correction to faulty patch for bug #231259msofer2001-06-281-2/+2
| | | FossilOrigin-Name: 29a438a54a906ac6e599e3655857d69507527bf5
* * 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. FossilOrigin-Name: c8e42a8b01536abb5c2baf86413bcfb58732becd
* * tests/subst.test:hobbs2001-06-281-6/+17
| | | | | | | * generic/tclUtf.c (Tcl_UtfBackslash): Corrected backslash handling of multibyte utf-8 chars. [Bug #217987] FossilOrigin-Name: 7eba85bf31a83498778ba7f6ea29b16595eda024
* * generic/tclCmdIL.c (InfoProcsCmd): fixed potential mem leak inhobbs2001-06-281-9/+9
| | | | | | info procs that created objects without using them. FossilOrigin-Name: 55fb744f1f134d320bae32513e010884c78a8876
* * generic/tclCompCmds.c (TclCompileStringCmd): fixed mem leak whenhobbs2001-06-281-1/+2
| | | | | | string command failed to parse the subcommand. FossilOrigin-Name: 2c3687f91b2945c75ffc3d915e4b1431d52091cc
* * 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. FossilOrigin-Name: 0a5ecd45a142251ebb54658ab941b696e8cdf3d3
* Fix for bug #219232 (submatch errors with regexp -all -inline -indices)dkf2001-06-121-2/+6
| | | FossilOrigin-Name: f2e4ec3026f4c29c17aa6c425cd9b2fa36a85cc0
* * 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] FossilOrigin-Name: 75dd12c4bf756936e2fe52221817ad6afe6b263a
* * generic/tclUtil.c (Tcl_DStringAppendElement): patch to save anhobbs2001-06-041-4/+6
| | | | | | extra strlen call. [Bug #428572] FossilOrigin-Name: d439e36fe86e91e3e08a9ec1154c5255cdc79abd
* Added casts to stop warnings with SUNWspro cc on Solaris8.dkf2001-05-311-3/+3
| | | FossilOrigin-Name: 22392a728ee7e898ac4d39fe6dc3e91f06d86c5b
* Changes from TIP#15 "Functions to List and Detail Math Functions"dkf2001-05-305-7/+204
| | | FossilOrigin-Name: 7ffaef4d549de93de979dd568f2be81570da4eaf
* minor comment changeshobbs2001-05-281-2/+3
| | | FossilOrigin-Name: 111a5c5b891beb8653c62228525356546e26f99d
* * 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. FossilOrigin-Name: 07fa5ce75a13302eb638d661f4d3445fe643dbf0
* [Patch #424851]: Faster array searching & obj cleanupmsofer2001-05-265-50/+130
| | | FossilOrigin-Name: 730cd270f40868e988650a5519390091adc56626
* * 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. FossilOrigin-Name: f800a4ff5ab5d4ec3349af33174a8e29cf51c048
* removed unnecessary Tcl_DuplicateObj in generic/tclExecute.cmsofer2001-05-221-2/+2
| | | FossilOrigin-Name: e6bca92e885259b4c7e5c2a7bfbf8ce8857dcf42
* * generic/tclRegexp.c (Tcl_RegExpExecObj): added use ofhobbs2001-05-211-3/+2
| | | | | | Tcl_GetUnicodeFromObj. FossilOrigin-Name: 13a1b0b7fc5745f67b6800f3f7299ddc9050c902
* * 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]. FossilOrigin-Name: cff0564319e6d5906699199ba548d377c95e6909
* * 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. FossilOrigin-Name: a63c0633e9ec7825ed92abf8aaa6fbe116d0f690
* generic/tclCmdMZ.c: made use of new Tcl_GetUnicodeFromObjhobbs2001-05-171-62/+60
| | | FossilOrigin-Name: f77d8a82518c971cfd9719c575c55b5406be616d
* * 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). FossilOrigin-Name: fe1162706a0fd97cfb21c9e2db70be2c41bc50f2
* * generic/tclFileName.c (ExtractWinRoot): corrected ABR errorhobbs2001-05-151-12/+11
| | | FossilOrigin-Name: 4134b9c3d44e5548024dc14df7ce6da55f64a05c
* Patch from [Bug: 231259]msofer2001-05-152-7/+20
| | | FossilOrigin-Name: 55d8fa19bf99b4f41e86e5aabcf7965cb61b8792
* Negative start index to [string first] caused offset return value (Bug 423581)dkf2001-05-141-1/+7
| | | FossilOrigin-Name: d8f5293bb01a92e4d23206a6906260aeefca4ed9
* rand() gets != seeds in != threads [Bug 416643]msofer2001-05-071-2/+8
| | | FossilOrigin-Name: 679d116ef39e6e5c418da92ecf28583df16d4c80
* Patch for bug #420507msofer2001-05-031-2/+2
| | | FossilOrigin-Name: 1b1c7f5a8667bd0b6ef566c53b71f400e87dd7f3
* Added several missing CONSTs in calls to TclGetNamespaceForQualNamekennykb2001-04-276-19/+24
| | | FossilOrigin-Name: 0d69de502723e66c209241d6c3dc073458ac946c
* Added a bunch of missing CONST declarations to stop warnings aboutdkf2001-04-252-11/+15
| | | | | | using TclGetNamespaceForQualName from the (Solaris8) SUNWspro cc. FossilOrigin-Name: 4df1ba8b19d6eab1ec4f7d43b15ffbfc7b309fbe
* (TIP #27) Another round of CONST changes, thiskennykb2001-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. FossilOrigin-Name: 2d62b07770c481a983f09145ea7e5a43f63c1d16
* Recognise the non-numeric boolean literals (true,false,yes,no,on,off.)dkf2001-04-091-3/+47
| | | | | | [Bug #217777] FossilOrigin-Name: 738883f61ad960098bf74145124ac2b135bf7553
* Avoid panic when there are extra items in the tcl stackmsofer2001-04-071-3/+7
| | | | | | [Bug #406709, Patch #414470] FossilOrigin-Name: 37a039f67315fb84f09ca672b738e91067fd0648
* Corrected behaviour of [namespace code] (bug #219385, patch #403530)msofer2001-04-071-4/+8
| | | FossilOrigin-Name: be05dac289c878a93efbe98a94e422df3cf27f48