diff options
author | Justus Winter <justus@g10code.com> | 2017-03-29 18:05:33 +0200 |
---|---|---|
committer | Justus Winter <justus@g10code.com> | 2017-04-10 14:57:30 +0200 |
commit | a1ad5d6a30cf72d9b7e7bb449985dc69d5e01c4b (patch) | |
tree | da8d383c744d35379149f8f426f837d161535063 /tests/gpgscm/opdefines.h | |
parent | gpgscm: Add and use opcode for reversing a list in place. (diff) | |
download | gnupg2-a1ad5d6a30cf72d9b7e7bb449985dc69d5e01c4b.tar.xz gnupg2-a1ad5d6a30cf72d9b7e7bb449985dc69d5e01c4b.zip |
gpgscm: Make tags mandatory.
* tests/gpgscm/opdefines.h: Make tags mandatory.
* tests/gpgscm/scheme.c: Likewise.
* tests/gpgscm/scheme.h: Likewise.
--
Tags provide a constant-time lookup mechanism for almost every object.
This is useful for the interpreter itself, and the code for tags is
tiny.
Signed-off-by: Justus Winter <justus@g10code.com>
Diffstat (limited to 'tests/gpgscm/opdefines.h')
-rw-r--r-- | tests/gpgscm/opdefines.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/tests/gpgscm/opdefines.h b/tests/gpgscm/opdefines.h index dd32d1e71..61f797138 100644 --- a/tests/gpgscm/opdefines.h +++ b/tests/gpgscm/opdefines.h @@ -154,11 +154,9 @@ _OP_DEF("append", 0, INF_ARG, TST_NONE, _OP_DEF("set-symbol-property!", 3, 3, TST_SYMBOL TST_SYMBOL TST_ANY, OP_SET_SYMBOL_PROPERTY ) _OP_DEF("symbol-property", 2, 2, TST_SYMBOL TST_SYMBOL, OP_SYMBOL_PROPERTY ) #endif -#if USE_TAGS _OP_DEF(0, 0, 0, TST_NONE, OP_TAG_VALUE ) _OP_DEF("make-tagged-value", 2, 2, TST_ANY TST_PAIR, OP_MK_TAGGED ) _OP_DEF("get-tag", 1, 1, TST_ANY, OP_GET_TAG ) -#endif _OP_DEF("quit", 0, 1, TST_NUMBER, OP_QUIT ) _OP_DEF("gc", 0, 0, 0, OP_GC ) _OP_DEF("gc-verbose", 0, 1, TST_NONE, OP_GCVERB ) |