gpgscm: Add and use opcode for reversing a list in place.

Authored by justus on Apr 4 2017, 12:02 PM.

Description

gpgscm: Add and use opcode for reversing a list in place.

* tests/gpgscm/lib.scm (string-split-pln): Use 'reverse!'.
(string-rtrim): Likewise.
* tests/gpgscm/opdefines.h (reverse!): New opcode.
* tests/gpgscm/scheme.c (opexe_0): Handle new opcode.
  • Signed-off-by: Justus Winter <justus@g10code.com>

Details

Committed
justusApr 10 2017, 2:57 PM
Parents
rE8a2d1706e5d4: gpgscm: Deduplicate code.
Branches
Unknown
Tags
Unknown