Follow-up Comment #16, bug #66518 (group groff):
commit 4ab264c06df96ff825de226f8d19ddf5ffee0c67 Author: Alejandro Colomar <[email protected]> Date: Sun Dec 7 16:56:10 2025 +0100 bootstrap.conf (gnulib_modules): Add stdcountof-h. Continues the long process of fixing Savannah #66518. Signed-off-by: Alejandro Colomar <[email protected]> commit 81bf236e4a0067df448515498c2ef83e75e123ff Author: Alejandro Colomar <[email protected]> Date: Sun Dec 7 16:56:13 2025 +0100 Use countof() instead of array_length(). * src/devices/grolbp/lbp.cpp: * src/devices/grolj4/lj4.cpp: * src/devices/grops/ps.cpp: * src/devices/grops/psrm.cpp: * src/libs/libgroff/font.cpp: * src/libs/libgroff/glyphuni.cpp: * src/libs/libgroff/make-uniuni: * src/libs/libgroff/uniuni.cpp: * src/preproc/eqn/box.cpp: * src/preproc/eqn/lex.cpp: * src/preproc/pic/pic.ypp: * src/preproc/preconv/preconv.cpp: * src/roff/troff/input.cpp: * src/utils/addftinfo/addftinfo.cpp: Include "stdcountof.h" header file. * src/devices/grolbp/lbp.cpp (set_papersize): * src/devices/grolj4/lj4.cpp (lj4_font::handle_unknown_font_command, lookup_paper_size): * src/devices/grops/ps.cpp (ps_printer::special): * src/devices/grops/psrm.cpp (resource_manager::process_file): * src/libs/libgroff/font.cpp (font::load_desc): * src/libs/libgroff/glyphuni.cpp (glyph_to_unicode_init::glyph_to_unicode_init): * src/libs/libgroff/make-uniuni (unicode_decompose_init::unicode_decompose_init): * src/libs/libgroff/uniuni.cpp (unicode_decompose_init::unicode_decompose_init): * src/preproc/eqn/box.cpp (set_param, reset_param, get_param) (init_param_table, free_param_table): * src/preproc/eqn/lex.cpp (init_table): * src/preproc/pic/pic.ypp (define_variable, reset, reset_all): * src/preproc/preconv/preconv.cpp (get_BOM): * src/roff/troff/input.cpp (lookup_warning): * src/utils/addftinfo/addftinfo.cpp (main, usage): Use countof() instead of [groff's template function --GBR] array_length(). * src/devices/grops/psrm.cpp: Initialize constant globals with `countof()` instead of `array_length()`. countof() is [expected to be --GBR] standard (ISO C2y). Continues the long process of fixing Savannah #66518. Signed-off-by: Alejandro Colomar <[email protected]> commit 45370e6502ed35e28fd75be0a0d0db41b82ddaf1 Author: Alejandro Colomar <[email protected]> Date: Sun Dec 7 16:56:16 2025 +0100 [hpftodit]: Use countof() instead of SIZEOF(). * src/utils/hpftodit/hpftodit.cpp: Include "stdcountof.h" header file. Drop `SIZEOF()` function-like preprocessor macro. (output_ligatures): Use `countof()` instead of `SIZEOF()`. countof() is [expected to be --GBR] standard (ISO C2y). Continues the long process of fixing Savannah #66518. Signed-off-by: Alejandro Colomar <[email protected]> commit 59bd04008581a73da9e030ee15a0edcaaa18e0e9 Author: Alejandro Colomar <[email protected]> Date: Sun Dec 7 16:56:18 2025 +0100 Use `countof()` instead of `sizeof` and division. * src/libs/libgroff/uniglyph.cpp: * src/preproc/eqn/delim.cpp: * src/preproc/eqn/text.cpp: * src/preproc/pic/lex.cpp: * src/preproc/refer/command.cpp: * src/preproc/refer/ref.cpp: * src/utils/hpftodit/hpuni.cpp: * src/utils/tfmtodit/tfmtodit.cpp: Include "stdcountof.h" header file. * src/preproc/eqn/delim.cpp: Initialize global constant `DELIM_TABLE_SIZE` using `countof()` instead of `sizeof` and division. * src/libs/libgroff/uniglyph.cpp (unicode_to_glyph_init::unicode_decompose_init): * src/preproc/eqn/text.cpp (special_to_entity): * src/preproc/pic/lex.cpp (lookup_keyword): * src/preproc/refer/command.cpp (execute_command): * src/preproc/refer/ref.cpp (find_month): * src/utils/hpftodit/hpuni.cpp (hp_msl_to_unicode_init::hp_msl_to_unicode_init): * src/utils/tfmtodit/tfmtodit.cpp (main): Use `countof()` instead of `sizeof` and division. countof() is [expected to be --GBR] standard (ISO C2y). Continues the long process of fixing Savannah #66518. Signed-off-by: Alejandro Colomar <[email protected]> _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?66518> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/
signature.asc
Description: PGP signature
