diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-03-30 12:59:29 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-03-30 12:59:29 (GMT) |
commit | 1d7fa6b53d9ccc07f2a0d7f71a0d79995b960ccc (patch) | |
tree | 58018d950df2a5e57ebc0b1758ea12b4c1edd681 /tools | |
parent | 97ab1046f9b569c46750812c1e33ddfd631ec857 (diff) | |
download | tcl-1d7fa6b53d9ccc07f2a0d7f71a0d79995b960ccc.zip tcl-1d7fa6b53d9ccc07f2a0d7f71a0d79995b960ccc.tar.gz tcl-1d7fa6b53d9ccc07f2a0d7f71a0d79995b960ccc.tar.bz2 |
genStubs.tcl: Only do an "append line" when there really is something to be done.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/genStubs.tcl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/genStubs.tcl b/tools/genStubs.tcl index 83ee6c7..4516010 100644 --- a/tools/genStubs.tcl +++ b/tools/genStubs.tcl @@ -483,7 +483,9 @@ proc genStubs::makeDecl {name decl index} { set line "$scspec $rtype" } set count [expr {2 - ([string length $line] / 8)}] - append line [string range "\t\t\t" 0 $count] + if {$count >= 0} { + append line [string range "\t\t\t" 0 $count] + } set pad [expr {24 - [string length $line]}] if {$pad <= 0} { append line " " |