-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
jan.nijtmans
committed
Nov 16, 2023
1 parent
d617e5f
commit d2d358f
Showing
1 changed file
with
2 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
# interface. | ||
# | ||
# | ||
# Copyright (c) 1998-1999 by Scriptics Corporation. | ||
# Copyright (c) 1998-1999 Scriptics Corporation. | ||
# Copyright (c) 2007 Daniel A. Steffen <[email protected]> | ||
# | ||
# See the file "license.terms" for information on usage and redistribution | ||
|
@@ -257,7 +257,7 @@ proc genStubs::rewriteFile {file text} { | |
return | ||
} | ||
set in [open ${file} r] | ||
fconfigure $in -eofchar "\032 {}" -encoding utf-8 | ||
fconfigure $in -eofchar "\x1A {}" -encoding utf-8 | ||
set out [open ${file}.new w] | ||
fconfigure $out -translation lf -encoding utf-8 | ||
|
||
|
@@ -811,21 +811,6 @@ proc genStubs::forAllStubs {name slotProc onAll textVar | |
set temp {} | ||
set plat aqua | ||
if {!$slot(unix) && !$slot(macosx)} { | ||
if {[string range $skipString 1 2] ne "/*"} { | ||
# genStubs.tcl previously had a bug here causing it to | ||
# erroneously generate both a unix entry and an aqua | ||
# entry for a given stubs table slot. To preserve | ||
# backwards compatibility, generate a dummy stubs entry | ||
# before every aqua entry (note that this breaks the | ||
# correspondence between emitted entry number and | ||
# actual position of the entry in the stubs table, e.g. | ||
# TkIntStubs entry 113 for aqua is in fact at position | ||
# 114 in the table, entry 114 at position 116 etc). | ||
eval {append temp} $skipString | ||
set temp "[string range $temp 0 end-1] /*\ | ||
Dummy entry for stubs table backwards\ | ||
compatibility */\n" | ||
} | ||
if {$slot($plat)} { | ||
append temp [$slotProc $name $stubs($name,$plat,$i) $i] | ||
} elseif {$onAll} { | ||
|