[Snek] [keith-packard/snek] fb6509: Create 'SNEK_INVALID' value for snek_binary type e...

Keith Packard noreply at github.com
Sat Dec 21 17:03:16 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/keith-packard/snek
  Commit: fb650970246c3e214916b08594d1efbe7bf3462f
      https://github.com/keith-packard/snek/commit/fb650970246c3e214916b08594d1efbe7bf3462f
  Author: Keith Packard <keithp at keithp.com>
  Date:   2019-12-21 (Sat, 21 Dec 2019)

  Changed paths:
    M snek-exec.c
    M snek.h

  Log Message:
  -----------
  Create 'SNEK_INVALID' value for snek_binary type error checking

SNEK_NULL *is* a valid retun from the array operation, so we can't use that
to flag type errors in binary operations. Create a new value, SNEK_INVALID, to
use instead.

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


  Commit: f37cf65359a2a347b8366fad501df5169bf30785
      https://github.com/keith-packard/snek/commit/f37cf65359a2a347b8366fad501df5169bf30785
  Author: Keith Packard <keithp at keithp.com>
  Date:   2019-12-21 (Sat, 21 Dec 2019)

  Changed paths:
    M snek-memory.c

  Log Message:
  -----------
  Use snek_chunk_t for var iterating over chunks

snek_chunk_t is defined to hold SNEK_NCHUNK, so it's safe to use that
instead of snek_soffset_t when snek_chunk_t is 8 bits, and we need to
use snek_offset_t when snek_chunk_t is snek_offset_t to avoid
signed/unsigned compare warnings.

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


  Commit: d0d82bb353388cfbb95577d5cfb3bf5612914a1d
      https://github.com/keith-packard/snek/commit/d0d82bb353388cfbb95577d5cfb3bf5612914a1d
  Author: Keith Packard <keithp at keithp.com>
  Date:   2019-12-21 (Sat, 21 Dec 2019)

  Changed paths:
    M ports/posix/snek-posix.builtin

  Log Message:
  -----------
  Make posix pool much larger

This allows large snek programs to run in the posix build.

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


  Commit: fdb53221f702fae7c8143eeede39a1517a27b751
      https://github.com/keith-packard/snek/commit/fdb53221f702fae7c8143eeede39a1517a27b751
  Author: Keith Packard <keithp at keithp.com>
  Date:   2019-12-21 (Sat, 21 Dec 2019)

  Changed paths:
    A ports/hifive1revb/.gitignore
    A ports/hifive1revb/Makefile
    A ports/hifive1revb/metal.default.lds
    A ports/hifive1revb/metal/machine.h
    A ports/hifive1revb/metal/machine/inline.h
    A ports/hifive1revb/metal/machine/platform.h
    A ports/hifive1revb/snek-hifive1revb.builtin
    A ports/hifive1revb/snek-metal-gpio.c
    A ports/hifive1revb/snek-metal-uart.c
    A ports/hifive1revb/snek-metal.c
    A ports/hifive1revb/snek-metal.h

  Log Message:
  -----------
  Add port to SiFive HiFive1 revb

This references freedom-metal remotely, so building will
require that be available.

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


  Commit: 17436d8c4dafc64df40757cccfbeb6383b6e90ee
      https://github.com/keith-packard/snek/commit/17436d8c4dafc64df40757cccfbeb6383b6e90ee
  Author: Keith Packard <keithp at keithp.com>
  Date:   2019-12-21 (Sat, 21 Dec 2019)

  Changed paths:
    M snek-install.defs

  Log Message:
  -----------
  Add conditionals to control building hifive1revb and esp32 versions

These two ports require software outside of snek to compile, so use
SNEK_HIFIVE1REVB and SNEK_ESP32 to control whether to try to use them.

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


Compare: https://github.com/keith-packard/snek/compare/9318378ebfc3...17436d8c4daf


More information about the Snek mailing list