diff options
author | stanton <stanton@noemail.net> | 1999-04-24 01:46:50 (GMT) |
---|---|---|
committer | stanton <stanton@noemail.net> | 1999-04-24 01:46:50 (GMT) |
commit | 1518fbfc2f6d7a8c0f54b48c3625a77e2e0f41e5 (patch) | |
tree | ee21dbcb6a2c11333b3f9276847c8e7e44e47052 /tools | |
parent | 5cdbbebf9537313be9d0e83ec4ca36a0d897b4b3 (diff) | |
download | tcl-1518fbfc2f6d7a8c0f54b48c3625a77e2e0f41e5.zip tcl-1518fbfc2f6d7a8c0f54b48c3625a77e2e0f41e5.tar.gz tcl-1518fbfc2f6d7a8c0f54b48c3625a77e2e0f41e5.tar.bz2 |
merged 8.1.0 changes into mainline
FossilOrigin-Name: 6291aaa1d5ba4514bdcbed6c4471d41112d2d49c
Diffstat (limited to 'tools')
-rw-r--r-- | tools/README | 9 | ||||
-rw-r--r-- | tools/genStubs.tcl | 37 |
2 files changed, 31 insertions, 15 deletions
diff --git a/tools/README b/tools/README index 67cac12..1caf63c 100644 --- a/tools/README +++ b/tools/README @@ -2,3 +2,12 @@ This directory contains unsupported tools that are used during the release engineering process. +Generating Windows Help Files: +1) On UNIX, (after autoconf and configure), do + make winhelp + this converts the Nroff to RTF files. +2) On Windows, convert the RTF to a Help doc, do + nmake helpfile + +Generating Windows binary distribution. +Update and compile the WYSE tcl.wse configuration. diff --git a/tools/genStubs.tcl b/tools/genStubs.tcl index 159565d..6ac76fc 100644 --- a/tools/genStubs.tcl +++ b/tools/genStubs.tcl @@ -8,7 +8,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.3 1999/04/16 00:47:39 stanton Exp $ +# RCS: @(#) $Id: genStubs.tcl,v 1.4 1999/04/24 01:46:53 stanton Exp $ namespace eval genStubs { # libraryName -- @@ -766,7 +766,13 @@ proc genStubs::emitInit {name textVar} { append capName [string range $name 1 end] if {[info exists hooks($name)]} { - append text "\nstatic ${capName}StubHooks ${name}StubHooks;\n" + append text "\nstatic ${capName}StubHooks ${name}StubHooks = \{\n" + set sep " " + foreach sub $hooks($name) { + append text $sep "&${sub}Stubs" + set sep ",\n " + } + append text "\n\};\n" } append text "\n${capName}Stubs ${name}Stubs = \{\n" append text " TCL_STUB_MAGIC,\n" @@ -799,22 +805,23 @@ proc genStubs::emitInits {} { variable libraryName variable interfaces + # Assuming that dependencies only go one level deep, we need to emit + # all of the leaves first to avoid needing forward declarations. + + set leaves {} + set roots {} foreach name [lsort [array names interfaces]] { + if {[info exists hooks($name)]} { + lappend roots $name + } else { + lappend leaves $name + } + } + foreach name $leaves { emitInit $name text } - - - foreach name [array names hooks] { - set capName [string toupper [string index $name 0]] - append capName [string range $name 1 end] - - append text "\nstatic ${capName}StubHooks ${name}StubHooks = \{\n" - set sep " " - foreach sub $hooks($name) { - append text $sep "&${sub}Stubs" - set sep ",\n " - } - append text "\n\};\n\n" + foreach name $roots { + emitInit $name text } rewriteFile [file join $outDir ${libraryName}StubInit.c] $text |