summaryrefslogtreecommitdiffstats
path: root/library/auto.tcl
Commit message (Collapse)AuthorAgeFilesLines
* Merge dup-removal into search loop so we avoid pre-processing efforts ondgp2016-08-261-8/+3
| | | data that are never used. Contributed patch from Brian Griffin.
* [3611643] Stop polluting the global namespace.dkf2013-09-081-26/+43
| | | | Refactor the index entry generation so it is done right, once. Handle more of [namespace ensemble create]'s behavior.
* [3611643fff]: Support TclOO in autoload mechanism.dkf2013-08-031-0/+14
|
* 2102614 Add ensemble indexing support to [auto_mkindex]. Thanks Brian Griffin.dgp2013-03-211-0/+9
|\
| * 2102614 Add ensemble indexing support to [auto_mkindex]. Thanks Brian Griffin.dgp2013-03-211-0/+9
| |
* | In the script library, selected modernizations from Patrick Fradin.dgp2013-01-301-13/+12
|\ \ | |/
| * In the script library, selected modernizations from Patrick Fradin.dgp2013-01-301-11/+12
| |
* | Fix most of the failing tests (some of which were due to breakage done to thedkf2011-03-101-1/+8
| | | | | | parser used in auto_mkIndex; never a good idea to delete the ::tcl NS!)
* | Now that we're no longer using SCM based on RCS, the RCS Keyword linesdgp2011-03-021-2/+0
|\ \ | |/ | | cause more harm than good. Purged them (except in zlib files).
| * Now that we're no longer using SCM based on RCS, the RCS Keyword lines causedgp2011-03-021-2/+0
| |\ | | | | | | more harm than good. Purged them.
| | * Now that we're no longer using SCM based on RCS, the RCS Keyword lines causedgp2011-03-011-2/+0
| | | | | | | | | more harm than good. Purged them.
| | * correction to reversed logicdgp2005-07-231-2/+2
| | |
| | * * library/auto.tcl: Updates to the Tcl script library to makedgp2005-07-221-25/+17
| | | | | | | | | | | | | | | | | | | | | | | | * library/history.tcl: use of Tcl 8.4 feautures. Thanks to * library/init.tcl: Patrick Fradin for prompting on this. * library/package.tcl: [Patch 1237755]. * library/safe.tcl: * library/word.tcl:
| | * * library/auto.tcl: Reverted to Revision 1.12.2.3 (Tcl 8.4.9).dgp2005-06-271-24/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | Restores the (buggy) behavior of [auto_reset] that fails to clear away auto-loaded commands from non-global namespaces. Fixing this bug exposed an unknown number of buggy files out there (including at least portions of the Tk script library) that cannot tolerate double [source]-ing. The burden of fixing these exposed bugs will not be forced on package/extension/application authors until Tcl 8.5.
| | * * library/auto.tcl: Make file safe to re-[source] withoutdgp2005-06-241-23/+23
| | | | | | | | | | | | destroying registered auto_mkindex_parser hooks.
| | * * library/auto.tcl: Make file safe to re-[source] withoutdgp2005-06-241-20/+27
| | | | | | | | | | | | destroying registered auto_mkindex_parser hooks.
| | * typodgp2005-01-271-2/+2
| | |
| | * * library/auto.tcl: Updated [auto_reset] to clear auto-loadeddgp2005-01-251-15/+16
| | | | | | | | | | | | procs in namespaces other than :: [Bug 1101670].
| | * * library/auto.tcl (tcl_findLibrary): Disabled use of [file ↵dgp2004-12-011-2/+12
| | | | | | | | | | | | normalize] that caused trouble with freewrap. [Bug 1072136].
| | * * library/auto.tcl (tcl_findLibrary): Made sure the uniquifyingdgp2004-11-261-2/+2
| | | | | | | | | | | | operations on the search path does not also normalize. [Bug 1072136]
| | * * library/auto.tcl: Updated [tcl_findLibrary] search pathdgp2004-11-161-26/+57
| | | | | | | | | | | | to include the $::auto_path. [RFE 695441].
* | | Spacing and style fixesnijtmans2010-06-141-6/+10
| | |
* | | Undo Jan's needless vandalism.dkf2009-11-191-2/+2
| | |
* | | Eliminate "then" keywordnijtmans2009-11-181-8/+8
| | |
* | | Simplify a bit further following more testingdkf2009-07-261-10/+3
| | |
* | | Use [try] to replace obscurer uses of [catch].dkf2009-07-261-131/+131
|/ /
* | * doc/ParseCmd.3, doc/Tcl.n, doc/eval.n, doc/exec.n:hobbs2006-11-031-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/fconfigure.n, doc/interp.n, doc/unknown.n: * library/auto.tcl, library/init.tcl, library/package.tcl: * library/safe.tcl, library/tm.tcl, library/msgcat/msgcat.tcl: * tests/all.tcl, tests/basic.test, tests/cmdInfo.test: * tests/compile.test, tests/encoding.test, tests/execute.test: * tests/fCmd.test, tests/http.test, tests/init.test: * tests/interp.test, tests/io.test, tests/ioUtil.test: * tests/iogt.test, tests/namespace-old.test, tests/namespace.test: * tests/parse.test, tests/pkg.test, tests/pkgMkIndex.test: * tests/proc.test, tests/reg.test, tests/trace.test: * tests/upvar.test, tests/winConsole.test, tests/winFCmd.test: * tools/tclZIC.tcl: * generic/tclParse.c (Tcl_ParseCommand): Replace {expand} with {*} officially (TIP #293). Leave -DALLOW_EXPAND=0|1 option to keep {expand} syntax for transition users. [Bug 1589629]
* | * library/auto.tcl: Updates to the Tcl script library to makedgp2005-07-231-16/+12
| | | | | | | | | | | | | | | | * 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:
* | * library/auto.tcl: Make file safe to re-[source] withoutdgp2005-06-241-23/+23
| | | | | | | | destroying registered auto_mkindex_parser hooks.
* | * library/auto.tcl: Make file safe to re-[source] withoutdgp2005-06-241-20/+27
| | | | | | | | destroying registered auto_mkindex_parser hooks.
* | Merged kennykb-numerics-branch back to the head; TIPs 132 and 232Kevin B Kenny2005-05-101-1/+1
| |
* | Added safety checksdgp2005-01-251-7/+13
| |
* | * library/auto.tcl: Updated [auto_reset] to clear auto-loadeddgp2005-01-251-12/+10
| | | | | | | | | | | | commands in namespaces other than :: and to clear auto-loaded commands that do not happen to be procs. [Bug 1101670] ***POTENTIAL INCOMPATIBILITY***
* | added comment about freewrap difficultiesdgp2004-12-011-1/+5
| |
* | * library/auto.tcl (tcl_findLibrary): Made sure the uniquifyingdgp2004-11-261-2/+2
| | | | | | | | operations on the search path does not also normalize. [Bug 1072136]
* | * library/auto.tcl Purged Tcl's script library of alldgp2004-10-251-18/+11
| | | | | | | | | | | | | | | | | | | | | | * 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/auto.tcl: Updated [tcl_findLibrary] search pathdgp2004-08-231-19/+47
| | | | | | | | to include any [<pkg>::pkgconfig get scriptdir,runtime] directory, as well as the $::auto_path. [RFE 695441]
* | * tests/safe.test (safe-2.1): Disabled senseless test. [Bug 999612]dgp2004-07-301-5/+2
| | | | | | | | | | | | * library/auto.tcl (auto_reset): Removed "protected" list of commands from [auto_reset]. All entries in the auto_index can be re-loaded. * library/package.tcl: Updated comment to reflect 2004-07-28 commit.
* | * doc/library.n: Moved variables ::auto_oldpath anddgp2004-06-161-2/+3
| | | | | | | | | | * library/auto.tcl: ::unknown_pending into ::tcl namespace. * library/init.tcl: [Bugs 808319, 948794]
* | Removed support for Mac OS Classic platform [Patch 918142]das2004-03-171-3/+2
| |
* | * doc/ParseCmd.3: Implementation of TIP 157. Adds recognitiondgp2003-11-141-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/Tcl.n: of the new leading {expand} syntax on words. * generic/tcl.h: Parses such words as the new Tcl_Token type * generic/tclBasic.c: TCL_TOKEN_EXPAND_WORD. Updated Tcl_EvalEx * generic/tclCompile.c: and the bytecode compiler/execution engine * generic/tclCompile.h: to recognize the new token type. New opcodes * generic/tclExecute.c: INST_LIST_VERIFY and INST_INVOKE_EXP and a new * generic/tclParse.c: operand type OPERAND_ULIST1 are defined. Docs * generic/tclTest.c: and tests are included. * tests/basic.test: * tests/compile.test: * tests/parse.test: * library/auto.tcl: Replaced several [eval]s used to perform * library/package.tcl: argument expansion with the new syntax. * library/safe.tcl: In the test files lindex.test and lset.test, * tests/cmdInfo.test: replaced use of [eval] to force direct * tests/encoding.test: string evaluation with use of [testevalex] * tests/execute.test: which more directly and robustly serves the * tests/fCmd.test: same purpose. * tests/http.test: * tests/init.test: * tests/interp.test: * tests/io.test: * tests/ioUtil.test: * tests/iogt.test: * tests/lindex.test: * tests/lset.test: * tests/namespace-old.test: * tests/namespace.test: * tests/pkg.test: * tests/pkgMkIndex.test: * tests/proc.test: * tests/reg.test: * tests/trace.test: * tests/upvar.test: * tests/winConsole.test: * tests/winFCmd.test:
* | * library/auto.tcl: Replaced [regexp] and [regsub] withdgp2003-03-191-9/+7
|/ | | | | | | | | | | | | | | * library/history.tcl: [string map] where possible. Thanks * library/ldAout.tcl: to David Welton. [Bugs 667456,667558] * library/safe.tcl: Bumped to http 2.4.3, opt 0.4.5, and * library/http/http.tcl: tcltest 2.2.3. * library/http/pkgIndex.tcl: * library/opt/optparse.tcl: * library/opt/pkgIndex.tcl: * library/tcltest/tcltest.tcl: * library/tcltest/pkgIndex.tcl: * tools/genStubs.tcl: * tools/tcltk-man2html.tcl: * unix/mkLinks.tcl:
* * library/auto.tcl: Converted the Mac-specific [package unknown]dgp2002-10-281-2/+3
| | | | | | * library/init.tcl: behavior to use a chaining mechanism to extend * library/package.tcl: the default [tclPkgUnknown]. [Bug 627660] * library/tclIndex: [Patch 624509] (steffen)
* * library/auto.tcl (tcl_findLibrary):das2002-10-221-1/+2
| | | | | | | | | | | | * library/package.tcl (tclPkgUnknown): on macosx, search inside the Resources/Scripts subdirectory of any potential package directory * macosx/Tcl.pbproj/project.pbxproj: add standard Frameworks dirs to TCL_PACKAGE_PATH make argument. * unix/tclUnixInit.c (TclpSetVariables): on macosx, add embedded framework dirs to tcl_pkgPath: @executable_path/../Frameworks and @executable_path/../PrivateFrameworks (if they exist), as well as the dirs in DYLD_FRAMEWORK_PATH (if set). [Patch #624509] use standard MAXPATHLEN instead of literal 1024
* *** macosx-8-4-branch merged into the mainline [tcl patch #602770] ***macosx_8_4_merge_2002_08_31_trunkdas2002-08-311-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tcl.decls: added new macosx specific entry to stubs table. * tools/genStubs.tcl: added generation of platform guards for macosx. This is a little more complex than it seems, because MacOS X IS "unix" plus a little bit, for the purposes of Tcl. BUT unfortunately, Tk uses "unix" to mean X11. So added platform keys for macosx (the little added to "unix"), "aqua" and "x11" to distinguish these for Tk. * generic/tcl.h: added a #ifnded RESOURCE_INCLUDED so that tcl.h can be passed to the resource compiler. * generic/tcl.h: * generic/tclNotify.c: added a few Notifier procs, to be able to modify more bits of the Tcl notifier dynamically. Required to get Mac OS X Tk to live on top of the Tcl Unix threaded notifier. Changes the size of the Tcl_NotifierProcs structure, but doesn't move any elements around. * unix/tclUnixNotfy.c: moved the call to Tcl_ConditionNotify till AFTER we are done mucking with the pointer swap. Fixes cases where the thread waiting on the condition wakes & accesses the waitingListPtr before it gets reset, causing a hang. * library/auto.tcl (tcl_findLibrary): added checking the directories in the tcl_pkgPath for library files on macosx to enable support of the standard Mac OSX library locations * unix/Makefile.in: * unix/configure.in: * unix/tcl.m4: added MAC_OSX_DIR. Added PLAT_OBJS to the OBJS: there are some MacOS X specific files now for Tcl, and when I get he resource & applescript stuff ported over, and restore support for FindFiles, etc, there will be a few more. Added LD_LIBRARY_PATH_VAR configure variable to avoid having to set all possible LD_LIBRARY_PATH analogues on all platforms. LD_LIBRARY_PATH_VAR is "LD_LIBRARY_PATH" by default, "LIBPATH" on AIX, "SHLIB_PATH" on HPUX and "DYLD_LIBRARY_PATH" on Mac OSX. Added configure option to package Tcl as a framework on Mac OSX. * macosx/tclMacOSXBundle.c (new): support for finding Tcl extension packaged as 'bundles' in the standard Mac OSX library locations. * unix/tclUnixInit.c: added support for findig the tcl script library inside Tcl packaged as a framework on Mac OSX. * macosx/Tcl.pbproj/jingham.pbxuser (new): * macosx/Tcl.pbproj/project.pbxproj (new): project for Apple's ProjectBuilder IDE. * macosx/Makefile (new): simple makefile for building the project from the command line via the ProjectBuilder tool 'pbxbuild'. * unix/configure: * generic/tclStubInit.c: * generic/tclPlatDecls.h: regen
* * tests/main.test: Cheap fix for [Bugs 575851, 575858]. Avoiddgp2002-07-031-2/+6
| | | | | | | * tests/tcltest.test: non-writable . by [cd [temporaryDirectory]]. * library/auto.tcl: Fix [tcl_findLibrary] to be sure it sets $varName only if a successful library script is found. [Bug 577033]
* * Correcteddgp2001-08-271-9/+9
| | | | | | inconsistency between the search path for script libraries and the directory name $DISTNAME into which distributions built by 'make test' unpack. [Bug 455642]
* * doc/library.n:hobbs2000-02-081-3/+3
| | | | * library/auto.tcl: fixed crufty puts code and docs [Bug: 4122]
* * tests/package.test:ericm2000-02-011-10/+14
| | | | | | | | | | | | | | | | | * 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/magicchar.tcl:ericm2000-01-281-3/+6
| | | | | | | | | * tests/autoMkindex.test: Test for fix for bug #2611. * library/auto.tcl: Fixed the regular expression that performs $ escaping before sourcing a file to index. It was erroneously adding \ escapes even to $'s that were already escaped, effectively "un-escaping" those $'s. (bug #2611).