gbranden pushed a commit to branch master
in repository groff.

commit f3105aeb103b58858ce3c4c61dc6b0169c2da65e
Author: G. Branden Robinson <[email protected]>
AuthorDate: Mon May 25 02:55:53 2026 -0500

    [tfmtodit]: Relocate function definition.
    
    ...to obviate need for forward declaration.
    
    * src/utils/tfmtodit/tfmtodit.cpp (usage): Do it.
---
 ChangeLog                       |  5 +++++
 src/utils/tfmtodit/tfmtodit.cpp | 28 +++++++++++++---------------
 2 files changed, 18 insertions(+), 15 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 831bf3206..57ddae1f9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2026-05-25  G. Branden Robinson <[email protected]>
+
+       * src/utils/tfmtodit/tfmtodit.cpp (usage): Relocate function
+       definition to obviate need for forward declaration.
+
 2026-05-25  G. Branden Robinson <[email protected]>
 
        * src/utils/tfmtodit/tfmtodit.cpp (tfm::load, gf::load)
diff --git a/src/utils/tfmtodit/tfmtodit.cpp b/src/utils/tfmtodit/tfmtodit.cpp
index ccfabf68b..b5a976e8d 100644
--- a/src/utils/tfmtodit/tfmtodit.cpp
+++ b/src/utils/tfmtodit/tfmtodit.cpp
@@ -697,7 +697,19 @@ struct S2 {
   { CH_ff, CH_l, CH_ffl, "ffl" },
   };
 
-static void usage(FILE *stream);
+static void usage(FILE *stream)
+{
+  fprintf(stream,
+"usage: %s [-s] [-g gf-file] [-k skew-char] tfm-file map-file font\n"
+"usage: %s {-v | --version}\n"
+"usage: %s --help\n",
+         program_name, program_name, program_name);
+  if (stdout == stream)
+    fputs("\n"
+"Create a font description file for use with groff(1)'s 'dvi' output\n"
+"device.  See the tfmtodit(1) manual page.\n",
+         stream);
+}
 
 int main(int argc, char **argv)
 {
@@ -897,20 +909,6 @@ int main(int argc, char **argv)
   exit(EXIT_SUCCESS);
 }
 
-static void usage(FILE *stream)
-{
-  fprintf(stream,
-"usage: %s [-s] [-g gf-file] [-k skew-char] tfm-file map-file font\n"
-"usage: %s {-v | --version}\n"
-"usage: %s --help\n",
-         program_name, program_name, program_name);
-  if (stdout == stream)
-    fputs("\n"
-"Create a font description file for use with groff(1)'s 'dvi' output\n"
-"device.  See the tfmtodit(1) manual page.\n",
-         stream);
-}
-
 // 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