core: append2, append_reverse, reverse, reverse!: Create less garbage.
authorJan Nieuwenhuizen <janneke@gnu.org>
Fri, 20 Apr 2018 12:38:24 +0000 (14:38 +0200)
committerJan Nieuwenhuizen <janneke@gnu.org>
Fri, 20 Apr 2018 12:38:24 +0000 (14:38 +0200)
commit4b6d11e9900dac78910fb7eabf42c3c3f34dedc9
tree80c7556e4e24d3c8159abd33d2db74505016da29
parent62a369e6deb58a3c9eae4991a6fd454dc2334cda
core: append2, append_reverse, reverse, reverse!: Create less garbage.

* src/mes.c (append_reverse): New function.
  (reverse_x_): New function.
  (append2): Use them to create less garbage.
* module/mes/scm.mes (reverse): Create less garbage.
* module/srfi/srfi-1.mes (reverse!): Rewrite, use core:reverse!.
  (append-reverse): Remove.
build-aux/mes-snarf.scm
module/mes/scm.mes
module/srfi/srfi-1.mes
src/mes.c
tests/scm.test