gbranden pushed a commit to branch master
in repository groff.
commit 8bc181a9bbce5883a3b7efd6c264874d9c92e961
Author: G. Branden Robinson <[email protected]>
AuthorDate: Tue Sep 10 01:17:44 2024 -0500
[troff]: Trivially refactor.
* src/roff/troff/input.cpp (possibly_handle_first_page_transition):
Boolify.
---
ChangeLog | 5 +++++
src/roff/troff/input.cpp | 6 +++---
2 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 2d1597a86..f4471da78 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2024-09-10 G. Branden Robinson <[email protected]>
+
+ * src/roff/troff/input.cpp
+ (possibly_handle_first_page_transition): Boolify.
+
2024-09-10 G. Branden Robinson <[email protected]>
* src/roff/troff/div.h (class top_level_diversion): Rename
diff --git a/src/roff/troff/input.cpp b/src/roff/troff/input.cpp
index d77e11c7e..60fef9a28 100644
--- a/src/roff/troff/input.cpp
+++ b/src/roff/troff/input.cpp
@@ -2939,15 +2939,15 @@ void do_request()
tok.next();
}
-inline int possibly_handle_first_page_transition()
+inline bool possibly_handle_first_page_transition()
{
if ((topdiv->before_first_page_status > 0) && (curdiv == topdiv)
&& !curenv->is_dummy()) {
handle_first_page_transition();
- return 1;
+ return true;
}
else
- return 0;
+ return false;
}
static int transparent_translate(int cc)
_______________________________________________
Groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit