summaryrefslogtreecommitdiffstats
path: root/doc/load.n
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-12-04 15:12:19 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-12-04 15:12:19 (GMT)
commit6443a1db3be2198d76bc754d9a0f5a9c08683342 (patch)
treeb24ba1d27f6f2ff0048046b18e73defec6854a56 /doc/load.n
parentbf23a021385451ff52770191acec3f55d5c8575a (diff)
parentcb5c9f4f89b6e7242ba07f84e278d35f202d7edd (diff)
downloadtcl-6443a1db3be2198d76bc754d9a0f5a9c08683342.zip
tcl-6443a1db3be2198d76bc754d9a0f5a9c08683342.tar.gz
tcl-6443a1db3be2198d76bc754d9a0f5a9c08683342.tar.bz2
Merge 9.0
Diffstat (limited to 'doc/load.n')
-rw-r--r--doc/load.n11
1 files changed, 6 insertions, 5 deletions
diff --git a/doc/load.n b/doc/load.n
index b8a26ae..9f2d2e4 100644
--- a/doc/load.n
+++ b/doc/load.n
@@ -54,7 +54,7 @@ on Safe\-Tcl, see the \fBsafe\fR manual entry.
The initialization procedure must match the following prototype:
.PP
.CS
-typedef int \fBTcl_PackageInitProc\fR(
+typedef int \fBTcl_LibraryInitProc\fR(
Tcl_Interp *\fIinterp\fR);
.CE
.PP
@@ -84,11 +84,12 @@ be specified.
If \fIprefix\fR is omitted or specified as an empty string,
Tcl tries to guess the prefix by taking the last element of
\fIfileName\fR, strip off the first three characters if they
-are \fBlib\fR, and use any following alphabetic and underline
-characters, converted to titlecase as the prefix.
+are \fBlib\fR, then strip off the next three characters if
+they are \fBtcl\fR, and use any following alphabetic and
+underline characters, converted to titlecase as the prefix.
For example, the command \fBload libxyz4.2.so\fR uses the prefix
-\fBxyz\fR and the command \fBload bin/last.so {}\fR uses the
-prefix \fBlast\fR.
+\fBXyz\fR and the command \fBload bin/last.so {}\fR uses the
+prefix \fBLast\fR.
.PP
If \fIfileName\fR is an empty string, then \fIprefix\fR must
be specified.