[Snek] [keith-packard/snek] 361151: avr/atmega: snek_file doesn't change. stdout == st...
Keith Packard
noreply at github.com
Fri Jan 14 20:48:22 PST 2022
Branch: refs/heads/main
Home: https://github.com/keith-packard/snek
Commit: 361151f2a4e349ad2f5fd37a64ece124fdf0fe5b
https://github.com/keith-packard/snek/commit/361151f2a4e349ad2f5fd37a64ece124fdf0fe5b
Author: Keith Packard <keithp at keithp.com>
Date: 2022-01-14 (Fri, 14 Jan 2022)
Changed paths:
M chips/atmega/snek-atmega.defs
M chips/atmega/snek-atmega.h
M chips/avr/snek-avr.defs
M chips/avr/snek-avr.h
M snek-error.c
M snek-lex.c
M snek.defs
M snek.h
Log Message:
-----------
avr/atmega: snek_file doesn't change. stdout == stderr
Reduce code size by
1. Realizing that snek_file is always "<stdin>" on boards without a
file system.
2. Noting that stdout == stderr, so we can use printf instead of
fprintf
Signed-off-by: Keith Packard <keithp at keithp.com>
Commit: ffdb245d5b1bf54fbfa20eeec4b64c18d06f2c57
https://github.com/keith-packard/snek/commit/ffdb245d5b1bf54fbfa20eeec4b64c18d06f2c57
Author: Keith Packard <keithp at keithp.com>
Date: 2022-01-14 (Fri, 14 Jan 2022)
Changed paths:
M snek-exec.c
M test/Makefile
A test/pass-str-op.py
Log Message:
-----------
Allow 3 * 'a' as well as 'a' * 3
Replication of strings and lists is supposed to work with operands in
either order, so check for that and flip them around.
Add tests for string operators.
Signed-off-by: Keith Packard <keithp at keithp.com>
Compare: https://github.com/keith-packard/snek/compare/5028f35ce08c...ffdb245d5b1b
More information about the Snek
mailing list