Home GnuPG
Diffusion GnuPG 489edf84c9a9

gpgscm: Introduce macro for the vector length.
489edf84c9a9Unpublished

Unpublished Commit ยท Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

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

Provenance
justusAuthored on Jan 30 2017, 3:39 PM
Parents
rG59048b0f1aa7: Revert "tests: Add test demonstrating issue2929."
Branches
Unknown
Tags
Unknown

Event Timeline

Justus Winter <justus@g10code.com> committed rG489edf84c9a9: gpgscm: Introduce macro for the vector length. (authored by Justus Winter <justus@g10code.com>).Jan 30 2017, 4:24 PM