This reworks the single [libnbd PATCH v3 05/29] vector: (mostly) factor out DEFINE_VECTOR_EMPTY
20230215141158.2426855-6-lersek@redhat.com">http://mid.mail-archive.com/20230215141158.2426855-6-lersek@redhat.com according to the review comments I received from Eric and Rich in that subthread. Clearly, the more closely I look at anything, the more refactoring opportunities emerge. :/ At least, although I didn't like the amount of work needed, I quite like the results. :) This series too is bisectable. Laszlo Laszlo Ersek (5): common/include: add TYPE_IS_POINTER() macro common/include: extract STATIC_ASSERT() macro remove semicolon after DEFINE_VECTOR_TYPE() macro invocations vector: introduce DEFINE_POINTER_VECTOR_TYPE() convert string_vector_(iter(free) + reset()) to string_vector_empty() common/include/Makefile.am | 1 + common/include/checked-overflow.h | 8 ++-- common/include/compiler-macros.h | 31 ++++++++++++- common/include/static-assert.h | 48 ++++++++++++++++++++ common/include/test-array-size.c | 45 ++++++------------ common/utils/const-string-vector.h | 2 +- common/utils/nbdkit-string.h | 2 +- common/utils/string-vector.h | 2 +- common/utils/test-vector.c | 7 ++- common/utils/vector.h | 31 +++++++++++++ copy/nbdcopy.h | 2 +- generator/states-connect-socket-activation.c | 9 ++-- info/show.c | 3 +- lib/handle.c | 12 ++--- lib/internal.h | 2 +- lib/utils.c | 6 +-- 16 files changed, 145 insertions(+), 66 deletions(-) create mode 100644 common/include/static-assert.h base-commit: da8887fd4d7ddc1f9cf2f4a3bc20fd51578fa565 _______________________________________________ Libguestfs mailing list Libguestfs@redhat.com https://listman.redhat.com/mailman/listinfo/libguestfs