gpgscm: Make the compile-hook configurable.
authorJustus Winter <justus@g10code.com>
Wed, 9 Nov 2016 12:34:54 +0000 (13:34 +0100)
committerJustus Winter <justus@g10code.com>
Thu, 10 Nov 2016 13:57:07 +0000 (14:57 +0100)
commit568cfcde45a0d6c456d8f8be1ea0e408416badad
treefc25ad24a19fa185d5c2d8c26760d0c9592b2506
parent9ee184bc0afaea06785d836ed175b851b9ae532f
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 <justus@g10code.com>
tests/gpgscm/scheme-private.h
tests/gpgscm/scheme.c
tests/gpgscm/scheme.h