Hi! Here's a revision of this patch set, now that the gnulib version has been bumped. It uncovered a couple of missing includes, BTW.
I've split it into a few patches. One replacing array_length(), another replacing SIZEOF(), and another replacing raw sizeof divisions. I've made sure it builds, but didn't test the binary (I assume it should work; the changes are too obvious). Have a lovely night! Alex --- Alejandro Colomar (5): bootstrap.conf: $gnulib_modules: Add stdcountof-h src/: Use countof() instead of array_length() [hpftodit]: Use countof() instead of SIZEOF() src/: Use countof() instead of sizeof division src/: Add missing includes bootstrap.conf | 1 + src/devices/grolbp/lbp.cpp | 5 +++-- src/devices/grolj4/lj4.cpp | 5 +++-- src/devices/grops/ps.cpp | 3 ++- src/devices/grops/psrm.cpp | 11 ++++++----- src/include/lib.h | 8 -------- src/libs/libgroff/font.cpp | 7 +++---- src/libs/libgroff/glyphuni.cpp | 4 +++- src/libs/libgroff/make-uniuni | 4 +++- src/libs/libgroff/uniglyph.cpp | 6 +++--- src/libs/libgroff/uniuni.cpp | 4 +++- src/preproc/eqn/box.cpp | 14 ++++++++------ src/preproc/eqn/delim.cpp | 4 +++- src/preproc/eqn/lex.cpp | 11 ++++++----- src/preproc/eqn/text.cpp | 6 +++--- src/preproc/pic/lex.cpp | 3 ++- src/preproc/pic/pic.ypp | 7 ++++--- src/preproc/preconv/preconv.cpp | 6 +++--- src/preproc/refer/command.cpp | 5 +++-- src/preproc/refer/ref.cpp | 4 +++- src/roff/troff/input.cpp | 4 ++-- src/utils/addftinfo/addftinfo.cpp | 5 +++-- src/utils/hpftodit/hpftodit.cpp | 6 +++--- src/utils/hpftodit/hpuni.cpp | 6 +++--- src/utils/tfmtodit/tfmtodit.cpp | 7 ++++--- 25 files changed, 80 insertions(+), 66 deletions(-) -- 2.51.0
