summaryrefslogtreecommitdiffstats
path: root/tools/genStubs.tcl
diff options
context:
space:
mode:
authornijtmans <nijtmans>2011-01-03 10:08:22 (GMT)
committernijtmans <nijtmans>2011-01-03 10:08:22 (GMT)
commit87623232f77fe3b1b438f96d15b2874d5255dbe4 (patch)
tree523816b3b3a16876ae9bab4c631306c87aff6a85 /tools/genStubs.tcl
parenta67aec18fe5ae50c3ca922c32bb0ef583a32a6aa (diff)
downloadtcl-87623232f77fe3b1b438f96d15b2874d5255dbe4.zip
tcl-87623232f77fe3b1b438f96d15b2874d5255dbe4.tar.gz
tcl-87623232f77fe3b1b438f96d15b2874d5255dbe4.tar.bz2
Fix "make genstubs", which was broken since 2010-11-30, the TclDoubleDigits backport.
Diffstat (limited to 'tools/genStubs.tcl')
-rw-r--r--tools/genStubs.tcl11
1 files changed, 8 insertions, 3 deletions
diff --git a/tools/genStubs.tcl b/tools/genStubs.tcl
index 911f2b5..ab36d00 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.22.2.4 2010/02/07 22:16:54 nijtmans Exp $
+# RCS: @(#) $Id: genStubs.tcl,v 1.22.2.5 2011/01/03 10:08:22 nijtmans Exp $
package require Tcl 8.4
@@ -135,10 +135,15 @@ proc genStubs::declare {args} {
variable stubs
variable curName
- if {[llength $args] != 3} {
+ if {[llength $args] == 2} {
+ lassign $args index decl
+ set platformList generic
+ } elseif {[llength $args] == 3} {
+ lassign $args index platformList decl
+ } else {
puts stderr "wrong # args: declare $args"
+ return
}
- lassign $args index platformList decl
# Check for duplicate declarations, then add the declaration and
# bump the lastNum counter if necessary.