summaryrefslogtreecommitdiffstats
path: root/generic/tcl.h
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/tcl.h
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/tcl.h')
-rw-r--r--generic/tcl.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/generic/tcl.h b/generic/tcl.h
index 9349b15..95eece8 100644
--- a/generic/tcl.h
+++ b/generic/tcl.h
@@ -12,7 +12,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tcl.h,v 1.82 2000/10/19 18:00:56 jenn Exp $
+ * RCS: @(#) $Id: tcl.h,v 1.83 2000/11/03 18:46:10 hobbs Exp $
*/
#ifndef _TCL
@@ -609,6 +609,7 @@ typedef void (Tcl_CommandTraceProc) _ANSI_ARGS_((ClientData clientData,
typedef void (Tcl_CreateFileHandlerProc) _ANSI_ARGS_((int fd, int mask,
Tcl_FileProc *proc, ClientData clientData));
typedef void (Tcl_DeleteFileHandlerProc) _ANSI_ARGS_((int fd));
+typedef void (Tcl_MainLoopProc) _ANSI_ARGS_((void));
/*
* The following structure represents a type of object, which is a