[Snek] [keith-packard/snek] e80f0b: Add snek_id_store
Keith Packard
noreply at github.com
Wed Dec 14 23:36:57 PST 2022
Branch: refs/heads/repl-under
Home: https://github.com/keith-packard/snek
Commit: e80f0b5ca805483914975c62f92edd3cdbae9ce6
https://github.com/keith-packard/snek/commit/e80f0b5ca805483914975c62f92edd3cdbae9ce6
Author: Keith Packard <keithp at keithp.com>
Date: 2022-12-14 (Wed, 14 Dec 2022)
Changed paths:
M snek-exec.c
M snek-frame.c
M snek-gram.ll
M snek.h
Log Message:
-----------
Add snek_id_store
Replace the pattern:
ref = snek_id_ref(id, true);
if (ref)
*ref = value
with the new snek_id_store function, saving a bit of space.
Signed-off-by: Keith Packard <keithp at keithp.com>
Commit: f4c471814cc8278754f3550c02f2fa7a69309781
https://github.com/keith-packard/snek/commit/f4c471814cc8278754f3550c02f2fa7a69309781
Author: Keith Packard <keithp at keithp.com>
Date: 2022-12-14 (Wed, 14 Dec 2022)
Changed paths:
M snek-base.builtin
M snek-gram.ll
Log Message:
-----------
Store most recent repl value in '_'
Just like python, the top-level '_' variable
holds the most recently printed value.
Signed-off-by: Keith Packard <keithp at keithp.com>
Compare: https://github.com/keith-packard/snek/compare/e80f0b5ca805%5E...f4c471814cc8
More information about the Snek
mailing list