diff options
author | ferrieux <ferrieux@users.sourceforge.net> | 2010-02-09 14:05:42 (GMT) |
---|---|---|
committer | ferrieux <ferrieux@users.sourceforge.net> | 2010-02-09 14:05:42 (GMT) |
commit | de52610ec95e0587e5dd343c2fe170a1ddebb000 (patch) | |
tree | 4a5db1cbde54c846859075c472983aca6517221c | |
parent | eb39e6f02a3eabc00c00bec84cb9c83f60f6d828 (diff) | |
download | tcl-de52610ec95e0587e5dd343c2fe170a1ddebb000.zip tcl-de52610ec95e0587e5dd343c2fe170a1ddebb000.tar.gz tcl-de52610ec95e0587e5dd343c2fe170a1ddebb000.tar.bz2 |
remove dependency on 8.5+ idiom "in" in expressions
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | tools/genStubs.tcl | 4 |
2 files changed, 7 insertions, 2 deletions
@@ -1,3 +1,8 @@ +2010-02-09 Alexandre Ferrieux <ferrieux@users.sourceforge.net> + + * tools/genStubs.tcl: remove dependency on 8.5+ idiom "in" in + expressions. + 2010-02-08 Donal K. Fellows <dkf@users.sf.net> * generic/tclZlib.c (Tcl_ZlibDeflate, Tcl_ZlibInflate): [Bug 2947783]: diff --git a/tools/genStubs.tcl b/tools/genStubs.tcl index 0e4ba79..ffbb9c3 100644 --- a/tools/genStubs.tcl +++ b/tools/genStubs.tcl @@ -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: genStubs.tcl,v 1.36 2010/02/05 20:53:12 nijtmans Exp $ +# RCS: @(#) $Id: genStubs.tcl,v 1.37 2010/02/09 14:05:43 ferrieux Exp $ package require Tcl 8.4 @@ -990,7 +990,7 @@ proc genStubs::emitInit {name textVar} { } foreach intf [array names interfaces] { if {[info exists hooks($intf)]} { - if {$name in $hooks($intf)} { + if {0>[lsearch -exact $hooks($intf) $name]} { set root 0 break; } |