gpgscm: Fix build with object list.
authorJustus Winter <justus@g10code.com>
Tue, 31 Jan 2017 11:43:00 +0000 (12:43 +0100)
committerJustus Winter <justus@g10code.com>
Tue, 31 Jan 2017 17:49:27 +0000 (18:49 +0100)
* tests/gpgscm/scheme.c (oblist_add_by_name): Provide preallocation
information if USE_OBJECT_LIST.

Signed-off-by: Justus Winter <justus@g10code.com>
tests/gpgscm/scheme.c

index 27beb3a..1801ffc 100644 (file)
@@ -1151,6 +1151,7 @@ static INLINE pointer oblist_find_by_name(scheme *sc, const char *name)
 /* returns the new symbol */
 static pointer oblist_add_by_name(scheme *sc, const char *name)
 {
+#define oblist_add_by_name_allocates   3
   pointer x;
 
   x = immutable_cons(sc, mk_string(sc, name), sc->NIL);