mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-22 10:19:57 +01:00
gpgscm: Refactor.
* tests/gpgscm/scheme.c (opexe_0): Reduce code duplication. Signed-off-by: Justus Winter <justus@g10code.com>
This commit is contained in:
parent
d8df804272
commit
a3b258d1d1
@ -2963,16 +2963,16 @@ static pointer opexe_0(scheme *sc, enum scheme_opcodes op) {
|
||||
}
|
||||
}
|
||||
|
||||
#else
|
||||
CASE(OP_LAMBDA): /* lambda */
|
||||
sc->value = sc->code;
|
||||
/* Fallthrough. */
|
||||
#endif
|
||||
|
||||
CASE(OP_LAMBDA1):
|
||||
gc_disable(sc, 1);
|
||||
s_return_enable_gc(sc, mk_closure(sc, sc->value, sc->envir));
|
||||
|
||||
#else
|
||||
CASE(OP_LAMBDA): /* lambda */
|
||||
gc_disable(sc, 1);
|
||||
s_return_enable_gc(sc, mk_closure(sc, sc->code, sc->envir));
|
||||
|
||||
#endif
|
||||
|
||||
CASE(OP_MKCLOSURE): /* make-closure */
|
||||
x=car(sc->args);
|
||||
|
Loading…
x
Reference in New Issue
Block a user