[Snek] [keith-packard/snek] dbe21b: Use C99 flexible arrays

Keith Packard noreply at github.com
Wed Nov 13 11:55:15 PST 2024


  Branch: refs/heads/update-avr
  Home:   https://github.com/keith-packard/snek
  Commit: dbe21bd6919bd09f4cb738f479753f47762fd3ed
      https://github.com/keith-packard/snek/commit/dbe21bd6919bd09f4cb738f479753f47762fd3ed
  Author: Keith Packard <keithp at keithp.com>
  Date:   2024-11-13 (Wed, 13 Nov 2024)

  Changed paths:
    M snek.defs
    M snek.h

  Log Message:
  -----------
  Use C99 flexible arrays

Remove the '0' from the flexible array size. Add warnings.

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


  Commit: 85621c9550548a114d0ce0b6d7fe1611bc700b39
      https://github.com/keith-packard/snek/commit/85621c9550548a114d0ce0b6d7fe1611bc700b39
  Author: Keith Packard <keithp at keithp.com>
  Date:   2024-11-13 (Wed, 13 Nov 2024)

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

  Log Message:
  -----------
  Make param to snek_code_add_string const

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


  Commit: 5ce44c41ded0a11c0f7420410d105d5ca5cc6c5b
      https://github.com/keith-packard/snek/commit/5ce44c41ded0a11c0f7420410d105d5ca5cc6c5b
  Author: Keith Packard <keithp at keithp.com>
  Date:   2024-11-13 (Wed, 13 Nov 2024)

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

  Log Message:
  -----------
  Make snek_move_block_addr static

This is only used from inside snek-memory.c

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


  Commit: 1d2560cb419f0efd0b11233a0600dcd5073c7ee0
      https://github.com/keith-packard/snek/commit/1d2560cb419f0efd0b11233a0600dcd5073c7ee0
  Author: Keith Packard <keithp at keithp.com>
  Date:   2024-11-13 (Wed, 13 Nov 2024)

  Changed paths:
    M chips/samd21/uf2conv.py

  Log Message:
  -----------
  chips/samd21: Fix regex usage in uf2conv.py

Was using \s for whitespace instead of \\s

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


  Commit: ab741ad1efda70e651dfda436adb02e44831ceed
      https://github.com/keith-packard/snek/commit/ab741ad1efda70e651dfda436adb02e44831ceed
  Author: Keith Packard <keithp at keithp.com>
  Date:   2024-11-13 (Wed, 13 Nov 2024)

  Changed paths:
    M ports/narrow-1284/snek-narrow-1284-math.builtin

  Log Message:
  -----------
  ports/narrow-1284: Clean up smaller math builtin list

Provide alias for 'pow', clean up inf and nan definitions.

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


  Commit: f57286cc2836059ae50473161ac4dc755fd15e44
      https://github.com/keith-packard/snek/commit/f57286cc2836059ae50473161ac4dc755fd15e44
  Author: Keith Packard <keithp at keithp.com>
  Date:   2024-11-13 (Wed, 13 Nov 2024)

  Changed paths:
    M chips/atmega/snek-atmega.defs
    M chips/avr/snek-avr.defs
    M ports/duemilanove/Makefile
    M ports/grove/Makefile
    M ports/mega/Makefile
    M ports/nano-every/Makefile
    M ports/narrow-1284/Makefile

  Log Message:
  -----------
  Move AVR compile options to chips defs files

Make these options common across all ports instead of copy/pasting
them into each port Makefile. Also use the distro version of avr-gcc
for nano-every as it has been updated.

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


  Commit: b6650d6da6dc2465b20eb687dd3a621ac0d75698
      https://github.com/keith-packard/snek/commit/b6650d6da6dc2465b20eb687dd3a621ac0d75698
  Author: Keith Packard <keithp at keithp.com>
  Date:   2024-11-13 (Wed, 13 Nov 2024)

  Changed paths:
    M chips/atmega/snek-atmega-math.h
    M snek-atof.c

  Log Message:
  -----------
  chips/atmega: Adapt to more recent avr libc

avr libc has changed how float and double stuff is managed; a couple of
minor changes are needed to cope.

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


Compare: https://github.com/keith-packard/snek/compare/dbe21bd6919b%5E...b6650d6da6dc

To unsubscribe from these emails, change your notification settings at https://github.com/keith-packard/snek/settings/notifications


More information about the Snek mailing list