gbranden pushed a commit to branch master
in repository groff.
commit 9bd7a0215e11f9b8b06d31322aa15ccf968d6471
Author: G. Branden Robinson <[email protected]>
AuthorDate: Sat Mar 14 08:36:32 2026 -0500
[troff]: Finish an incomplete boolification.
* src/roff/troff/input.cpp (word_space_node::need_reread)
(hmotion_node::need_reread): Assign to `bool`-typed `unformat` member
variable with Boolean, not integer, literals. Continues commit
8ab4aa8bec, 2024-08-14.
---
ChangeLog | 7 +++++++
src/roff/troff/input.cpp | 4 ++--
2 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 7e61bf1af..df5583555 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2026-03-14 G. Branden Robinson <[email protected]>
+
+ * src/roff/troff/input.cpp (word_space_node::need_reread)
+ (hmotion_node::need_reread): Assign to `bool`-typed `unformat`
+ member variable with Boolean, not integer, literals. Continues
+ commit 8ab4aa8bec, 2024-08-14.
+
2026-03-14 G. Branden Robinson <[email protected]>
[troff]: Boolify and rename `global_diverted_space`.
diff --git a/src/roff/troff/input.cpp b/src/roff/troff/input.cpp
index d085cadd5..4288731fe 100644
--- a/src/roff/troff/input.cpp
+++ b/src/roff/troff/input.cpp
@@ -3480,7 +3480,7 @@ bool word_space_node::need_reread(bool *)
if (unformat) {
for (width_list *w = orig_width; w != 0 /* nullptr */; w = w->next)
curenv->space(w->width, w->sentence_width);
- unformat = 0;
+ unformat = false;
return true;
}
return false;
@@ -3495,7 +3495,7 @@ bool hmotion_node::need_reread(bool *)
{
if (unformat && was_tab) {
curenv->advance_to_tab_stop();
- unformat = 0;
+ unformat = false;
return true;
}
return false;
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit