summaryrefslogtreecommitdiffstats
path: root/generic/tclCompile.c
diff options
context:
space:
mode:
authorandreask <andreask>2012-02-17 17:12:32 (GMT)
committerandreask <andreask>2012-02-17 17:12:32 (GMT)
commit210f461ca0df60cec141dcf9922d198d87eae65c (patch)
tree8385a257c88c99182bada5df7395d8fd41dc5f93 /generic/tclCompile.c
parent553c83462dafd445606dc41eba0ac30e193bc18c (diff)
downloadtcl-210f461ca0df60cec141dcf9922d198d87eae65c.zip
tcl-210f461ca0df60cec141dcf9922d198d87eae65c.tar.gz
tcl-210f461ca0df60cec141dcf9922d198d87eae65c.tar.bz2
Fix: Removed C99ism (in-block variable declaration) from commit [39f6ebe301] which prevents building with non-gcc compilers, notably AIX, HPUX, Solaris, MSVC6, possibly others.
Diffstat (limited to 'generic/tclCompile.c')
-rw-r--r--generic/tclCompile.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/generic/tclCompile.c b/generic/tclCompile.c
index 59d1fbf..9b23389 100644
--- a/generic/tclCompile.c
+++ b/generic/tclCompile.c
@@ -4091,11 +4091,13 @@ RecordByteCodeStats(
* to add to accumulated statistics. */
{
Interp *iPtr = (Interp *) *codePtr->interpHandle;
+ register ByteCodeStats *statsPtr;
+
if (iPtr == NULL) {
/* Avoid segfaulting in case we're called in a deleted interp */
return;
}
- register ByteCodeStats *statsPtr = &(iPtr->stats);
+ statsPtr = &(iPtr->stats);
statsPtr->numCompilations++;
statsPtr->totalSrcBytes += (double) codePtr->numSrcBytes;