aboutsummaryrefslogtreecommitdiffstats
path: root/tests/gpgscm/scheme-private.h
diff options
context:
space:
mode:
authorJustus Winter <[email protected]>2016-11-21 11:38:44 +0000
committerJustus Winter <[email protected]>2016-12-08 16:15:20 +0000
commita4a69163d9d7e4d9f3339eb5cda0afb947180b26 (patch)
tree49eba0c7ef9dd7262f19dd57318942d6b38ef3a3 /tests/gpgscm/scheme-private.h
parentgpgscm: Implement tags. (diff)
downloadgnupg-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 '')
-rw-r--r--tests/gpgscm/scheme-private.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/gpgscm/scheme-private.h b/tests/gpgscm/scheme-private.h
index 2c5c749e9..40a421160 100644
--- a/tests/gpgscm/scheme-private.h
+++ b/tests/gpgscm/scheme-private.h
@@ -163,6 +163,7 @@ int tok;
int print_flag;
pointer value;
int op;
+unsigned int flags;
void *ext_data; /* For the benefit of foreign functions */
long gensym_cnt;