mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
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>
This commit is contained in:
parent
fcf5aea446
commit
a4a69163d9
2 changed files with 44 additions and 5 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue