diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2021-04-16 13:52:23 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2021-04-16 13:52:23 (GMT) |
commit | 8f798085ffe0484daaa29b244d4f1daffccfa15b (patch) | |
tree | 6eab28bce35efd3f1d3d3f2f059335019048f657 /doc/Tcl_Main.3 | |
parent | 8ba69750a3d5b3706fb03205f59a64e6c7539663 (diff) | |
parent | 869ea625f19c8db04df71882da99ce56b3198fb2 (diff) | |
download | tcl-8f798085ffe0484daaa29b244d4f1daffccfa15b.zip tcl-8f798085ffe0484daaa29b244d4f1daffccfa15b.tar.gz tcl-8f798085ffe0484daaa29b244d4f1daffccfa15b.tar.bz2 |
Merge 9.0
Diffstat (limited to 'doc/Tcl_Main.3')
-rw-r--r-- | doc/Tcl_Main.3 | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/doc/Tcl_Main.3 b/doc/Tcl_Main.3 index 6ace8c9..b7b15a9 100644 --- a/doc/Tcl_Main.3 +++ b/doc/Tcl_Main.3 @@ -10,16 +10,16 @@ .so man.macros .BS .SH NAME -Tcl_Main, Tcl_SetStartupScript, Tcl_GetStartupScript, Tcl_SetMainLoop \- main program, startup script, and event loop definition for Tcl-based applications +Tcl_Main, Tcl_MainEx, Tcl_MainExW, Tcl_SetStartupScript, Tcl_GetStartupScript, Tcl_SetMainLoop \- main program, startup script, and event loop definition for Tcl-based applications .SH SYNOPSIS .nf \fB#include <tcl.h>\fR .sp \fBTcl_Main\fR(\fIargc, argv, appInitProc\fR) .sp -\fBTcl_MainEx\fR(\fIargc, charargv, appInitProc\fR) +\fBTcl_MainEx\fR(\fIargc, charargv, appInitProc, interp\fR) .sp -\fBTcl_MainExW\fR(\fIargc, wideargv, appInitProc\fR) +\fBTcl_MainExW\fR(\fIargc, wideargv, appInitProc, interp\fR) .sp \fBTcl_SetStartupScript\fR(\fIpath, encoding\fR) .sp @@ -50,6 +50,8 @@ If non-NULL, location to write a copy of the (const char *) pointing to the encoding name. .AP Tcl_MainLoopProc *mainLoopProc in Address of an application-specific event loop procedure. +.AP Tcl_Interp *interp in +Already created Tcl Interpreter. .BE .SH DESCRIPTION .PP @@ -200,9 +202,10 @@ the \fBexit\fR command. .PP \fBTcl_Main\fR can not be used in stub-enabled extensions. .PP -When the TCL library is loaded within an embedded application, \fBTcl_MainEx\fR or \fBTcl_MainExW\fR may be used to call \fBTcl_Main\fR. -The difference between Tcl_MainEx and Tcl_MainExW is that the arguments are passed as characters or wide characters. -Remark that the stubs table must be first initialized using one of \fBTcl_InitSubsystems\fR, \fBTcl_SetPanicProc\fR, \fBTcl_FindExecutable\fR or \fBTclZipfs_AppHook\fR. +The difference between Tcl_MainEx and Tcl_MainExW is that the arguments +are passed as characters or wide characters. When used in stub-enabled +embedders, the stubs table must be first initialized using one of +\fBTcl_InitSubsystems\fR, \fBTcl_SetPanicProc\fR, \fBTcl_FindExecutable\fR or \fBTclZipfs_AppHook\fR. .SH "SEE ALSO" tclsh(1), Tcl_GetStdChannel(3), Tcl_StandardChannels(3), Tcl_AppInit(3), exit(n), encoding(n) |