[Snek] [keith-packard/snek] 60a154: Shrink built-in atof function a bit

Keith Packard noreply at github.com
Mon Sep 27 16:24:22 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/keith-packard/snek
  Commit: 60a15438078577e5759f9003c576d0619ce44f9e
      https://github.com/keith-packard/snek/commit/60a15438078577e5759f9003c576d0619ce44f9e
  Author: Keith Packard <keithp at keithp.com>
  Date:   2021-09-27 (Mon, 27 Sep 2021)

  Changed paths:
    M snek-atof.c

  Log Message:
  -----------
  Shrink built-in atof function a bit

Skip 'nan' and 'inf' parsing when the float() builtin
is not present as those won't be needed for the lexer.

Use x*10+c instead of shifts as it's smaller. Use more efficient check
for exponent character.

Signed-off-by: Keith Packard <keithp at keithp.com>


  Commit: 5b2d578c954f8a0d71f73cef21810a99332874e8
      https://github.com/keith-packard/snek/commit/5b2d578c954f8a0d71f73cef21810a99332874e8
  Author: Keith Packard <keithp at keithp.com>
  Date:   2021-09-27 (Mon, 27 Sep 2021)

  Changed paths:
    M ports/duemilanove/Makefile
    M ports/grove/Makefile

  Log Message:
  -----------
  duemilanove, grove: Keep ROM image within limits

While the atmega32p rom holds 32kB, the upper 512B hold the boot
loader, so we need to make sure the image fits within the remaining space.

Signed-off-by: Keith Packard <keithp at keithp.com>


  Commit: b5307df770ac9c39bf3b0b79a4200a259816759a
      https://github.com/keith-packard/snek/commit/b5307df770ac9c39bf3b0b79a4200a259816759a
  Author: Keith Packard <keithp at keithp.com>
  Date:   2021-09-27 (Mon, 27 Sep 2021)

  Changed paths:
    M snek.defs

  Log Message:
  -----------
  Snek version 1.7

Signed-off-by: Keith Packard <keithp at keithp.com>


Compare: https://github.com/keith-packard/snek/compare/fc12ed75b839...b5307df770ac


More information about the Snek mailing list