diff options
author | welch <welch> | 1998-08-06 15:49:24 (GMT) |
---|---|---|
committer | welch <welch> | 1998-08-06 15:49:24 (GMT) |
commit | f8d54fd42ea91003756a763b1cb0d06f35e425f3 (patch) | |
tree | 270b5f4ca2c4e81d2a910ff5c8d9f04e6250f6ac /doc/library.n | |
parent | 39d07c3dbc4dd41db17b0218932ef6ea656d8a83 (diff) | |
download | tcl-f8d54fd42ea91003756a763b1cb0d06f35e425f3.zip tcl-f8d54fd42ea91003756a763b1cb0d06f35e425f3.tar.gz tcl-f8d54fd42ea91003756a763b1cb0d06f35e425f3.tar.bz2 |
added tcl_findLibrary
Diffstat (limited to 'doc/library.n')
-rw-r--r-- | doc/library.n | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/doc/library.n b/doc/library.n index efdcb5a..016d5de 100644 --- a/doc/library.n +++ b/doc/library.n @@ -18,6 +18,7 @@ library \- standard library of Tcl procedures \fBauto_mkindex \fIdir pattern pattern ...\fR \fBauto_mkindex_old \fIdir pattern pattern ...\fR \fBauto_reset\fR +\fBtcl_findLibrary \fIbasename version patch initScript enVarName varName\fR \fBparray \fIarrayName\fR .VS \fBtcl_endOfWord \fIstr start\fR @@ -148,6 +149,26 @@ needed. index, so that fresh copies of them will be loaded the next time that they're used. .TP +\fBtcl_findLibrary \fIbasename version patch initScript enVarName varName\fR +This is a standard search procedure for use by extensions during +their initialization. They call this procedure to look for their +script library in several standard directories. +The last component of the name of the library directory is +normally \fIbasenameversion\fP +(e.g., tk8.0), but it might be "library" when in the build hierarchies. +The \fIinitScript\fR file will be sourced into the interpreter +once it is found. The directory in which this file is found is +stored into the global variable \fIvarName\fP. +If this variable is already defined (e.g., by C code during +application initialization) then no searching is done. +Otherwise the search looks in these directories: +the directory named by the environment variable \fIenVarName\fP; +relative to the Tcl library directory; +relative to the executable file in the standard installation +bin or bin/\fIarch\fP directory; +relative to the executable file in the current build tree; +relative to the executable file in a parallel build tree. +.TP \fBparray \fIarrayName\fR Prints on standard output the names and values of all the elements in the array \fIarrayName\fR. |