summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authornijtmans <nijtmans@noemail.net>2010-01-29 16:17:20 (GMT)
committernijtmans <nijtmans@noemail.net>2010-01-29 16:17:20 (GMT)
commit69f99f9864e67f7619f3cc1f2ae5278e109fa8e7 (patch)
tree26f8bbc7ca7c8759763e62169bfefcb1310134a0 /tools
parent42f5932ef552927d02161893ffa546dcd991fdb4 (diff)
downloadtcl-69f99f9864e67f7619f3cc1f2ae5278e109fa8e7.zip
tcl-69f99f9864e67f7619f3cc1f2ae5278e109fa8e7.tar.gz
tcl-69f99f9864e67f7619f3cc1f2ae5278e109fa8e7.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. FossilOrigin-Name: 92924901357b4846fa668b6f5122abf37979693a
Diffstat (limited to 'tools')
-rw-r--r--tools/genStubs.tcl18
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