[Snek] [keith-packard/snek] 121f80: chips/samd21: Remove common definitions from ports...
Keith Packard
noreply at github.com
Sun Jun 9 08:28:24 PDT 2019
Branch: refs/heads/master
Home: https://github.com/keith-packard/snek
Commit: 121f80cf4a7bae75ae3d5b6c1049b3e6cc7028e9
https://github.com/keith-packard/snek/commit/121f80cf4a7bae75ae3d5b6c1049b3e6cc7028e9
Author: Keith Packard <keithp at keithp.com>
Date: 2019-06-08 (Sat, 08 Jun 2019)
Changed paths:
M chips/samd21/ao-arch.h
M chips/samd21/ao-snek.h
M ports/crickit/ao-pins.h
M ports/feather/ao-pins.h
M ports/itsybitsym0/ao-pins.h
M ports/metrom0/ao-pins.h
M ports/playground/ao-pins.h
Log Message:
-----------
chips/samd21: Remove common definitions from ports/*/ao-pins.h
Move these to chips/samd21/ao-arch.h or chips/samd21/ao-snek.h as
appropriate.
Signed-off-by: Keith Packard <keithp at keithp.com>
Commit: 35f39220322d5b5aa306be34b64431aa82d39322
https://github.com/keith-packard/snek/commit/35f39220322d5b5aa306be34b64431aa82d39322
Author: Keith Packard <keithp at keithp.com>
Date: 2019-06-08 (Sat, 08 Jun 2019)
Changed paths:
M snek-code.c
Log Message:
-----------
Fix // and % operators to follow python3 spec
a // b is supposed to be floor(a/b)
a % b is supposed to be a - (a // b) * b
This also saves a few bytes compared with the broken int casting code on
8-bit targets, a nice bonus!
Signed-off-by: Keith Packard <keithp at keithp.com>
Commit: f708cf504650bff7cc2e95df76ec1e418458de80
https://github.com/keith-packard/snek/commit/f708cf504650bff7cc2e95df76ec1e418458de80
Author: Keith Packard <keithp at keithp.com>
Date: 2019-06-08 (Sat, 08 Jun 2019)
Changed paths:
M test/op.py
Log Message:
-----------
test: Validate // and % operators
Signed-off-by: Keith Packard <keithp at keithp.com>
Commit: 8fb94bde643c575a665e18ca42b64768b8635d45
https://github.com/keith-packard/snek/commit/8fb94bde643c575a665e18ca42b64768b8635d45
Author: Keith Packard <keithp at keithp.com>
Date: 2019-06-09 (Sun, 09 Jun 2019)
Changed paths:
M chips/avr/snek-avr-eeprom.c
Log Message:
-----------
chips/avr: Share functions in EEPROM code
This doesn't change what the code does, it just creates some shared
helper functions to reduce code size.
eeprom_showc -- send a character to stdout (avoids fetching stdout multiple times)
eeprom_getc -- fetch an eeprom byte at snek_eeprom_addr and increment it.
Signed-off-by: Keith Packard <keithp at keithp.com>
Commit: 3b2c5cc17ad923b14c8148479b61e63ef633e371
https://github.com/keith-packard/snek/commit/3b2c5cc17ad923b14c8148479b61e63ef633e371
Author: Keith Packard <keithp at keithp.com>
Date: 2019-06-09 (Sun, 09 Jun 2019)
Changed paths:
M doc/snek.adoc
M snek-list.c
M test/dict.py
Log Message:
-----------
For duplicate keys in dict imm, use last value instead of first
A dictionary immediate value is allowed to contain duplicate keys,
the last entry is supposed to be used for the resulting dictionary.
To fix this, the order in which entries are stored in the dictionary
just needs to be reversed.
Signed-off-by: Keith Packard <keithp at keithp.com>
Commit: f4958c34afc5f5d149cc9ba44753d3505a4a390f
https://github.com/keith-packard/snek/commit/f4958c34afc5f5d149cc9ba44753d3505a4a390f
Author: Keith Packard <keithp at keithp.com>
Date: 2019-06-09 (Sun, 09 Jun 2019)
Changed paths:
M chips/avr/snek-avr-eeprom.c
Log Message:
-----------
chips/avr: use ao_usb_putc instead of putc( , stdout)
Saves several bytes of text space... Sigh.
Signed-off-by: Keith Packard <keithp at keithp.com>
Commit: 66d7f64e2b54c4d12eac468ca84f9cb2914dd752
https://github.com/keith-packard/snek/commit/66d7f64e2b54c4d12eac468ca84f9cb2914dd752
Author: Keith Packard <keithp at keithp.com>
Date: 2019-06-09 (Sun, 09 Jun 2019)
Changed paths:
M doc/snek.adoc
M snek-builtin.c
Log Message:
-----------
Separate print params with space in output
Print takes multiple positional parameters which should be
separated with spaces on output.
Signed-off-by: Keith Packard <keithp at keithp.com>
Compare: https://github.com/keith-packard/snek/compare/72343c148639...66d7f64e2b54
More information about the Snek
mailing list