gbranden pushed a commit to branch master
in repository groff.

commit 4ac29978dc907a986c3684c3fca9fc201425f55e
Author: G. Branden Robinson <[email protected]>
AuthorDate: Wed Jul 1 18:49:59 2026 -0500

    [troff]: Move external decl to header file. (1/2)
    
    * src/roff/troff/env.cpp: Move declaration of `get_diversion_state()`
      from here...
    * src/roff/troff/input.h: ...to here.
---
 ChangeLog              | 6 ++++++
 src/roff/troff/env.cpp | 1 -
 src/roff/troff/input.h | 3 ++-
 3 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 08cf3dc3f..8855a8615 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2026-07-01  G. Branden Robinson <[email protected]>
+
+       * src/roff/troff/env.cpp: Move declaration of
+       `get_diversion_state()` from here...
+       * src/roff/troff/input.h: ...to here.
+
 2026-07-01  G. Branden Robinson <[email protected]>
 
        * src/roff/troff/div.cpp (configure_page_offset_request)
diff --git a/src/roff/troff/env.cpp b/src/roff/troff/env.cpp
index f73191eb8..9122b4810 100644
--- a/src/roff/troff/env.cpp
+++ b/src/roff/troff/env.cpp
@@ -98,7 +98,6 @@ env_list_node *env_stack;
 dictionary env_dictionary(10);
 environment *curenv;
 static int next_line_number = 0;
-extern statem *get_diversion_state();
 
 charinfo *field_delimiter_char;
 charinfo *padding_indicator_char;
diff --git a/src/roff/troff/input.h b/src/roff/troff/input.h
index 367bac42b..737b0310d 100644
--- a/src/roff/troff/input.h
+++ b/src/roff/troff/input.h
@@ -68,8 +68,9 @@ const int INPUT_SOFT_HYPHEN = 0255;           // \u00ad
 
 extern void do_stroke_color(symbol);
 extern void do_fill_color(symbol);
-
+extern statem *get_diversion_state();
 extern const char *encode_for_stream_output(int c);
+
 extern bool was_invoked_with_regular_control_character;
 extern bool suppress_push;
 extern bool want_nodes_dumped;

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

Reply via email to