summaryrefslogtreecommitdiffstats
path: root/tools/genStubs.tcl
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2013-12-30 16:36:12 (GMT)
committerdgp <dgp@users.sourceforge.net>2013-12-30 16:36:12 (GMT)
commitc53d98725fb23b759e0fa9b4cff521758ab054ef (patch)
treefab9b12d8f685f94568b09e610301f83938c5166 /tools/genStubs.tcl
parent21068ce2b708810c474f5cc2f6c11438114ad1d6 (diff)
parent3b06f70775be10c7547c05c27e55d4ef0a65ee0c (diff)
downloadtcl-c53d98725fb23b759e0fa9b4cff521758ab054ef.zip
tcl-c53d98725fb23b759e0fa9b4cff521758ab054ef.tar.gz
tcl-c53d98725fb23b759e0fa9b4cff521758ab054ef.tar.bz2
Diffstat (limited to 'tools/genStubs.tcl')
-rw-r--r--tools/genStubs.tcl5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/genStubs.tcl b/tools/genStubs.tcl
index 93e0a9a..b45e560 100644
--- a/tools/genStubs.tcl
+++ b/tools/genStubs.tcl
@@ -983,6 +983,8 @@ proc genStubs::emitHeader {name} {
append text "#define ${CAPName}_STUBS_REVISION $revision\n"
}
+ append text "\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n"
+
emitDeclarations $name text
if {[info exists hooks($name)]} {
@@ -1010,8 +1012,7 @@ proc genStubs::emitHeader {name} {
append text "} ${capName}Stubs;\n\n"
- append text "#ifdef __cplusplus\nextern \"C\" {\n#endif\n"
- append text "extern const ${capName}Stubs *${name}StubsPtr;\n"
+ append text "extern const ${capName}Stubs *${name}StubsPtr;\n\n"
append text "#ifdef __cplusplus\n}\n#endif\n"
emitMacros $name text