diff options
author | Justus Winter <[email protected]> | 2016-11-21 11:38:44 +0000 |
---|---|---|
committer | Justus Winter <[email protected]> | 2016-12-08 16:15:20 +0000 |
commit | a4a69163d9d7e4d9f3339eb5cda0afb947180b26 (patch) | |
tree | 49eba0c7ef9dd7262f19dd57318942d6b38ef3a3 /common/argparse.c | |
parent | gpgscm: Implement tags. (diff) | |
download | gnupg-a4a69163d9d7e4d9f3339eb5cda0afb947180b26.tar.gz gnupg-a4a69163d9d7e4d9f3339eb5cda0afb947180b26.zip |
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 <[email protected]>
Diffstat (limited to 'common/argparse.c')
0 files changed, 0 insertions, 0 deletions