Home GnuPG
Diffusion GnuPG a4a69163d9d7

gpgscm: Add flags to the interpreter.
a4a69163d9d7Unpublished

Unpublished Commit ยท Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

gpgscm: Add flags to the interpreter.

* tests/gpgscm/scheme-private.h (struct scheme): Add field 'flags'.
* tests/gpgscm/scheme.c (S_OP_MASK): New macro.
(S_FLAG_MASK, s_set_flag, s_clear_flag, s_get_flag): Likewise.
(_s_return): Unpack the encoded opcode and flags.
(s_save): Encode the flags along with the opcode.  Use normal
integers to encode the result.
(scheme_init_custom_alloc): Initialize 'op' and 'flags'.
  • Signed-off-by: Justus Winter <justus@g10code.com>

Details

Provenance
justusAuthored on Nov 21 2016, 12:38 PM
Parents
rGfcf5aea44627: gpgscm: Implement tags.
Branches
Unknown
Tags
Unknown

Event Timeline

Justus Winter <justus@g10code.com> committed rGa4a69163d9d7: gpgscm: Add flags to the interpreter. (authored by Justus Winter <justus@g10code.com>).Dec 8 2016, 5:15 PM