summaryrefslogtreecommitdiffstats
path: root/generic
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
|
* * generic/tclCompCmds.c (TclCompileIfCmd): Prior fix of Bug 711371dgp2003-07-151-3/+6
| | | | on 2003-04-07 introduced a buffer overflow. Corrected. [Bug 771613]
* Fixed error message to be less confusing [Bug 771539]dkf2003-07-151-2/+2
|
* [string map] now can take dictionaries for maps but the condition for doing sodkf2003-07-041-18/+60
| | | | is deeply tricky. [Bug 759936]
* Made [array get] return a dictionary, and allowed [array set] to accept onedkf2003-07-031-30/+83
| | | | | without having to convert it to a list (though lists are still preferred.) [Bug 759935]
* Win compilation fixvincentdarley2003-07-021-2/+2
|
* Modified expression of tests and added comments for easier understandingdgp2003-06-271-7/+40
| | | | by future maintainers.
* More trace factoring - variable traces are the target this time.dkf2003-06-265-747/+780
|
* Factored out the trace code - it's big enough to be its own maintenance areadkf2003-06-253-2285/+2301
| | | | and tricky enough to discourage non-specialists...
* No more div-by-zero errors. [Bug 759749]dkf2003-06-241-2/+4
|
* filesystem fixes -- see ChangeLogvincentdarley2003-06-231-1/+9
|
* * generic/tclNamesp.c (Tcl_Export): removed erroneous commentsMiguel Sofer2003-06-181-4/+2
| | | | [Bug 756744]
* regsub empty string fixes, and windows buildvincentdarley2003-06-171-6/+16
|
* * generic/tclConfig.c (ASSOC_KEY): Changed the key toandreas_kupries2003-06-101-2/+2
| | | | | "tclPackageAboutDict" (tcl prefix) to make collisions with the keys of other packages more unlikely.
* fix for previous commitMiguel Sofer2003-06-101-1/+2
|
* * generic/tclBasic.c:Miguel Sofer2003-06-102-25/+19
| | | | | | | * generic/tclExecute.c: let TclExecuteObjvInternal call TclInterpReady instead of relying on its callers to do so; fix for the part of [Bug 495830] that is new in 8.4. * tests/interp.test: Added tests 18.9 (knownbug) and 18.10
* * generic/tcl.decls: Ported the changes from theandreas_kupries2003-06-098-6/+530
| | | | | | | | | | | | | | | | | * generic/tcl.h: 'tip-59-implementation' branch into the CVS * generic/tclBasic.c: head. Regenerated stub table. Regenerated * generic/tclInt.h: the configure's scripts, with help from Joe * generic/tclDecls.h English. * generic/tclStubInit.c: * generic/tclConfig.c: * generic/tclPkgConfig.c: * unix/Makefile.in: * unix/configure.in: The changes in the windows section are not * unix/tcl.m4: yet committed, they await feedback from * unix/mkLinks: David Gravereaux. * doc/RegConfig.3: * mac/tclMacPkgConfig.c: * tests/config.test:
* * generic/tclObj.c (tclCmdNameType): Converted internal repdgp2003-05-231-8/+18
| | | | | | | | management of the cmdName Tcl_ObjType the opposite way, to always use the twoPtrValue instead of always using the otherValuePtr. Previous fix on 2003-05-12 broke several extensions that wanted to poke around with the twoPtrValue.ptr2 value of a cmdName Tcl_Obj, like TclBlend and e4graph. [Bug 726018]
* * compat/strftime.c: Modified TclpStrftime to return its Kevin B Kenny2003-05-181-15/+6
| | | | | | | | * generic/tclClock.c: result in UTF-8 encoding, and removed * mac/tclMacTime.c: the conversion from system encoding to * unix/tclUnixTime.c: UTF-8 from [clock format]. Needed to * win/tclWinTime.c: avoid double conversion of the timezone name on Windows systems. [Bug 624408]
* Fixed Tcl bug 736425Kevin B Kenny2003-05-152-4/+168
|
* Stopped [format] from demoting wides to ints too easily. [Bug 699060]dkf2003-05-141-3/+14
|
* Implementation of TIP 118:das2003-05-144-14/+95
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclFCmd.c (TclFileAttrsCmd): return the list of attributes that can be retrieved without error for a given file, instead of aborting the whole command when any error occurs. * unix/tclUnixFCmd.c: added support for new file attributes and for copying Mac OS X file attributes & resource fork during [file copy]. * generic/tclInt.decls: added declarations of new external commands needed by new file attributes support in tclUnixFCmd.c. * macosx/tclMacOSXFCmd.c (new): Mac OS X specific implementation of new file attributes and of attribute & resource fork copying. * mac/tclMacFCmd.c: added implementation of -rsrclength attribute & fixes to other attributes for consistency with OSX implementation. * mac/tclMacResource.c: fixes to OSType handling. * doc/file.n: documentation of [file attributes] changes. * unix/configure.in: check for APIs needed by new file attributes. * unix/Makefile.in: * unix/tcl.m4: added new platform specifc tclMacOSXFCmd.c source. * unix/configure: * generic/tclStubInit.c: * generic/tclIntPlatDecls.h: regen. * tools/genStubs.tcl: fixes to completely broken code trying to prevent overlap of "aqua", "macosx", "x11" and "unix" stub entries. * tests/unixFCmd.test: added tests of -readonly attribute. * tests/macOSXFCmd.test (new): tests of macosx file attributes and of preservation of attributes & resource fork during [file copy]. * tests/macFCmd.test: restore -readonly attribute of test dir, as otherwise its removal can fail on unices supporting -readonly.
* Another putenv() copy behavior problem repaired when compiling on windowsdavygrvy2003-05-141-1/+6
| | | | and using microsoft's runtime. [Bug 736421]
* * generic/tclIOUtil.c: ensure cd is thread-safe.hobbs2003-05-131-69/+103
| | | | [Bug #710642] (vasiljevic)