diff options
author | nijtmans <nijtmans> | 2010-01-29 16:17:20 (GMT) |
---|---|---|
committer | nijtmans <nijtmans> | 2010-01-29 16:17:20 (GMT) |
commit | 20dedb76e13ace251494944dae1a8e60d2f6d70a (patch) | |
tree | 26f8bbc7ca7c8759763e62169bfefcb1310134a0 /tools/genStubs.tcl | |
parent | 2a36240c713f132ba78917496b237d879d5e2d58 (diff) | |
download | tcl-20dedb76e13ace251494944dae1a8e60d2f6d70a.zip tcl-20dedb76e13ace251494944dae1a8e60d2f6d70a.tar.gz tcl-20dedb76e13ace251494944dae1a8e60d2f6d70a.tar.bz2 |
- genStubs.tcl: No longer generate a space after "*" and
immediately after a function name, so the
format of function definitions in tcl*Decls.h
matches all other tcl*.h header files.
- Change Tcl_ArgvFuncProc, Tcl_ArgvGenFuncProc
and GetFrameInfoValueProc to be function
definitions, not pointers, for consistency
with all other Tcl function definitions.
Diffstat (limited to 'tools/genStubs.tcl')
-rw-r--r-- | tools/genStubs.tcl | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/tools/genStubs.tcl b/tools/genStubs.tcl index cfac1f6..3e33a74 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.33 2009/12/02 20:45:16 nijtmans Exp $ +# RCS: @(#) $Id: genStubs.tcl,v 1.34 2010/01/29 16:17:21 nijtmans Exp $ package require Tcl 8.4 @@ -425,7 +425,7 @@ proc genStubs::makeDecl {name decl index} { append text ";\n" return $text } - append line "$fname " + append line $fname set arg1 [lindex $args 0] switch -exact $arg1 { @@ -437,8 +437,11 @@ proc genStubs::makeDecl {name decl index} { foreach arg [lrange $args 1 end] { append line $sep set next {} - append next [lindex $arg 0] " " [lindex $arg 1] \ - [lindex $arg 2] + append next [lindex $arg 0] + if {[string index $next end] ne "*"} { + append next " " + } + append next [lindex $arg 1] [lindex $arg 2] if {[string length $line] + [string length $next] \ + $pad > 76} { append text [string trimright $line] \n @@ -455,8 +458,11 @@ proc genStubs::makeDecl {name decl index} { foreach arg $args { append line $sep set next {} - append next [lindex $arg 0] " " [lindex $arg 1] \ - [lindex $arg 2] + append next [lindex $arg 0] + if {[string index $next end] ne "*"} { + append next " " + } + append next [lindex $arg 1] [lindex $arg 2] if {[string length $line] + [string length $next] \ + $pad > 76} { append text [string trimright $line] \n |