gpgscm: Introduce macro for the vector length.

Authored by justus on Jan 30 2017, 3:39 PM.

Description

gpgscm: Introduce macro for the vector length.

* tests/gpgscm/scheme.c (vector_length): New macro.
(get_vector_object): Use the new macro.
(oblist_add_by_name): Likewise.
(oblist_find_by_name): Likewise.
(oblist_all_symbols): Likewise.
(mk_vector): Likewise.
(mark): Likewise.
(new_slot_spec_in_env): Likewise.
(find_slot_spec_in_env): Likewise.
(opexe_2): Likewise.
(opexe_5): Likewise.

Introducing an abstraction reduces the coupling between code using
vectors and the implementation of vectors.

  • Signed-off-by: Justus Winter <justus@g10code.com>

Details

Committed
justusJan 30 2017, 4:24 PM
Parents
rE56787d898a69: gpgscm: Fail if too many arguments are given.
Branches
Unknown
Tags
Unknown