summaryrefslogtreecommitdiffstats
path: root/generic
Commit message (Collapse)AuthorAgeFilesLines
* whitespace policedkf2003-10-141-131/+116
|
* regsub fixvincentdarley2003-10-141-2/+13
|
* * generic/tclBasic.c (TclAppendObjToErrorInfo): New internal routinedgp2003-10-1412-191/+247
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | that appends a Tcl_Obj to the errorInfo, saving the caller the trouble of extracting the string rep. * generic/tclStringObj.c (TclAppendLimitedToObj): New internal routine that supports truncated appends with optional ellipsis marking. This single routine supports UTF-8-safe truncated appends needed in several places throughout the Tcl source code, mostly for error and stack messages. Clean fix for [Bug 760872]. * generic/tclInt.h: Declarations for new internal routines. * generic/tclCmdMZ.c: Updated callers to use the new routines. * generic/tclCompExpr.c: * generic/tclCompile.c: * generic/tclExecute.c: * generic/tclIOUtil.c: * generic/tclNamesp.c: * generic/tclObj.c: * generic/tclParseExpr.c: * generic/tclProc.c: * generic/tclStringObj.c: * mac/tclMacResource.c: * library/init.tcl: Updated ::errorInfo cleanup in [unknown] to reflect slight modifications to Tcl_LogCommandInfo(). Corrects failing init-4.* tests.
* TIP#127 Implementation. Thanks to Michael Schlenker for his implementation workdkf2003-10-141-155/+443
|
* filesystem bug fixesvincentdarley2003-10-135-22/+208
|
* Exported symbol name police (thanks GPS for spotting this!)dkf2003-10-103-20/+19
|
* * win/makefile.vc: Applied patches for bug #801467 by Joe Mistachkinpatthoyts2003-10-091-1/+2
| | | | | * win/tclAppInit.c: to fix incompatible TCL_MEM_DEBUG handling in * generic/tclObj.c: Win32 VC builds.
* * generic/tclBasic.c: Save and restore the iPtr->flag bits thatdgp2003-10-081-1/+12
| | | | | | | control the state of errorCode and errorInfo management when calling "leave" execution traces, so that all error information of the traced command is still available whether traced or not. [Bug 760947] Thanks to Yahalom Emet.
* Made Tcl_NumUtfChars do the right thing with \u0000 when guessing the lengthdkf2003-10-082-7/+30
| | | | because of a negative 'length' parameter. [Bug 769812]
* fix for [Bug 816641] - faulty execution and catch stack management.Miguel Sofer2003-10-041-19/+16
|
* * generic/tclBasic.c: Fixed error in ref count management of commanddgp2003-10-032-13/+32
| | | | | * generic/tclCmdMZ.c: and execution traces that caused access to freed memory in trace-32.1. [Bug 811483].
* * generic/tclTrace.c: Corrected comingling of introspection results ofdgp2003-10-021-1/+17
| | | | | [trace info command] and [trace info execution]. [Bug 807243] Thanks to Mark Saye.
* fixed inconsistent handling of file separators in file joinvincentdarley2003-09-301-34/+53
|
* Remove unintentional check-in of work-in-progressdkf2003-09-291-35/+1
|
* Undid bozo check-in of work-in-progressdkf2003-09-291-44/+1
|
* Symbols which are visible outside a single compilation unit must havedkf2003-09-293-28/+28
| | | | | the prefix 'Tcl' to keep them out of the way of non-Tcl C code on Unix. (Problem reported by George Staplin.)
* Undo mistaken commit of work-in-progressdkf2003-09-291-495/+7
|
* Regendkf2003-09-292-2/+13
|
* TIP#121 (app exit proc API) implementation from Joe Mistachkindkf2003-09-295-13/+648
|
* TIP#112 ([namespace ensemble] command) implementation.dkf2003-09-294-93/+1761
|
* fix failure of previous commit on Alpha platformMiguel Sofer2003-09-231-26/+18
|
* * generic/tclExecute.c:Miguel Sofer2003-09-232-162/+150
| | | | | | * generic/tclInt.h: changed the evaluation-stack addressing mode, from array-style to pointer-style; the catch stack and evaluation stack are now contiguous in memory. [Patch 457449]
* * generic/tclExecute.c: adding (DE)CACHE_STACK_INFO() pairs to protect all ↵Miguel Sofer2003-09-191-17/+77
| | | | | | calls that may cause traces on ::errorInfo or ::errorCode to corrupt the stack [Bug 804681] ----------------------------------------------------------------------
* fileName test suite bug fixvincentdarley2003-09-181-3/+10
|
* minor filesystem bug fixesvincentdarley2003-09-161-10/+55
|
* Oops! Last checkin had wrong value for LAST_INST_OPCODE. D'oh!dkf2003-09-151-2/+2
|
* TIP#123 Implementation based on work by Arjen Markus. [Patch 655176]dkf2003-09-125-21/+292
|
* * doc/FileSystem.3: Implementation ofdgp2003-09-058-45/+218
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/source.n: TIPs 137/151. Adds * doc/tclsh.1: a -encoding option to * generic/tcl.decls: the [source] command * generic/tclCmdMZ.c (Tcl_SourceObjCmd): and a new C routine, * generic/tclIOUtil.c (Tcl_FSEvalFileEx): Tcl_FSEvalFileEx(), * generic/tclMain.c (Tcl_Main): that provides C access * mac/tclMacResource.c (Tcl_MacSourceObjCmd): to the same function. * tests/cmdMZ.test: Also adds command line * tests/main.test: option handling in Tcl_Main() so that tclsh * tests/source.test: and other apps built on Tcl_Main() respect a -encoding command line option before a script filename. Docs and tests updated as well. [Patch 742683] This is a ***POTENTIAL INCOMPATIBILITY*** only for those C programs that embed Tcl, build on Tcl_Main(), and make use of Tcl_Main's former ability to pass a leading "-encoding" option to interactive shell operations. * generic/tclInt.decls: Added internal stub * generic/tclMain.c (Tcl*StartupScript*): table entries for two new functions Tcl_SetStartupScript() and Tcl_GetStartupScript() that set/get the path and encoding for the startup script to be evaluated by either Tcl_Main() or Tk_Main(). Given public names in anticipation of their exposure by a followup TIP. * generic/tclDecls.h: make genstubs * generic/tclIntDecls.h: * generic/tclStubInit.c:
* * doc/SplitList.3: Implementation of TIP 148. Fixes [Bug 489537].dgp2003-09-045-15/+58
| | | | | | | | | | * generic/tcl.h: Updated Tcl_ConvertCountedElement() to quote * generic/tclUtil.c: the leading "#" character of all list elements unless the TCL_DONT_QUOTE_HASH flag is passed in. * generic/tclDictObj.c: Updated Tcl_ConvertCountedElement() callers * generic/tclListObj.c: to pass in the TCL_DONT_QUOTE_HASH flags * generic/tclResult.c: when appropriate.
* * generic/tclCmdAH.c: Corrected bug in TIP 90 implementationdgp2003-08-291-1/+8
| | | | | | * tests/cmdMZ.test: where the default -errorcode NONE value was not copied into the return options dictionary. This correction modified one test result.
* additional performance tweak to last commit.dgp2003-08-271-3/+14
|
* * generic/tclUtil.c: Corrected [Bug 411825] and other bugs indgp2003-08-271-25/+36
| | | | | | TclNeedSpace() where non-breaking space (\u00A0) and backslash-escaped spaces were handled incorrectly. * tests/util.test: Added new tests util-8.[2-6].
* Revert mistaken commit.dgp2003-08-271-35/+21
|
* * tests/util.test: Added new tests for remaining TclNeedSpace()dgp2003-08-271-21/+35
| | | | bugs discussed in [Bug 411825].
* Added some support for the OpenWatcom compiler. A win/makefile.wc todavygrvy2003-08-271-3/+6
| | | | follow soon.
* Added some support for the LCC-Win32 compiler. Unfortunetly, this compilerdavygrvy2003-08-261-2/+2
| | | | has a bug in its preprocessor and can't build Tcl even with this minor patch.
* Regendkf2003-08-254-4/+2221
|
* Regendkf2003-08-252-2/+117
|
* Duplicated declarations for TIP#139; docs still to do.dkf2003-08-251-3/+49
|
* Applied changes from 8.4.4 regarding the Bug #753315vasiljevic2003-08-233-195/+251
|
* TIP#136 IMPLEMENTATION. We now have an [lrepeat] command!dkf2003-08-113-3/+95
|
* * generic/tclexecute.c (INST_INVOKE, INST_EVAL, INST_PUSH_RESULT):Miguel Sofer2003-08-051-4/+30
| | | | | | | | added a Tcl_ResetResult(interp) at each point where the interp's result is pushed onto the stack, to avoid keeping an extra reference that may cause costly Tcl_Obj duplication [Bug 781585] Detected by Franco Violi, analyzed by Peter Spjuth and Donal Fellows.
* * generic/tcl.h: Revert change made on 2003-07-21mdejong2003-07-243-26/+112
| | | | | | | | | | | | | | | since it made the sizeof(Tcl_Obj) different for regular vs mem debug builds. * generic/tclInt.h: Define TclDecrRefCount in terms of Tcl_DbDecrRefCount which removes one layer of inderection. * generic/tclObj.c (TclDbInitNewObj, Tcl_DbIncrRefCount, Tcl_DbDecrRefCount, Tcl_DbIsShared): Define ThreadSpecificData that contains a hashtable. The table is used to ensure that a Tcl_Obj is only acted upon in the thread that allocated it. This checking code is enabled only when mem debug and threads are enabled.
* Check that the thread incrementing or decrementingmdejong2003-07-223-24/+75
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | the ref count of a Tcl_Obj is the thread that originally allocated the thread. This fail fast behavior will catch programming errors that allow a single Tcl_Obj to be accessed from multiple threads. * generic/tcl.h (Tcl_Obj): Add allocThread member to Tcl_Obj. This member records the thread id the Tcl_Obj was allocated. It is used to check that any future ref count incr or decr is done from the same thread that allocated the Tcl_Obj. This member is defined only when threads and mem debug are enabled. * generic/tclInt.h (TclNewObj, TclDbNewObj, TclDecrRefCount): Define TclNewObj and TclDbNewObj using TclDbInitNewObj when mem debug is enabled. This fixes a problem where TclNewObj calls did not work the same as TclDbNewObj when mem debug was enabled. * generic/tclObj.c (TclDbInitNewObj, Tcl_DbIncrRefCount, Tcl_DbDecrRefCount): Add new helper to init Tcl_Obj members when mem debug is enabled. Init the allocThread member in TclDbInitNewObj and check it in Tcl_DbIncrRefCount and Tcl_DbDecrRefCount to make sure a Tcl_Obj allocated in one thread is not being acted upon in another thread.
* * unix/tclUnixFCmd.c: fix for compilation errors on platforms wheredas2003-07-181-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | configure detects non-functional chflags(). [Bug 748946] * macosx/Makefile: Rewrote buildsystem for Mac OS X framework build to be purely make driven; in order to become independent of Apple's closed-source IDE and build tool. The changes are intended to be transparent to the Makefile user, all existing make targets and cmd line variable overrides should continue to work. Changed build to only include tcl specific html help in Tcl.framework, the tk specific html help is now included in Tk.framework. Added var to allow overriding of tclsh used during html help building (Landon Fuller). * macosx/Tcl.pbproj/project.pbxproj: * macosx/Tcl.pbproj/jingham.pbxuser: Changed to purely call through to the make driven buildsystem; Tcl.framework is no longer assembled by ProjectBuilder. Set default SYMROOT in target options to simplify setting up PB (manually setting common build folder for tcl & tk no longer needed). * tools/tcltk-man2html.tcl: Added options to allow building only the tcl or tk html help files; the default behaviour with none of the new options is to build both, as before. * unix/Makefile.in: Added targets for building only the tcl or tk help. * macosx/README (new): Tcl specific excerpts of tk/macosx/README. * generic/tcl.h: Updated reminder comment about editing macosx/Tcl.pbproj/project.pbxproj when version number changes.
* 2003-07-16 Mumit Khan <khan@nanotech.wisc.edu>hobbs2003-07-172-41/+34
| | | | | | | | | * generic/tclPathObj.c (SetFsPathFromAny): Add Cygwin specific code to convert POSIX filename to native format. * generic/tclFileName.c (Tcl_TranslateFileName): And remove from here. (TclDoGlob): Adjust for cygwin and append / for dirs instead of \ * win/tclWinFile.c (TclpObjChdir): Use chdir on Cygwin. [Patch 679315]
* * generic/tcl.h: add recognition of -DTCL_UTF_MAX=6 on thehobbs2003-07-162-3/+26
| | | | | * generic/regcustom.h: make line to support UCS-4 mode. No config arg at this time, as it is not the recommended build mode.
* * generic/tclPreserve.c: In Result and Preserve'd routines, do nothobbs2003-07-163-21/+12
| | | | | * generic/tclUtil.c: assume that ckfree == free, as that is not * generic/tclResult.c: always true. [Bug 756791] (fuller)
* * generic/tclFileName.c (Tcl_GlobObjCmd): [Bug 771840]dgp2003-07-162-3/+4
| | | | | | * generic/tclPathObj.c (Tcl_FSConvertToPathType):[Bug 771947] * unix/tclUnixFCmd.c (GetModeFromPermString): [Bug 771949] Silence compiler warnings about unreached lines.
* Removed trivially-unreachable line [Bug 771939]dkf2003-07-161-2/+1
|