diff options
Diffstat (limited to 'doc/AppInit.3')
-rw-r--r-- | doc/AppInit.3 | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/doc/AppInit.3 b/doc/AppInit.3 index 44b2d6b..6a329e2 100644 --- a/doc/AppInit.3 +++ b/doc/AppInit.3 @@ -4,7 +4,7 @@ '\" '\" See the file "license.terms" for information on usage and redistribution '\" of this file, and for a DISCLAIMER OF ALL WARRANTIES. -'\" +'\" .TH Tcl_AppInit 3 7.0 Tcl "Tcl Library Procedures" .so man.macros .BS @@ -48,11 +48,6 @@ Process command-line arguments, which can be accessed from the Tcl variables \fBargv\fR and \fBargv0\fR in \fIinterp\fR. .IP [3] Invoke a startup script to initialize the application. -.IP [4] -Use the routines \fBTcl_SetStartupScript\fR and -\fBTcl_GetStartupScript\fR to set or query the file and encoding -that the active \fBTcl_Main\fR or \fBTk_Main\fR routine will -use as a startup script. .LP \fBTcl_AppInit\fR returns \fBTCL_OK\fR or \fBTCL_ERROR\fR. If it returns \fBTCL_ERROR\fR then it must leave an error message in @@ -60,11 +55,9 @@ for the interpreter's result; otherwise the result is ignored. .PP In addition to \fBTcl_AppInit\fR, your application should also contain a procedure \fBmain\fR that calls \fBTcl_Main\fR as follows: -.PP .CS Tcl_Main(argc, argv, Tcl_AppInit); .CE -.PP The third argument to \fBTcl_Main\fR gives the address of the application-specific initialization procedure to invoke. This means that you do not have to use the name \fBTcl_AppInit\fR @@ -76,8 +69,5 @@ The best way to get started is to make a copy of the file It already contains a \fBmain\fR procedure and a template for \fBTcl_AppInit\fR that you can modify for your application. -.SH "SEE ALSO" -Tcl_Main(3) - .SH KEYWORDS application, argument, command, initialization, interpreter |