[Snek] [keith-packard/snek] 361151: avr/atmega: snek_file doesn't change. stdout == st...
Keith Packard
noreply at github.com
Fri Jan 14 20:35:58 PST 2022
Branch: refs/heads/string-times
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: 41cafb69d0826f07091d0b2c939d46924252701a
https://github.com/keith-packard/snek/commit/41cafb69d0826f07091d0b2c939d46924252701a
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/361151f2a4e3%5E...41cafb69d082
More information about the Snek
mailing list