diff options
author | andreask <andreask> | 2011-11-21 18:23:16 (GMT) |
---|---|---|
committer | andreask <andreask> | 2011-11-21 18:23:16 (GMT) |
commit | df6dfc34691563ae25dc7970f47e3b29c66c4dec (patch) | |
tree | f97dc0fb0ad7aafc48b91e4dd17ddc1c7dff34e6 /libtommath/makefile.shared | |
parent | d7d710f3ff4ee669067644f9e32149aabf6629a1 (diff) | |
download | tcl-df6dfc34691563ae25dc7970f47e3b29c66c4dec.zip tcl-df6dfc34691563ae25dc7970f47e3b29c66c4dec.tar.gz tcl-df6dfc34691563ae25dc7970f47e3b29c66c4dec.tar.bz2 |
Fix a bug where global precompiled code (A) called from a precompiled
procedure causes the core to recompile (A), triggering the trap laid
inside, i.e. 'error "called a copy of compiled code"'.
<pre>Example
----------------------ex1.tcl
proc init {} {
source ex2.tcl
}
init
----------------------ex2.tcl
puts a
----------------------</pre>
When run as precompiled code the 'puts a' is not executed, only the trap.
Fixed by enclosing the offending code into a guard which prevents its
execution for precompiled code. The change passes the entire testsuite.
Diffstat (limited to 'libtommath/makefile.shared')
0 files changed, 0 insertions, 0 deletions