summaryrefslogtreecommitdiffstats
path: root/generic/tclStubInit.c
diff options
context:
space:
mode:
authorhobbs <hobbs>2000-11-03 18:46:09 (GMT)
committerhobbs <hobbs>2000-11-03 18:46:09 (GMT)
commitc3064b1f4544c841d840a76bcebdb93c4caf23f7 (patch)
tree650d6d7787b065eec9d05f906658a7b7576b148a /generic/tclStubInit.c
parente30a06ccf0b2e7f424f49c357bbca229380e0af9 (diff)
downloadtcl-c3064b1f4544c841d840a76bcebdb93c4caf23f7.zip
tcl-c3064b1f4544c841d840a76bcebdb93c4caf23f7.tar.gz
tcl-c3064b1f4544c841d840a76bcebdb93c4caf23f7.tar.bz2
* generic/tclStubInit.c:
* generic/tclDecls.h: * generic/tcl.decls: added Tcl_SetMainLoop proc that allows people to set a main loop that will run for tclsh. * generic/tcl.h: added Tcl_MainLoopProc typedef * generic/tclMain.c (Tcl_SetMainLoop, StdinProc, Prompt): new StdinProc and Prompt static procs and Tcl_SetMainLoop stubs proc. The first two handle a fileevent based prompt (taken from tkMain.c). Tcl_SetMainLoop enables the interactive setting of a main loop procedure. This enables Tk to be a loadable package.
Diffstat (limited to 'generic/tclStubInit.c')
-rw-r--r--generic/tclStubInit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclStubInit.c b/generic/tclStubInit.c
index c716732..263e2a8 100644
--- a/generic/tclStubInit.c
+++ b/generic/tclStubInit.c
@@ -8,7 +8,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclStubInit.c,v 1.45 2000/09/28 06:38:22 hobbs Exp $
+ * RCS: @(#) $Id: tclStubInit.c,v 1.46 2000/11/03 18:46:12 hobbs Exp $
*/
#include "tclInt.h"
@@ -687,7 +687,7 @@ TclStubs tclStubs = {
Tcl_StackChannel, /* 281 */
Tcl_UnstackChannel, /* 282 */
Tcl_GetStackedChannel, /* 283 */
- NULL, /* 284 */
+ Tcl_SetMainLoop, /* 284 */
NULL, /* 285 */
Tcl_AppendObjToObj, /* 286 */
Tcl_CreateEncoding, /* 287 */