aboutsummaryrefslogtreecommitdiffstats
path: root/tests/gpgscm/opdefines.h
diff options
context:
space:
mode:
authorJustus Winter <[email protected]>2017-03-29 14:32:36 +0000
committerJustus Winter <[email protected]>2017-04-10 12:57:25 +0000
commit7dff6248bddd5583988ac562318cf0d76a409d0e (patch)
tree75ce9fa1d11bd6ee7f474843f4ec9e3498be4c28 /tests/gpgscm/opdefines.h
parentgpgscm: Use more threaded code. (diff)
downloadgnupg-7dff6248bddd5583988ac562318cf0d76a409d0e.tar.gz
gnupg-7dff6248bddd5583988ac562318cf0d76a409d0e.zip
gpgscm: Move dispatch table into rodata.
* tests/gpgscm/opdefines.h: Use 0 instead of NULL. * tests/gpgscm/scheme.c (op_code_info): Use char arrays instead of pointers, make arity parameters smaller. (INF_ARG): Adapt. (_OP_DEF): Likewise. (dispatch_table): Likewise. (procname): Likewise. (Eval_cycle): Likewise. (scheme_init_custom_alloc): Likewise. Signed-off-by: Justus Winter <[email protected]>
Diffstat (limited to 'tests/gpgscm/opdefines.h')
-rw-r--r--tests/gpgscm/opdefines.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/gpgscm/opdefines.h b/tests/gpgscm/opdefines.h
index 6c53e1fad..bee2b6d1f 100644
--- a/tests/gpgscm/opdefines.h
+++ b/tests/gpgscm/opdefines.h
@@ -154,7 +154,7 @@ _OP_DEF("set-symbol-property!", 3, 3, TST_SYMBOL TST_SYMBOL TST
_OP_DEF("symbol-property", 2, 2, TST_SYMBOL TST_SYMBOL, OP_SYMBOL_PROPERTY )
#endif
#if USE_TAGS
-_OP_DEF(NULL, 0, 0, TST_NONE, OP_TAG_VALUE )
+_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