gpgscm: Add 'finally', rework all macros.

Authored by justus on Dec 22 2016, 2:42 PM.

Description

gpgscm: Add 'finally', rework all macros.

* tests/gpgscm/init.scm (finally): New macro.
* tests/gpgscm/tests.scm (letfd): Rewrite.
(with-working-directory): Likewise.
(with-temporary-working-directory): Likewise.
(lettmp): Likewise.

Rewrite all our macros using 'define-macro'. Use the new control flow
mechanism 'finally', or 'dynamic-wind' where appropriate. Make sure
the macros are hygienic. Reduce code duplication.

  • Signed-off-by: Justus Winter <justus@g10code.com>

Details

Committed
justusJan 2 2017, 11:02 AM
Parents
rE4165c9303d89: gpgscm: Use boxed values for source locations.
Branches
Unknown
Tags
Unknown