[Snek] [keith-packard/snek] 6b4f5e: Remove extraneous cast

Keith Packard noreply at github.com
Tue Dec 24 09:56:00 PST 2019


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

  Changed paths:
    M snek-list.c

  Log Message:
  -----------
  Remove extraneous cast

snek_list_data returns snek_poly_t *, so there's no need to
cast the return value.

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


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

  Changed paths:
    M snek-string.c

  Log Message:
  -----------
  Allow format strings longer than 255 bytes

Need to use snek_offset_t to walk format string in
snek_string_interpolate to allow for more than 255 bytes.

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


  Commit: 53582e585f69a8714bcdf0e96cdf94fa9b89eb69
      https://github.com/keith-packard/snek/commit/53582e585f69a8714bcdf0e96cdf94fa9b89eb69
  Author: Keith Packard <keithp at keithp.com>
  Date:   2019-12-24 (Tue, 24 Dec 2019)

  Changed paths:
    M test/interpolate-str.py

  Log Message:
  -----------
  Add test for long format strings in interpolation

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


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

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

  Log Message:
  -----------
  Add error checking in interpolation

Trailing % is invalid
Missing arg is invalid
Extra arg is invalid

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


  Commit: 49323682a92fc9978c558c06caa22500b798f476
      https://github.com/keith-packard/snek/commit/49323682a92fc9978c558c06caa22500b798f476
  Author: Keith Packard <keithp at keithp.com>
  Date:   2019-12-24 (Tue, 24 Dec 2019)

  Changed paths:
    M test/Makefile
    A test/interpolate-badformat.py
    A test/interpolate-extra.py
    A test/interpolate-missing.py

  Log Message:
  -----------
  Add tests for invalid string interpolation

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


  Commit: 3ee308abe8ac65bc02ba77a12618219e4ed5cf24
      https://github.com/keith-packard/snek/commit/3ee308abe8ac65bc02ba77a12618219e4ed5cf24
  Author: Keith Packard <keithp at keithp.com>
  Date:   2019-12-24 (Tue, 24 Dec 2019)

  Changed paths:
    M snek-print.c

  Log Message:
  -----------
  Change dictionary print format to match python3

No space after '{' or before '}'
Add space after ':'

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


  Commit: 63a5ca2f9df367fdc1d6c6ac075978f692e52e40
      https://github.com/keith-packard/snek/commit/63a5ca2f9df367fdc1d6c6ac075978f692e52e40
  Author: Keith Packard <keithp at keithp.com>
  Date:   2019-12-24 (Tue, 24 Dec 2019)

  Changed paths:
    M test/interpolate-str.py

  Log Message:
  -----------
  Add dictionary to string interpolation tests

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


Compare: https://github.com/keith-packard/snek/compare/9273cb5e5df8...63a5ca2f9df3


More information about the Snek mailing list