gbranden pushed a commit to branch master
in repository groff.

commit a7db7549eb581cac4c0ded64d555db1af68a5b19
Author: G. Branden Robinson <[email protected]>
AuthorDate: Wed Jan 15 21:11:00 2025 -0600

    [grohtml,grolbp]: Rationalize "#include"s.
    
    * src/devices/grohtml/html-table.cpp:
    * src/devices/grohtml/post-html.cpp:
    * src/devices/grolbp/lbp.cpp: Include (only) the standard libc header
      files we need, so that "driver.h" needn't do this job.
---
 ChangeLog                          | 9 +++++++++
 src/devices/grohtml/html-table.cpp | 2 ++
 src/devices/grohtml/post-html.cpp  | 1 +
 src/devices/grolbp/lbp.cpp         | 5 ++++-
 4 files changed, 16 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index 4120d5337..7fca2cfbd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2025-01-15  G. Branden Robinson <[email protected]>
+
+       [grohtml,grolbp]: Rationalize header file inclusions.
+
+       * src/devices/grohtml/html-table.cpp:
+       * src/devices/grohtml/post-html.cpp:
+       * src/devices/grolbp/lbp.cpp: Include (only) the standard libc
+       header files we need, so that "driver.h" needn't do this job.
+
 2025-01-15  G. Branden Robinson <[email protected]>
 
        [grolj4]: Migrate `isdigit()` to `csdigit()`.
diff --git a/src/devices/grohtml/html-table.cpp 
b/src/devices/grohtml/html-table.cpp
index 1ce020fe0..f1a3c3dce 100644
--- a/src/devices/grohtml/html-table.cpp
+++ b/src/devices/grohtml/html-table.cpp
@@ -28,6 +28,8 @@ along with this program.  If not, see 
<http://www.gnu.org/licenses/>. */
 #include <config.h>
 #endif
 
+#include <stdlib.h> // atoi()
+
 #include "driver.h"
 #include "stringclass.h"
 #include "cset.h" // csspace()
diff --git a/src/devices/grohtml/post-html.cpp 
b/src/devices/grohtml/post-html.cpp
index 78c6010c8..d07f684dd 100644
--- a/src/devices/grohtml/post-html.cpp
+++ b/src/devices/grohtml/post-html.cpp
@@ -29,6 +29,7 @@ along with this program.  If not, see 
<http://www.gnu.org/licenses/>. */
 #include <errno.h>
 #include <stdio.h> // EOF, FILE, fclose(), fflush(), fopen(), freopen(),
                   // fseek(), SEEK_SET, setbuf(), stderr, stdout
+#include <stdlib.h> // abs(), atoi(), EXIT_SUCCESS, exit()
 #include <string.h> // strcasecmp(), strcmp(), strerror(), strlen(),
                    // strncmp()
 #include <time.h> // asctime(), tm
diff --git a/src/devices/grolbp/lbp.cpp b/src/devices/grolbp/lbp.cpp
index 028c9aedc..cd16473a5 100644
--- a/src/devices/grolbp/lbp.cpp
+++ b/src/devices/grolbp/lbp.cpp
@@ -1,4 +1,4 @@
-/* Copyright (C) 1994-2024 Free Software Foundation, Inc.
+/* Copyright (C) 1994-2025 Free Software Foundation, Inc.
      Written by Francisco Andr�s Verd� <[email protected]> with many
      ideas taken from the other groff drivers.
 
@@ -28,6 +28,9 @@ TODO
 #endif
 
 #include <assert.h>
+#include <errno.h>
+#include <math.h> // fabs(), sqrt()
+#include <stdlib.h> // abs(), EXIT_SUCCESS, exit(), strtol()
 
 #include <getopt.h> // getopt_long()
 

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

Reply via email to