summaryrefslogtreecommitdiffstats
path: root/library/init.tcl
Commit message (Collapse)AuthorAgeFilesLines
* TIP#268 IMPLEMENTATIONandreas_kupries2006-09-221-2/+2
| | | | | | | | | | | | | | | | | | | | * generic/tclDecls.h: Regenerated from tcl.decls. * generic/tclStubInit.c: * doc/PkgRequire.3: Documentation of extended API, * doc/package.n: extended testsuite. * tests/pkg.test: * generic/tcl.decls: Implementation. * generic/tclBasic.c: * generic/tclConfig.c: * generic/tclInt.h: * generic/tclPkg.c: * generic/tclTest.c: * generic/tclTomMathInterface.c: * library/init.tcl: * library/package.tcl: * library/tm.tcl:
* TIP#258 IMPLEMENTATIONdgp2006-02-081-6/+8
| | | | | | | | | | | | | | | | | | | | | * doc/Encoding.3: New subcommand [encoding dirs]. * doc/encoding.n: New routine Tcl_GetEncodingNameFromEnvironment. * generic/tcl.decls: Made public: * generic/tclBasic.c: TclGetEncodingFromObj * generic/tclCmdAH.c: -> Tcl_GetEncodingFromObj * generic/tclEncoding.c:TclGetEncodingSearchPath * generic/tclInt.decls: -> Tcl_GetEncodingSearchPath * generic/tclInt.h: TclSetEncodingSearchPath * generic/tclTest.c: -> Tcl_SetEncodingSearchPath * library/init.tcl: Removed commands: * tests/cmdAH.test: [tcl::unsupported::EncodingDirs] * tests/encoding.test: [testencoding path] (Tcltest) * unix/tclUnixInit.c: [Patch 1413934]. * win/tclWinInit.c: * generic/tclDecls.h: make genstubs * generic/tclIntDecls.h: * generic/tclStubInit.c:
* fix comment typohobbs2005-09-301-3/+3
|
* init value to (-)Inf for min/max expr functions to simplify codehobbs2005-09-301-15/+9
|
* implementation for TIP #255, expr min/maxhobbs2005-09-291-1/+43
|
* * generic/tclStringObj.c: Bug fixes: ObjPrintfVA needed todgp2005-09-141-3/+3
| | | | | | | | | | | | | support "*" fields and needed to interpret precision limits on %s conversions as a number of bytes, not Tcl_UniChars, to take from the (char *) argument. * generic/tclBasic.c: Updated several callers to use * generic/tclCmdMZ.c: TclFormatToErrorInfo(). * generic/tclIOUtil.c: * library/init.tcl: Keep [unknown] in sync with errorInfo formatting rules.
* TIP#219 IMPLEMENTATIONandreas_kupries2005-08-241-18/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | * doc/SetChanErr.3: ** New File **. Documentation of the new channel API functions. * generic/tcl.decls: Stub declarations of the new channel API. * generic/tclDecls.h: Regenerated * generic/tclStubInit.c: * tclIORChan.c: ** New File **. Implementation of the reflected channel. * generic/tclInt.h: Integration of reflected channel and new error * generic/tclIO.c: propagation into the generic I/O core. * generic/tclIOCmd.c: * generic/tclIO.h: * library/init.tcl: * tests/io.test: Extended testsuite. * tests/ioCmd.test: * tests/chan.test: * generic/tclTest.c: * generic/tclThreadTest.c: * unix/Makefile.in: Integration into the build machinery. * win/Makefile.in: * win/Makefile.vc:
* * library/init.tcl ([unknown]): Corrected return code handlingdgp2005-07-271-4/+14
| | | | | in the portions of [unknown] that expand incomplete commands during interactive operations. [Bug 1214462].
* * library/auto.tcl: Updates to the Tcl script library to makedgp2005-07-231-27/+30
| | | | | | | | * library/history.tcl: use of Tcl 8.4 features. Forward port of * library/init.tcl: appropriate portions of [Patch 1237755]. * library/package.tcl: * library/safe.tcl: * library/word.tcl:
* TIP#208 implementationdkf2005-06-061-1/+21
| | | | It's crude (especially in the tests and docs department) and incomplete (no truncation on non-POSIX platforms).
* * library/init.tcl: Updated [unknown] to be sure the [return]dgp2005-05-241-2/+3
| | | | | * tests/init.test: options from an auto-loaded command are seen correctly by the caller.
* Merged kennykb-numerics-branch back to the head; TIPs 132 and 232Kevin B Kenny2005-05-101-1/+1
|
* * library/init.tcl: Corrected flaw in interactive commanddgp2005-04-281-2/+2
| | | | * tests/main.test: auto-completion. [Bug 1191409].
* * library/init.tcl: Use "ni" and "in" operators.dgp2005-04-251-7/+7
|
* typodgp2005-04-191-2/+2
|
* * generic/tclBasic.c: Added unsupported commanddgp2005-04-191-39/+45
| | | | | | | | * generic/tclCmdAH.c: [::tcl::unsupported::EncodingDirs] to permit * generic/tclInt.h: query/set of the encoding search path at * generic/tclInterp.c: the script level. Updated init.tcl to make * library/init.tcl: use of the new command. Also updated several coding practices in init.tcl ("eq" for [string equal], etc.)
* * library/init.tcl: Use auto-loading to bring in Tcl Moduledgp2005-04-151-44/+29
| | | | | | * library/tclIndex: support as needed. This reduces startup * library/tm.tcl: time by delaying this initialization to a later time.
* D'oh! Deal with missing ::errorCode or ::errorInfo.dgp2004-11-301-5/+5
|
* * library/init.tcl ([unknown]): Restored the save/restore ofdgp2004-11-301-1/+5
| | | | | the variables ::errorCode and ::errorInfo. This is needed when the [::bgerror] command is auto-loaded (as it is by Tk).
* * library/init.tcl ([unknown]): Corrections to the 2004-10-25 modsdgp2004-11-031-2/+4
| | | | | | | to Aunt ??? in [unknown]. Flaws revealed by Itcl test suite, which still apparently relies on this brokenness. Also added comment suggesting the error message that any code using this hack *ought* to receive in reply.
* * library/auto.tcl Purged Tcl's script library of alldgp2004-10-251-34/+23
| | | | | | | | | | | * library/clock.tcl remaining references to global vars * library/init.tcl ::errorInfo and ::errorCode. * generic/tclMain.c (Tcl_Main): Updated to make use of TclGetReturnOptions instead of ::errorInfo variable. * generic/tclInterp.c (tclInit): Bug fix. Access dict variables with [dict get], not array syntax.
* * library/init.tcl: Integrated TIP #189. We source a separate fileandreas_kupries2004-08-181-1/+7
| | | | | | | | | | | | (see below), instead of inlining the contents of that file. This should beeasier to maintain, and easier to backport/install in 8.4 installations. Note: Usage of Tcl Modules is restricted to non-safe interps. It cannot be loaded into a safe interp. * library/tm.tcl: New file, the v2 reference implementation for TIP #189, Tcl Modules.
* TIP #173 and #209 implementation - see ChangeLog for detailsKevin B Kenny2004-08-181-1/+37
|
* * doc/library.n: Moved variables ::auto_oldpath anddgp2004-06-161-9/+11
| | | | | * library/auto.tcl: ::unknown_pending into ::tcl namespace. * library/init.tcl: [Bugs 808319, 948794]
* * unix/tclUnixInit.c: The routines Tcl_Init() and TclSourceRCFile()dgp2004-06-111-2/+2
| | | | | | | | | | * win/tclWinInit.c: had identical implementations for both win and * generic/tclInterp.c: unix. Moved to a single generic implementation. * generic/tclMain.c: * library/init.tcl: * generic/tclInitScript.h (removed): * unix/Makefile.in: * win/tcl.dsp:
* * library/init.tcl: Corrected unique prefix matching ofdgp2004-05-031-3/+12
| | | | interactive command completion in [unknown]. [Bug 946952]
* Removed support for Mac OS Classic platform [Patch 918142]das2004-03-171-6/+2
|
* filesystem fixes for '-force' consistency and picky compilersvincentdarley2004-01-291-5/+12
|
* * generic/tclBasic.c (TclAppendObjToErrorInfo): New internal routinedgp2003-10-141-4/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* * library/init.tcl (auto_load, auto_import): Expanded Eric Melski'sdgp2003-09-231-16/+17
| | | | | | 2000-01-28 fix for [Bug 218871] to all potentially troubled uses of [info commands] on input data, where glob-special characters could cause problems.
* * README: Bumped version number ofdgp2003-03-041-2/+2
| | | | | | | | | | | | | | | | | | | | | | | * generic/tcl.h: Tcl to 8.5a0. * library.init.tcl: * mac/README: * macosx/Tcl.pbproj/project.pbxproc: * tests/basic.test: * tools/configure.in: * tools/tcl.hpj.in: * tools/tcl.wse.in: * unix/configure.in: * unix/tcl.spec: * win/README: * win/README.binary: * win/configure.in: * win/makefile.bc: * win/makefile.vc: * win/tcl.m4: * tools/configure: autoconf * unix/configure: * win/configure:
* * library/init.tcl: code cleanup to reduce use ofhobbs2002-11-231-5/+5
| | | | * library/opt/optparse.tcl: string compare
* * library/auto.tcl: Converted the Mac-specific [package unknown]dgp2002-10-281-1/+12
| | | | | | * library/init.tcl: behavior to use a chaining mechanism to extend * library/package.tcl: the default [tclPkgUnknown]. [Bug 627660] * library/tclIndex: [Patch 624509] (steffen)
* [info exist]->[info exists]. [Bug 602566]dkf2002-10-031-3/+3
|
* * Corrected comments and namespace styledgp2002-06-211-48/+47
| | | | issues. Thanks to Bruce Stephens. [Bug 572025]
* * library/init.tcl: make sure env(COMSPEC) on Windows is executedhobbs2001-12-291-2/+9
| | | | with the right case, as it may otherwise fail inexplicably.
* vfs robustness fixvincentdarley2001-11-041-11/+13
|
* Changes from TIP#17 "Redo Tcl's filesystem"vincentdarley2001-07-311-1/+80
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* removed errant " charhobbs2001-05-281-2/+2
|
* Fix for Bug 420186dgp2001-05-031-4/+5
|
* Corrected behaviour of [namespace code] (bug #219385, patch #403530)Miguel Sofer2001-04-071-2/+2
|
* Modified processing of $::errorInfo by [unknown] when the auto-loaded commanddgp2001-04-061-7/+41
| | | | | throws an error to better cover the tracks of auto-loading. [Bug 219280, Patch 403551]
* 2000-12-10 Don Porter <dgp@users.sourceforge.net>dgp2000-12-111-5/+5
| | | | | | | | | | | | | | * library/init.tcl: * library/msgcat/msgcat.tcl: * library/msgcat/pkgIndex.tcl: * library/opt/optparse.tcl: * library/opt/pkgIndex.tcl: Where [uplevel] is used in a proc to evaluate a Tcl built-in command in the caller's context, the built-in commands are now fully namespace-qualified. This prevents problems when the caller context is in a namespace where the built-in command name has been used by a command in the namespace. (For example, [::ns::set] might be called instead of the intended [::set]). [Bug #119422, Patch #102545]
* * library/init.tcl: Added support for PATHEXT variable inhobbs2000-12-091-3/+9
| | | | | auto_execok, recognizing the proper set of executable extensions on Windows. [Patch #102719]
* Improved use of [uplevel] in unknown. Fixes #123217dkf2000-11-231-7/+7
|
* * library/init.tcl (auto_import): added check to see if a validhobbs2000-05-181-1/+7
| | | | pattern was coming in, to avoid simple error cases [Bug: 3326]
* * README:hobbs2000-05-031-2/+2
| | | | | | | | | | | | | | | | | | * generic/tcl.h: * library/init.tcl: * library/reg1.0/pkgIndex.tcl: * library/tcltest1.0/tcltest.tcl: * mac/README: * tools/tcl.hpj.in: * tools/tcl.wse.in: * unix/README: * unix/configure.in: * unix/tcl.spec: * win/README: * win/README.binary: * win/configure.in: * win/makefile.vc: * win/tcl.m4: updated patchlevel to 8.4a1
* * library/init.tcl: Applied patch from rfe 1734 regardingericm2000-02-011-3/+3
| | | | auto_load errors not setting error message and errorInfo properly.
* * tests/package.test:ericm2000-02-011-5/+5
| | | | | | | | | | | | | | | | | * library/tclIndex: * library/package.tcl: Added ::package namespace and ::package::create function. * library/init.tcl: Fixed problem with auto_load and determining if commands were loaded. * library/auto.tcl: "Fixed" issues with $ in files to be auto indexed. * doc/Package.n: New man page for package::create function. * doc/pkgMkIndex.n: Added additional information. * doc/library.n: Added additional qualification regarding auto_mkindex.
* * tests/pkg/magicchar2.tcl:ericm2000-01-291-3/+9
| | | | | | | | | * tests/autoMkindex.test: Test for auto loader fix (bug #2480). * library/init.tcl: auto_load was using [info commands $name] to determine if a given command was available; if the command name had * or [] it, this would fail because info commands uses glob-style matching. This is fixed. (Bug #2480).