diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2012-04-03 11:20:41 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2012-04-03 11:20:41 -0700 |
commit | 1ce504148e960fa8fdd3701977786b99a7437f57 (patch) | |
tree | 30414fdc38771f8aac55cb880d437f8d1db5a87d /eval.c | |
parent | 06ced4e18fd69399e7419a59dbe477e9a92c23e1 (diff) | |
download | txr-1ce504148e960fa8fdd3701977786b99a7437f57.tar.gz txr-1ce504148e960fa8fdd3701977786b99a7437f57.tar.bz2 txr-1ce504148e960fa8fdd3701977786b99a7437f57.zip |
* eval.c (op_modplace): push replaced with mpush (mutating push).
* gc.c (gc_push): New function.
* gc.h (gc_push): Declared.
* hash.c (pushhash): Use mpush.
* lib.c (push): Reverted to unsafe operation. TODO comment replaced
with warning.
(lazy_flatten_scan): push occurence commented as safe.
(lazy_stream_func): Unsafe push replaced with mpush.
* lib.h (mpush): New macro.
Diffstat (limited to 'eval.c')
-rw-r--r-- | eval.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -983,7 +983,7 @@ static val op_modplace(val form, val env) val inc = or2(eval(newform, env, form), one); return set(*loc, minus(*loc, inc)); } else if (op == push_s) { - return push(newval, loc); + return mpush(newval, *loc); } else if (op == pop_s) { if (third_arg_p) eval_error(form, lit("~a: superfluous argument"), op, place, nao); |