diff options
author | Justus Winter <[email protected]> | 2016-11-09 12:34:54 +0000 |
---|---|---|
committer | Justus Winter <[email protected]> | 2016-11-10 13:57:07 +0000 |
commit | 568cfcde45a0d6c456d8f8be1ea0e408416badad (patch) | |
tree | fc25ad24a19fa185d5c2d8c26760d0c9592b2506 /tests/gpgscm/scheme.h | |
parent | gpgscm: Drop obsolete commented-out code. (diff) | |
download | gnupg-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.h')
-rw-r--r-- | tests/gpgscm/scheme.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/gpgscm/scheme.h b/tests/gpgscm/scheme.h index bd6cda5ac..8d6fb42d5 100644 --- a/tests/gpgscm/scheme.h +++ b/tests/gpgscm/scheme.h @@ -40,6 +40,7 @@ extern "C" { # define USE_ERROR_HOOK 0 # define USE_TRACING 0 # define USE_COLON_HOOK 0 +# define USE_COMPILE_HOOK 0 # define USE_DL 0 # define USE_PLIST 0 #endif @@ -83,6 +84,12 @@ extern "C" { # define USE_COLON_HOOK 1 #endif +/* Compile functions using *compile-hook*. The default hook expands + * macros. */ +#ifndef USE_COMPILE_HOOK +# define USE_COMPILE_HOOK 1 +#endif + #ifndef USE_STRCASECMP /* stricmp for Unix */ # define USE_STRCASECMP 0 #endif |