summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2013-11-08 15:06:22 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2013-11-08 15:06:22 (GMT)
commit6a438c4be421bab23641d3ebe3c480a9e269f007 (patch)
tree1388f3ebcfabf609d03d25a26693ebf651e4af32 /doc
parent47d3e9dbac2ab2524764539223eb014693787e58 (diff)
parent507739c16ec89227137988c913b92a7ec1c8578f (diff)
downloadtcl-6a438c4be421bab23641d3ebe3c480a9e269f007.zip
tcl-6a438c4be421bab23641d3ebe3c480a9e269f007.tar.gz
tcl-6a438c4be421bab23641d3ebe3c480a9e269f007.tar.bz2
rebase TIP [http://tip.tcl.tk/414|#414] implementation
Diffstat (limited to 'doc')
-rw-r--r--doc/InitSubSyst.341
1 files changed, 41 insertions, 0 deletions
diff --git a/doc/InitSubSyst.3 b/doc/InitSubSyst.3
new file mode 100644
index 0000000..3abdba3
--- /dev/null
+++ b/doc/InitSubSyst.3
@@ -0,0 +1,41 @@
+'\"
+'\" Copyright (c) 2013 Tcl Core Team
+'\"
+'\" See the file "license.terms" for information on usage and redistribution
+'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.
+'\"
+.so man.macros
+.TH Tcl_InitSubsystems 3 8.6.1 Tcl "Tcl Library Procedures"
+.BS
+.SH NAME
+Tcl_InitSubsystems \- initialize the Tcl library.
+.SH SYNOPSIS
+.nf
+\fB#include <tcl.h>\fR
+.sp
+const char *
+\fBTcl_InitSubsystems\fR(\fIpanicProc\fR)
+.SH ARGUMENTS
+.SH ARGUMENTS
+.AS Tcl_PanicProc *panicProc
+.AP Tcl_PanicProc *panicProc in
+Desired panic function, for error reporting. If NULL, the default
+panicProc is used, which normally writes the message to stderr.
+.BE
+
+.SH DESCRIPTION
+.PP
+The \fBTcl_InitSubsystems\fR procedure initializes the Tcl
+library. This procedure is typically invoked as the very
+first thing in the application's main program.
+.PP
+\fBTcl_InitSubsystems\fR is very similar in use to
+\fBTcl_FindExecutable\fR. It can be used when Tcl is
+used as utility library, no other encodings than utf8,
+iso8859-1 or unicode are used, and no interest exists in the
+value of \fBinfo nameofexecutable\fR. The system encoding will not
+be extracted from the environment, but falls back to iso8859-1.
+.PP
+The return value is the Tcl version.
+.SH KEYWORDS
+binary, executable file