summaryrefslogtreecommitdiffstats
path: root/library/package.tcl
Commit message (Collapse)AuthorAgeFilesLines
* 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.
| * * library/package.tcl: Removed [file readable] testing fromdgp2008-07-031-13/+34
| | | | | | | | | | | | | | [tclPkgUnknown] and friends. We find out soon enough whether a file is readable when we try to [source] it, and not testing before allows us to workaround the bugs on some common filesystems where [file readable] lies to us. [Patch 1969717]
| * * generic/tcl.decls: Implemented TIP #268, conditionally.andreas_kupries2006-09-221-30/+78
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclBasic.c: Define TCL_TIP268 to activate the new * generic/tclDecls.h: features. * generic/tclInt.h: * generic/tclPkg.c: * generic/tclStubInit.c: * generic/tclTest.c: * library/init.tcl * library/package.tcl: * tests/pkg.test: * tests/platform.test: * tests/safe.test: * doc/PkgRequire.3:
| * * library/auto.tcl: Updates to the Tcl script library to makedgp2005-07-221-18/+19
| | | | | | | | | | | | | | | | * 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/package.tcl: Fixed a typo that broke pkg_mkIndex -verbose.rmax2003-07-241-2/+2
| |
| * * library/package.tcl: Corrected [pkg_mkIndex] bug reported ondgp2003-07-111-3/+7
| | | | | | | | | | comp.lang.tcl. The indexer was searching for newly indexed packages instead of newly provided packages.
* | * library/package.tcl: Removed [file readable] testing fromdgp2008-07-031-11/+29
| | | | | | | | | | | | | | [tclPkgUnknown] and friends. We find out soon enough whether a file is readable when we try to [source] it, and not testing before allows us to workaround the bugs on some common filesystems where [file readable] lies to us. [Patch 1969717]
* | * doc/ParseCmd.3, doc/Tcl.n, doc/eval.n, doc/exec.n:hobbs2006-11-031-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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]
* | TIP#268 IMPLEMENTATIONandreas_kupries2006-09-221-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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:
* | * library/auto.tcl: Updates to the Tcl script library to makedgp2005-07-231-13/+13
| | | | | | | | | | | | | | | | * 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/package.tcl (pkg_mkIndex): Updated [pkg_mkIndex] todgp2004-08-021-20/+11
| | | | | | | | make use of [glob -directory $dir -tails] and return options.
* | * tests/safe.test (safe-2.1): Disabled senseless test. [Bug 999612]dgp2004-07-301-2/+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.
* | * library/package.tcl: [::pkg::create] is now an alias. Testdgp2004-07-291-9/+2
| | | | | | | | safe-2.1 will now fail until Bug 999612 is corrected.
* | * library/package.tcl: Moved private commanddgp2004-07-281-12/+19
| | | | | | | | | | | | * library/tclIndex: [pkg_compareExtension] into ::tcl::Pkg. * tests/pkg_mkIndex.test: Also moved implementation of [::pkg::create] to [::tcl::Pkg::Create].
* | Removed support for Mac OS Classic platform [Patch 918142]das2004-03-171-92/+2
| |
* | * doc/ParseCmd.3: Implementation of TIP 157. Adds recognitiondgp2003-11-141-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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:
* | package unknown performance on MacOS and MacOS Xvincentdarley2003-09-241-11/+78
| |
* | * library/package.tcl: Fixed a typo that broke pkg_mkIndex -verbose.rmax2003-07-241-2/+2
| | | | | | | | * tests/pkgMkIndex.test: Added a test for [pkg_mkIndex -verbose].
* | * library/package.tcl: Corrected [pkg_mkIndex] bug reported ondgp2003-07-111-3/+7
|/ | | | | comp.lang.tcl. The indexer was searching for newly indexed packages instead of newly provided packages.
* * doc/pkgMkIndex.n: Modified [pkg_mkIndex] to use -nocase matchingdgp2003-02-251-2/+2
| | | | | | * library/package.tcl: of -load patterns, to better accomodate common user errors due to confusion between [package names] names and [info loaded] names.
* * library/package.tcl (tclPkgUnknown): Minor performance tweaksdgp2003-02-211-13/+48
| | | | | to reduce the number of [file] invocations. Meant to improve startup times, at least a little bit. [Patch 687906]
* * library/auto.tcl: Converted the Mac-specific [package unknown]dgp2002-10-281-51/+102
| | | | | | * 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/+20
| | | | | | | | | | | | * 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
* * Fixed leak of slave interp in [pkg_mkIndex].dgp2002-05-311-2/+2
| | | | Thanks to Helmut for report. [Bug 550534]
* * Corrected documentation and usage message of [pkg_mkIndex].dgp2001-07-211-2/+2
|
* * library/package.tcl (pkg_mkIndex): Added patch from Vincedgp2001-03-141-1/+22
| | | | | Darley to make [pkg_mkIndex -verbose] even more verbose. [Bug 219349, Patch 403529]
* [glob] uses -directory instead of unsafe [file join] to stop problemsdkf2000-11-241-4/+5
| | | | with some directory names. Fixes Bug #123313 in Tcl.
* * tests/pkgMkIndex.test: Added tests for pkg_compareExtension.ericm2000-07-191-6/+23
| | | | | | | * library/package.tcl: Enhanced pkg_compareExtension to handle Unixes which tack the version number on to the end of library names (eg, foo.so.1.2); such filenames will be correctly matched. (Patch from Vince Darley).
* 2000-04-22 Jim Ingham <jingham@cygnus.com> * library/package.tcl ↵jingham2000-04-231-2/+2
| | | | (tclPkgUnknown): Fixed a typo in the Mac package search part of tclPkgUnknown.
* * library/package.tcl: Applied patch from Bug: 2570; rather thanericm2000-03-061-4/+5
| | | | | | | setting geometry of slave interp to 0x0 when Tk was loaded, it now does "wm withdraw .". Both remove the main window from the display, but the former caused some internal structures to get initialized to zero, which caused crashes with some extensions.
* * library/package.tcl (tclPkgUnknown): extended to allowhobbs2000-03-031-12/+33
| | | | | recognizes changes in the auto_path while sourcing in other pkgIndex.tcl files
* * tests/package.test:ericm2000-02-071-6/+6
| | | | | * library/tclIndex: * library/package.tcl: Renamed ::package namespace to ::pkg.
* * tests/package.test:ericm2000-02-011-22/+148
| | | | | | | | | | | | | | | | | * 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/spacename.tcl:ericm2000-01-281-2/+3
| | | | | | | * tests/pkgMkIndex.test: Tests for fix for bug #2360. * library/package.tcl: Fixed to extract only the first element of the list returned by auto_qualify (bug #2360).
* * tests/pkg/samename.tcl: test file for bug #1983ericm2000-01-271-25/+25
| | | | | | | | * tests/pkgMkIndex.test: * library/package.tcl: Fixed bug #1983, dealing with pkg_mkIndex incorrectly handling situations with two procs by the same name but in different namespaces (ie, foo::baz and bar::baz).
* * tests/pkgMkIndex.test:ericm2000-01-271-33/+43
| | | | | | | | * doc/pkgMkIndex.n: * library/package.tcl: Per rfe #4097, optimized creation of direct load packages to bypass computing the list of commands added by the new package. Also made direct loading the default, and added a -lazy option.
* 1999-08-18 Jeff Hobbs <hobbs@scriptics.com>hobbs1999-08-191-18/+15
| | | | | | | | | | | | | * library/auto.tcl: * library/init.tcl: * library/ldAout.tcl: * library/package.tcl: * library/safe.tcl: * library/word.tcl: * library/http2.1/http.tcl: * library/msgcat1.0/msgcat.tcl: updated libraries to better Tcl style guide (no more string comparisons with == or !=, spacing changes).
* Resynced with mainline.rjohnson1999-04-211-1/+1
|
* fixed bug 1497 for 8.1: tclPkgUnknown should test for read privssurles1999-04-201-3/+5
|
* fixed bug 1497 for 8.1: tclPkgUnknown should test for read privssurles1999-04-201-3/+3
|
* merged tcl 8.1 branch back into the main trunkstanton1999-04-161-0/+473