diff options
author | dgp <dgp@users.sourceforge.net> | 2008-12-15 15:48:33 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2008-12-15 15:48:33 (GMT) |
commit | f846544ae625a6ea36e4a75e8f5f6caf47d6242c (patch) | |
tree | 64730fb8e40e8e03e2e6c15b333bf5dba194866e /doc/AppInit.3 | |
parent | a9acaa7613d6dc4d271a5af9d80f4a36b647b898 (diff) | |
download | tcl-f846544ae625a6ea36e4a75e8f5f6caf47d6242c.zip tcl-f846544ae625a6ea36e4a75e8f5f6caf47d6242c.tar.gz tcl-f846544ae625a6ea36e4a75e8f5f6caf47d6242c.tar.bz2 |
TIP #338 IMPLEMENTATION
* doc/AppInit.c: Made routines Tcl_SetStartupScript and
* doc/Tcl_Main.3: Tcl_GetStartupScript public. Removed all
* generic/tcl.h: internal stub access to Tcl*Startup* routines,
* generic/tclInt.decls: and removed their implementations. Their
* generic/tclMain.c: function can now be completely performed with
the new public interface.
*** POTENTIAL INCOMPATIBILITY for callers of the internal
Tcl*Startup* routines. ***
* generic/tclIntDecls.h: make genstubs
* generic/tclStubInit.c:
Diffstat (limited to 'doc/AppInit.3')
-rw-r--r-- | doc/AppInit.3 | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/doc/AppInit.3 b/doc/AppInit.3 index 15d5635..bd3c665 100644 --- a/doc/AppInit.3 +++ b/doc/AppInit.3 @@ -5,7 +5,7 @@ '\" See the file "license.terms" for information on usage and redistribution '\" of this file, and for a DISCLAIMER OF ALL WARRANTIES. '\" -'\" RCS: @(#) $Id: AppInit.3,v 1.10 2008/10/15 10:43:37 dkf Exp $ +'\" RCS: @(#) $Id: AppInit.3,v 1.11 2008/12/15 15:48:33 dgp Exp $ '\" .so man.macros .TH Tcl_AppInit 3 7.0 Tcl "Tcl Library Procedures" @@ -50,6 +50,11 @@ 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 @@ -73,5 +78,8 @@ 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 |