Skip to content

Commit

Permalink
Merge 8.7
Browse files Browse the repository at this point in the history
  • Loading branch information
jan.nijtmans committed Jan 27, 2021
2 parents 1e0c534 + 5ef43bf commit 030ce31
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion generic/tclOO.decls
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion generic/tclTomMath.decls
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
5 changes: 3 additions & 2 deletions tools/genStubs.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@ proc genStubs::rewriteFile {file text} {
return
}
set in [open ${file} r]
fconfigure $in -eofchar "\032 {}" -encoding utf-8
set out [open ${file}.new w]
fconfigure $out -translation lf -encoding utf-8

Expand Down Expand Up @@ -1100,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
}
Expand Down Expand Up @@ -1191,7 +1192,7 @@ proc genStubs::init {} {
set outDir [lindex $argv 0]

foreach file [lrange $argv 1 end] {
source $file
source -encoding utf-8 $file
}

foreach name [lsort [array names interfaces]] {
Expand Down

0 comments on commit 030ce31

Please sign in to comment.