From 4e2ff7a7961bc4bb13c14d2878976cebe3f0ddbd Mon Sep 17 00:00:00 2001 From: nijtmans Date: Mon, 3 Jan 2011 10:08:22 +0000 Subject: Fix "make genstubs", which was broken since 2010-11-30, the TclDoubleDigits backport. --- ChangeLog | 5 +++++ tools/genStubs.tcl | 11 ++++++++--- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index c5090f8..0227878 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2011-01-03 Jan Nijtmans + + * tools/genStubs.tcl: Fix "make genstubs", which was broken + since 2010-11-30, the TclDoubleDigits backport. + 2010-12-31 Jan Nijtmans * generic/tclHash.c: [Bug 3007895]: Tcl_(Find|Create)HashEntry 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. -- cgit v0.12