diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2025-05-27 06:34:50 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2025-05-27 06:34:50 -0700 |
commit | 40e0ccbb09a4f80aaec904124d68025e315a9118 (patch) | |
tree | 3b0b7d8c501863b151c058a01351d6000560d9a8 | |
parent | 6d00dec84ca7a648d694e8383b7799eef4ae406f (diff) | |
download | txr-40e0ccbb09a4f80aaec904124d68025e315a9118.tar.gz txr-40e0ccbb09a4f80aaec904124d68025e315a9118.tar.bz2 txr-40e0ccbb09a4f80aaec904124d68025e315a9118.zip |
txr: garbage in debug traces for failed pattern functions.
This was broken by a regression on Aug 23, 2015, by commit
a6fa35d2877745ba0b285093c40c1a3aad82a0e8, subject line:
"Use of new args for function calls in interpreter."
* match.c (h_fun, v_fun): Remove args only wrongly referenced
in a debugf call. The debugf call has not changed since 2011,
and originally referenced a more lexically outer args variable
of type val, which was wrongly shadowed. This causes garbage
to print in the debug traces like #<bad-float> instead of
the arguments.
-rw-r--r-- | match.c | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -1622,7 +1622,6 @@ static val h_fun(match_line_ctx *c) } { - args_decl_list(args, ARGS_MIN, bindings_cp); uw_block_begin(nil, result); uw_match_env_begin; uw_simple_catch_begin; @@ -4557,7 +4556,6 @@ static val v_fun(match_files_ctx *c) } { - args_decl_list(args, ARGS_MIN, bindings_cp); uw_block_begin(nil, result); uw_match_env_begin; |