diff options
author | dgp <dgp@noemail.net> | 2007-09-06 19:23:55 (GMT) |
---|---|---|
committer | dgp <dgp@noemail.net> | 2007-09-06 19:23:55 (GMT) |
commit | 4d8c090c65d13228b10311e2ec18d63012ea4e15 (patch) | |
tree | 4c0e6d9f93ea7fff25ba3cdb17e9878c72245dcd | |
parent | 5d8adfcb19e95a7cfe1bde6471bb69ee52aade77 (diff) | |
download | tcl-4d8c090c65d13228b10311e2ec18d63012ea4e15.zip tcl-4d8c090c65d13228b10311e2ec18d63012ea4e15.tar.gz tcl-4d8c090c65d13228b10311e2ec18d63012ea4e15.tar.bz2 |
* generic/tclInterp.c (Tcl_Init): Removed constraint on ability
to define a custom [tclInit] before calling Tcl_Init(). Until now
the custom command had to be a proc. Now it can be any command.
FossilOrigin-Name: 2289e361d88b22ae7d9ddf7f0ac0377218e637b7
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | generic/tclInterp.c | 6 |
2 files changed, 7 insertions, 3 deletions
@@ -1,5 +1,9 @@ 2007-09-06 Don Porter <dgp@users.sourceforge.net> + * generic/tclInterp.c (Tcl_Init): Removed constraint on ability + to define a custom [tclInit] before calling Tcl_Init(). Until now + the custom command had to be a proc. Now it can be any command. + * generic/tclInt.decls: New internal routine TclBackgroundException() * generic/tclEvent.c: that for the first time permits non-TCL_ERROR exceptions to trigger [interp bgerror] handling. Closes a gap in diff --git a/generic/tclInterp.c b/generic/tclInterp.c index a42c339..781e5b5 100644 --- a/generic/tclInterp.c +++ b/generic/tclInterp.c @@ -10,7 +10,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclInterp.c,v 1.77 2007/09/06 18:13:20 dgp Exp $ + * RCS: @(#) $Id: tclInterp.c,v 1.78 2007/09/06 19:23:56 dgp Exp $ */ #include "tclInt.h" @@ -338,11 +338,11 @@ Tcl_Init( * will be set as the value of tcl_library. * * Note that this entire search mechanism can be bypassed by defining an - * alternate tclInit function before calling Tcl_Init(). + * alternate tclInit command before calling Tcl_Init(). */ return Tcl_Eval(interp, -"if {[info proc tclInit]==\"\"} {\n" +"if {[namespace which -command tclInit] eq \"\"} {\n" " proc tclInit {} {\n" " global tcl_libPath tcl_library env tclDefaultLibrary\n" " rename tclInit {}\n" |