diff options
author | Justus Winter <[email protected]> | 2017-01-31 12:53:28 +0000 |
---|---|---|
committer | Justus Winter <[email protected]> | 2017-01-31 17:49:27 +0000 |
commit | e982432ba66652bc9bc16e334e1d4d184e1b68bd (patch) | |
tree | fa633b6928114cd88cf0c940b70257912d0706c4 | |
parent | gpgscm: Optimize symbol lookups and insertions. (diff) | |
download | libgpg-error-e982432ba66652bc9bc16e334e1d4d184e1b68bd.tar.gz libgpg-error-e982432ba66652bc9bc16e334e1d4d184e1b68bd.zip |
gpgscm: Fix build with list environments.
* tests/gpgscm/scheme.c (new_slot_spec_in_env): Provide preallocation
inforomation if USE_ALIST_ENV.
Signed-off-by: Justus Winter <[email protected]>
-rw-r--r-- | scheme.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -2699,6 +2699,7 @@ static INLINE void new_frame_in_env(scheme *sc, pointer old_env) static INLINE void new_slot_spec_in_env(scheme *sc, pointer env, pointer variable, pointer value) { +#define new_slot_spec_in_env_allocates 2 car(env) = immutable_cons(sc, immutable_cons(sc, variable, value), car(env)); } |