[Snek] [keith-packard/snek] cbe2f9: Make string interpolation of '%%' generate '%'

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


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

  Changed paths:
    M snek-string.c

  Log Message:
  -----------
  Make string interpolation of '%%' generate '%'

The pointer passed to snek_buf_sprintc was wrong, so the
'%' got lost in space.

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


  Commit: 9273cb5e5df89d30cfaa33f88729607a38affc34
      https://github.com/keith-packard/snek/commit/9273cb5e5df89d30cfaa33f88729607a38affc34
  Author: Keith Packard <keithp at keithp.com>
  Date:   2019-12-23 (Mon, 23 Dec 2019)

  Changed paths:
    M test/Makefile
    A test/interpolate-str.py

  Log Message:
  -----------
  Add some string intepolation tests

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


Compare: https://github.com/keith-packard/snek/compare/689c7fc6bdaa...9273cb5e5df8


More information about the Snek mailing list