summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2021-01-27 10:13:51 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2021-01-27 10:13:51 (GMT)
commit5bd65884c293f6b7e5255c095eda8acb1934abeb (patch)
tree1268c5c0708e152ac17bb2c44061e6fd06048b2f
parent00e74d3371710d80dfc049a73bdb1b8d7eeffcf7 (diff)
downloadtcl-5bd65884c293f6b7e5255c095eda8acb1934abeb.zip
tcl-5bd65884c293f6b7e5255c095eda8acb1934abeb.tar.gz
tcl-5bd65884c293f6b7e5255c095eda8acb1934abeb.tar.bz2
*.decls files are now in UTF-8. Use "in" operator in stead of "lsearch -exact".
-rw-r--r--generic/tcl.decls6
-rw-r--r--generic/tclInt.decls6
-rw-r--r--generic/tclOO.decls2
-rw-r--r--generic/tclTomMath.decls2
-rw-r--r--tools/genStubs.tcl2
5 files changed, 9 insertions, 9 deletions
diff --git a/generic/tcl.decls b/generic/tcl.decls
index 23e8f6a..13e7326 100644
--- a/generic/tcl.decls
+++ b/generic/tcl.decls
@@ -5,9 +5,9 @@
# This file is used to generate the tclDecls.h, tclPlatDecls.h
# and tclStubInit.c files.
#
-# Copyright (c) 1998-1999 by Scriptics Corporation.
-# Copyright (c) 2001, 2002 by Kevin B. Kenny. All rights reserved.
-# Copyright (c) 2007 Daniel A. Steffen <das@users.sourceforge.net>
+# Copyright © 1998-1999 Scriptics Corporation.
+# Copyright © 2001, 2002 Kevin B. Kenny. All rights reserved.
+# Copyright © 2007 Daniel A. Steffen <das@users.sourceforge.net>
#
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
diff --git a/generic/tclInt.decls b/generic/tclInt.decls
index b858dfa..b6f7b75 100644
--- a/generic/tclInt.decls
+++ b/generic/tclInt.decls
@@ -5,9 +5,9 @@
# is used to generate the tclIntDecls.h, tclIntPlatDecls.h
# and tclStubInit.c files
#
-# Copyright (c) 1998-1999 by Scriptics Corporation.
-# Copyright (c) 2001 by Kevin B. Kenny. All rights reserved.
-# Copyright (c) 2007 Daniel A. Steffen <das@users.sourceforge.net>
+# Copyright © 1998-1999 Scriptics Corporation.
+# Copyright © 2001 Kevin B. Kenny. All rights reserved.
+# Copyright © 2007 Daniel A. Steffen <das@users.sourceforge.net>
#
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
diff --git a/generic/tclOO.decls b/generic/tclOO.decls
index 265ba88..5d37994 100644
--- a/generic/tclOO.decls
+++ b/generic/tclOO.decls
@@ -5,7 +5,7 @@
# library via the stubs table. This file is used to generate the
# tclOODecls.h, tclOOIntDecls.h and tclOOStubInit.c files.
#
-# Copyright (c) 2008-2013 by Donal K. Fellows.
+# Copyright © 2008-2013 Donal K. Fellows.
#
# See the file "license.terms" for information on usage and redistribution of
# this file, and for a DISCLAIMER OF ALL WARRANTIES.
diff --git a/generic/tclTomMath.decls b/generic/tclTomMath.decls
index 2511e3a..02d3581 100644
--- a/generic/tclTomMath.decls
+++ b/generic/tclTomMath.decls
@@ -7,7 +7,7 @@
# If you edit this file, advance the revision number (and the epoch
# if the new stubs are not backward compatible) in tclTomMathDecls.h
#
-# Copyright (c) 2005 by Kevin B. Kenny. All rights reserved.
+# Copyright © 2005 Kevin B. Kenny. All rights reserved.
#
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
diff --git a/tools/genStubs.tcl b/tools/genStubs.tcl
index 5b7278c..47b8ad4 100644
--- a/tools/genStubs.tcl
+++ b/tools/genStubs.tcl
@@ -1101,7 +1101,7 @@ proc genStubs::emitInit {name textVar} {
}
foreach intf [array names interfaces] {
if {[info exists hooks($intf)]} {
- if {[lsearch -exact $hooks($intf) $name] >= 0} {
+ if {$name in $hooks($intf)} {
set root 0
break
}