diff options
author | redman <redman> | 1999-12-02 02:03:16 (GMT) |
---|---|---|
committer | redman <redman> | 1999-12-02 02:03:16 (GMT) |
commit | 15e8d4b1c9361379bd0e85f25f3f9ebb035ef12f (patch) | |
tree | 16cb4502c47ea8cd6f0e507e1e7e9ef7f76801a6 /generic/tclIntDecls.h | |
parent | f4b89549e3d518586b3df6097b4c7dfd3f0532e7 (diff) | |
download | tcl-15e8d4b1c9361379bd0e85f25f3f9ebb035ef12f.zip tcl-15e8d4b1c9361379bd0e85f25f3f9ebb035ef12f.tar.gz tcl-15e8d4b1c9361379bd0e85f25f3f9ebb035ef12f.tar.bz2 |
* generic/tcl.decls :
* generic/tclMain.c :
* unix/tclAppInit.c:
* win/tclAppInit.c: Added two new internal functions,
TclSetStartupScriptFileName() and TclGetStartupScriptFileName()
and added hooks into the main() code for supporting TclPro and
other "big" shells more easily without requiring a copy of the
main() code.
* generic/tclEncoding.c:
* generic/tclEvent.c: Moved encoding-related startup code from
tclEvent.c into the more appropriate tclEncoding.c.
Diffstat (limited to 'generic/tclIntDecls.h')
-rw-r--r-- | generic/tclIntDecls.h | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/generic/tclIntDecls.h b/generic/tclIntDecls.h index fea3857..7e96fee 100644 --- a/generic/tclIntDecls.h +++ b/generic/tclIntDecls.h @@ -11,7 +11,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclIntDecls.h,v 1.17 1999/08/10 02:42:14 welch Exp $ + * RCS: @(#) $Id: tclIntDecls.h,v 1.18 1999/12/02 02:03:26 redman Exp $ */ #ifndef _TCLINTDECLS @@ -519,6 +519,11 @@ EXTERN void TclRegError _ANSI_ARGS_((Tcl_Interp * interp, /* 157 */ EXTERN Var * TclVarTraceExists _ANSI_ARGS_((Tcl_Interp * interp, char * varName)); +/* 158 */ +EXTERN void TclSetStartupScriptFileName _ANSI_ARGS_(( + char * filename)); +/* 159 */ +EXTERN char * TclGetStartupScriptFileName _ANSI_ARGS_((void)); typedef struct TclIntStubs { int magic; @@ -714,6 +719,8 @@ typedef struct TclIntStubs { int (*tclTestChannelEventCmd) _ANSI_ARGS_((ClientData clientData, Tcl_Interp * interp, int argc, char ** argv)); /* 155 */ void (*tclRegError) _ANSI_ARGS_((Tcl_Interp * interp, char * msg, int status)); /* 156 */ Var * (*tclVarTraceExists) _ANSI_ARGS_((Tcl_Interp * interp, char * varName)); /* 157 */ + void (*tclSetStartupScriptFileName) _ANSI_ARGS_((char * filename)); /* 158 */ + char * (*tclGetStartupScriptFileName) _ANSI_ARGS_((void)); /* 159 */ } TclIntStubs; #ifdef __cplusplus @@ -1355,6 +1362,14 @@ extern TclIntStubs *tclIntStubsPtr; #define TclVarTraceExists \ (tclIntStubsPtr->tclVarTraceExists) /* 157 */ #endif +#ifndef TclSetStartupScriptFileName +#define TclSetStartupScriptFileName \ + (tclIntStubsPtr->tclSetStartupScriptFileName) /* 158 */ +#endif +#ifndef TclGetStartupScriptFileName +#define TclGetStartupScriptFileName \ + (tclIntStubsPtr->tclGetStartupScriptFileName) /* 159 */ +#endif #endif /* defined(USE_TCL_STUBS) && !defined(USE_TCL_STUB_PROCS) */ |