Follow-up Comment #14, bug #66672 (group groff):
commit 51a38a9728cf5fdbaf41434e0c6f5e10d31a9e5f Author: G. Branden Robinson <[email protected]> Date: Mon Nov 16 09:29:16 2026 -0600 [tbl]: Boolify AT&T compatibility flag. Demote `compatible_flag` from `int` to `bool` and rename it to `want_att_compat`. * src/preproc/tbl/table.h: Update declaration. * src/preproc/tbl/main.cpp: Initialize it with Boolean, not integer, literal. (main): Assign to it with Boolean, not integer, literal. * src/preproc/tbl/main.cpp (table_input::get) (process_input_file, process_data): * src/preproc/tbl/table.cpp (table::init_output): Update dereference sites. Continues the long process of fixing Savannah #66672. commit 15c4712fceeaea95f1a986f446688420565e9132 Author: G. Branden Robinson <[email protected]> Date: Mon Nov 16 10:17:39 2026 -0600 [pic]: Boolify. Demote `look_up_variable()` function from `int` to `bool`. * src/preproc/pic/object.h: Update declaration. * src/preproc/pic/pic.ypp: Update definition. (look_up_variable): Return Boolean, not integer, literals. Continues the long process of fixing Savannah #66672. commit 8f8c710fb575a63e4b94fd702bc647d7f1ccb183 Author: G. Branden Robinson <[email protected]> Date: Mon Nov 16 10:49:26 2026 -0600 src/preproc/pic/lex.cpp: Slightly refactor. * src/preproc/pic/lex.cpp: Boolify argument to `get_token()` and rename it from `lookup_flag` to `want_macro_expansion`, to make its purpose clearer. (get_token): Use new parameter name. (do_define) (do_undef) (do_lookahead) (yylex): Update call sites to use Boolean, not integer, literals. Continues the long process of fixing Savannah #66672. commit 151b85d71447310114c78967166f2c098d4cd9bf Author: G. Branden Robinson <[email protected]> Date: Mon Nov 16 10:56:22 2026 -0600 src/preproc/pic/lex.cpp: Slightly refactor. * src/preproc/pic/lex.cpp (get_token): Use default argument. Default to `true`. (do_lookahead) (yylex): Update call sites to drop argument. Continues the long process of fixing Savannah #66672. commit 9f511c4b61e61b93ddde9fb6372e72e5ff53f9cf Author: G. Branden Robinson <[email protected]> Date: Mon Nov 16 12:14:18 2026 -0600 [pic]: Migrate to strdup(3). * src/preproc/pic/lex.cpp (macro_input::macro_input) (interpolate_macro_with_args) (copy_thru_input::copy_thru_input) (get_thru_arg) (yylex): * src/preproc/pic/main.cpp (do_picture): * src/preproc/pic/object.cpp (output::set_args) (graphic_object::set_fill_color) (graphic_object::set_outline_color) (closed_object::set_fill_color): (polygon_object::set_fill_color): * src/preproc/pic/pic.ypp (do_sprintf): * src/preproc/pic/troff.cpp (troff_output::set_color): Migrate from libgroff's `strsave()` to POSIX's strdup(3). Continues the long process of fixing Savannah #66672. commit 552211371680b946bd8d33aa6e6b3e4b32fabffe Author: G. Branden Robinson <[email protected]> Date: Mon Nov 16 14:11:53 2026 -0600 [pic]: Boolify `get_location()` member functions. * src/preproc/pic/pic.h (class input) (class file_input): * src/preproc/pic/lex.cpp (class input_stack) (class simple_file_input): * src/preproc/pic/main.cpp (class top_input): Demote declaration of `get_location()` from `int` to `bool`. * src/preproc/pic/lex.cpp (input::get_location) (file_input::get_location) (input_stack::get_location) (simple_file_input::get_location): * src/preproc/pic/main.cpp (top_input::get_location): Return Boolean rather than integer literals. Continues the long process of fixing Savannah #66672. commit 914c17449146a25d1a08261a0941b8dd6d6c3703 Author: G. Branden Robinson <[email protected]> Date: Mon Nov 16 14:16:32 2026 -0600 [pic]: Boolify `read_line()` member function. * src/preproc/pic/pic.h (class file_input): Demote declaration of `read_line()` from `int` to `bool`. * src/preproc/pic/lex.cpp (file_input::read_line): Return Boolean rather than integer literals. Continues the long process of fixing Savannah #66672. commit cd653e52fa399b41c04d680671c44ae7ec865b7e Author: G. Branden Robinson <[email protected]> Date: Mon Nov 16 14:41:22 2026 -0600 src/preproc/pic/lex.cpp: Boolify a member var. * src/preproc/pic/lex.cpp (class copy_thru_input): Demote `done` member variable from `int` to `bool`. (copy_thru_input::copy_thru_input): Update constructor initializer to use Boolean, not integer, literal. (copy_thru_input::get_line): Assign to `done` using Boolean, not integer, literal. Continues the long process of fixing Savannah #66672. commit e89dce5d1bd51f872f9f7cc392919269d57c55c9 Author: G. Branden Robinson <[email protected]> Date: Mon Nov 16 14:44:07 2026 -0600 src/preproc/pic/lex.cpp: Boolify. * src/preproc/pic/lex.cpp (get_delimited): Boolify. Demote return type from `int` to `bool`. Return Boolean, not integer, literals. Continues the long process of fixing Savannah #66672. commit 4cd00cc90206308fb8c9166aacae7627644a0139 Author: G. Branden Robinson <[email protected]> Date: Mon Nov 16 14:49:42 2026 -0600 src/preproc/pic/lex.cpp: Boolify member function. * src/preproc/pic/lex.cpp (class copy_thru_input): Boolify `get_line()` member function. Demote return type from `int` to `bool`. (copy_thru_input::get_line): Return Boolean, not integer, literals. Continues the long process of fixing Savannah #66672. commit 5da07731dddcd6334a5816560d5061d743e0ffcb Author: G. Branden Robinson <[email protected]> Date: Mon Nov 16 15:14:08 2026 -0600 src/preproc/pic/lex.cpp: Boolify "BOL" handling. * src/preproc/pic/lex.cpp: (class input_stack): Demote member variable `bol_flag` from `int` to `bool` and rename it `at_beginning_of_line`. Demote second argument to `push_back()` member function from `int` to `bool` and default it with Boolean, not integer, literal. Demote member function `bol()`'s return type from `int` to `bool` and rename it `is_at_beginning_of_line()`. (input_stack::at_beginning_of_line): Assign to (static) class member variable of `bool` type using Boolean, not integer, literal. (input_stack::bol): Rename this... (input_stack::is_at_beginning_of_line): ...to this, and update name of private variable dereferenced from `bol_flag` to `at_beginning_of_line`. (input_stack::clear): Assign Boolean literal to `at_beginning_of_line` instead of integer to `bol_flag`. (input_stack::get_char) (input_stack::push_back): Assign to `at_beginning_of_line` instead `bol_flag`. (input_stack::push_back): Rename second argument from `was_bol` to `was_at_bol`. (get_token): Rename local variable `bol` to `is_at_bol` and demote it from `int` to `bool`. Assign to it with value of `is_at_beginning_of_line()` member function, not `bol()`. Continues the long process of fixing Savannah #66672. commit f1840fbef873f17cdd4534ad24ac74d726f25d6e Author: G. Branden Robinson <[email protected]> Date: Mon Nov 16 16:53:23 2026 -0600 [pic]: Boolify AT&T compatibility flag. Demote `compatible_flag` from `int` to `bool` and rename it to `want_att_compat`. * src/preproc/pic/pic.h: Update declaration. * src/preproc/pic/main.cpp: Initialize it with Boolean, not integer, literal. * src/preproc/pic/main.cpp (main): Assign to it with Boolean, not integer, literal. * src/preproc/pic/lex.cpp (file_input::read_line): * src/preproc/pic/main.cpp (top_input::get) (top_input::peek) (do_file) (main): Update dereference sites. Continues the long process of fixing Savannah #66672. _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?66672> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/
signature.asc
Description: PGP signature
