summaryrefslogtreecommitdiffstats
path: root/tools/genStubs.tcl
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2008-04-01 16:23:33 (GMT)
committerdgp <dgp@users.sourceforge.net>2008-04-01 16:23:33 (GMT)
commita0ec1a39d88a25470246b6554c5901fde0682bb6 (patch)
tree88e6f1d2a4e02352b1f81c9c23212f7119e55d8e /tools/genStubs.tcl
parentfc0be09a4c67fde682808e0d83d033499c255e04 (diff)
downloadtcl-a0ec1a39d88a25470246b6554c5901fde0682bb6.zip
tcl-a0ec1a39d88a25470246b6554c5901fde0682bb6.tar.gz
tcl-a0ec1a39d88a25470246b6554c5901fde0682bb6.tar.bz2
* README: Bump version number to 8.6a0
* generic/tcl.h: * library/init.tcl: * macosx/Tcl-Common.xcconfig: * macosx/Tcl.pbproj/default.pbxuser: * macosx/Tcl.pbproj/project.pbxproj: * tools/tcl.wse.in: * unix/configure.in: * unix/tcl.spec: * win/README: * win/configure.in: * win/makefile.bc: * win/tcl.m4: * unix/configure: autoconf-2.59 * win/configure: * generic/tclBasic.c: Revised stubs-generation tool and interp * tools/genStubs.tcl: creation so that "tclStubsPtr" is not present * unix/Makefile.in: in libtcl.so, but is present only in libtclstub.a. This tightens up the rules for users of the stubs interfaces. [Bug 1819422] * generic/tclDecls.h: make genstubs * generic/tclIntDecls.h: * generic/tclIntPlatDecls.h: * generic/tclPlatDecls.h: * generic/tclTomMathDecls.h:
Diffstat (limited to 'tools/genStubs.tcl')
-rw-r--r--tools/genStubs.tcl6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/genStubs.tcl b/tools/genStubs.tcl
index 5bc3984..eceea00 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 2007/12/13 15:28:40 dgp Exp $
+# RCS: @(#) $Id: genStubs.tcl,v 1.23 2008/04/01 16:23:42 dgp Exp $
package require Tcl 8.4
@@ -972,6 +972,7 @@ proc genStubs::emitMacros {name textVar} {
proc genStubs::emitHeader {name} {
variable outDir
variable hooks
+ variable libraryName
set capName [string toupper [string index $name 0]]
append capName [string range $name 1 end]
@@ -995,9 +996,12 @@ proc genStubs::emitHeader {name} {
append text "} ${capName}Stubs;\n"
+ set upName [string toupper $libraryName]
+ append text "\n#if defined(USE_${upName}_STUBS) && !defined(USE_${upName}_STUB_PROCS)\n"
append text "\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n"
append text "extern ${capName}Stubs *${name}StubsPtr;\n"
append text "#ifdef __cplusplus\n}\n#endif\n"
+ append text "\n#endif /* defined(USE_${upName}_STUBS) && !defined(USE_${upName}_STUB_PROCS) */\n"
emitMacros $name text