aboutsummaryrefslogtreecommitdiffstats
path: root/tests/gpgscm/scheme-private.h
diff options
context:
space:
mode:
authorJustus Winter <[email protected]>2016-11-09 12:34:54 +0000
committerJustus Winter <[email protected]>2016-11-10 13:57:07 +0000
commit568cfcde45a0d6c456d8f8be1ea0e408416badad (patch)
treefc25ad24a19fa185d5c2d8c26760d0c9592b2506 /tests/gpgscm/scheme-private.h
parentgpgscm: Drop obsolete commented-out code. (diff)
downloadgnupg-568cfcde45a0d6c456d8f8be1ea0e408416badad.tar.gz
gnupg-568cfcde45a0d6c456d8f8be1ea0e408416badad.zip
gpgscm: Make the compile-hook configurable.
* tests/gpgscm/scheme-private.h (struct scheme): Make field 'COMPILE_HOOK' optional. * tests/gpgscm/scheme.c (opexe_0): Fix guard. (scheme_init_custom_alloc): Conditionally initialize 'COMPILE_HOOK'. * tests/gpgscm/scheme.h (USE_COMPILE_HOOK): Define to 1 by default. Signed-off-by: Justus Winter <[email protected]>
Diffstat (limited to 'tests/gpgscm/scheme-private.h')
-rw-r--r--tests/gpgscm/scheme-private.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/gpgscm/scheme-private.h b/tests/gpgscm/scheme-private.h
index f5e4b0a7c..884889c43 100644
--- a/tests/gpgscm/scheme-private.h
+++ b/tests/gpgscm/scheme-private.h
@@ -115,7 +115,9 @@ pointer FEED_TO; /* => */
pointer COLON_HOOK; /* *colon-hook* */
pointer ERROR_HOOK; /* *error-hook* */
pointer SHARP_HOOK; /* *sharp-hook* */
+#if USE_COMPILE_HOOK
pointer COMPILE_HOOK; /* *compile-hook* */
+#endif
pointer free_cell; /* pointer to top of free cells */
long fcells; /* # of free cells */