gbranden pushed a commit to branch master
in repository groff.

commit 1b731d308da1fd7a2313a1b13cb8a1d937e1ef78
Author: G. Branden Robinson <[email protected]>
AuthorDate: Fri Dec 19 14:24:28 2025 -0600

    src/roff/troff/token.h: Fix code style nit.
    
    * src/roff/troff/token.h: Relocate declaration of "input.cpp" function
      `has_arg()` to sit alongside others for the same file, and mark it
      `extern`.  Arrange nearby declarations to match the order of their
      definition in "input.cpp", in case any deep meaning is thereby
      revealed (perhaps not).
---
 ChangeLog              | 8 ++++++++
 src/roff/troff/token.h | 7 +++----
 2 files changed, 11 insertions(+), 4 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index cc7f34568..e8e8149ec 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2025-12-19  G. Branden Robinson <[email protected]>
+
+       * src/roff/troff/token.h: Relocate declaration of "input.cpp"
+       function `has_arg()` to sit alongside others for the same file,
+       and mark it `extern`.  Arrange nearby declarations to match the
+       order of their definition in "input.cpp", in case any deep
+       meaning is thereby revealed (perhaps not).
+
 2025-12-19  G. Branden Robinson <[email protected]>
 
        [troff]: Trivially refactor for conceptual clarity.  In *roff,
diff --git a/src/roff/troff/token.h b/src/roff/troff/token.h
index aedcc10cb..c4284a658 100644
--- a/src/roff/troff/token.h
+++ b/src/roff/troff/token.h
@@ -125,12 +125,13 @@ public:
 
 extern token tok;              // the current token
 
+extern bool has_arg(bool /* want_peek */ = false);
+extern void skip_line();
 extern symbol read_identifier(bool /* required */ = false);
 extern symbol get_long_name(bool /* required */ = false);
+extern void handle_initial_title();
 extern charinfo *read_character(); // TODO?: bool /* required */ = false
 extern char *read_rest_of_line_as_argument();
-extern void skip_line();
-extern void handle_initial_title();
 
 enum char_mode {
   CHAR_NORMAL,
@@ -285,8 +286,6 @@ inline bool token::is_zero_width_break()
   return (TOKEN_ZERO_WIDTH_BREAK == type);
 }
 
-bool has_arg(bool /* want_peek */ = false);
-
 // Local Variables:
 // fill-column: 72
 // mode: C++

_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit

Reply via email to