groff-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[groff] 49/60: [troff]: Trivially refactor.


From: G. Branden Robinson
Subject: [groff] 49/60: [troff]: Trivially refactor.
Date: Wed, 11 Sep 2024 03:38:34 -0400 (EDT)

gbranden pushed a commit to branch master
in repository groff.

commit 8bc181a9bbce5883a3b7efd6c264874d9c92e961
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
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 <g.branden.robinson@gmail.com>
+
+       * src/roff/troff/input.cpp
+       (possibly_handle_first_page_transition): Boolify.
+
 2024-09-10  G. Branden Robinson <g.branden.robinson@gmail.com>
 
        * 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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]