gbranden pushed a commit to branch master
in repository groff.
commit 23b953ee0be0b13f87bf0936992c8ff8cdcffd1a
Author: G. Branden Robinson <[email protected]>
AuthorDate: Sat May 16 06:17:29 2026 -0500
[grohtml]: Refine preprocessor inclusions.
* src/devices/grohtml/html-text.cpp: Preprocessor-include "<string.h>"
header file, since strcmp(3) and strlen(3) are used.
* src/devices/grohtml/post-html.cpp: Preprocessor-include "<strings.h>"
header file, since strcasecmp(3) is used.
---
ChangeLog | 8 ++++++++
src/devices/grohtml/html-text.cpp | 1 +
src/devices/grohtml/post-html.cpp | 4 ++--
3 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 234147409..0dc86f41d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2026-05-16 G. Branden Robinson <[email protected]>
+
+ * src/devices/grohtml/html-text.cpp: Preprocessor-include
+ "<string.h>" header file, since strcmp(3) and strlen(3) are
+ used.
+ * src/devices/grohtml/post-html.cpp: Preprocessor-include
+ "<strings.h>" header file, since strcasecmp(3) is used.
+
2026-05-16 G. Branden Robinson <[email protected]>
* src/preproc/preconv/preconv.cpp: Preprocessor-include
diff --git a/src/devices/grohtml/html-text.cpp
b/src/devices/grohtml/html-text.cpp
index 2be48cfbb..0f921b3c1 100644
--- a/src/devices/grohtml/html-text.cpp
+++ b/src/devices/grohtml/html-text.cpp
@@ -29,6 +29,7 @@ along with this program. If not, see
<http://www.gnu.org/licenses/>. */
#endif
#include <stddef.h> // size_t: prerequisite of color.h
+#include <string.h> // strcmp(), strlen()
#include <new> // std::bad_alloc
diff --git a/src/devices/grohtml/post-html.cpp
b/src/devices/grohtml/post-html.cpp
index 9bb3a1e87..a5e5e8bc8 100644
--- a/src/devices/grohtml/post-html.cpp
+++ b/src/devices/grohtml/post-html.cpp
@@ -30,8 +30,8 @@ along with this program. If not, see
<http://www.gnu.org/licenses/>. */
#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 <string.h> // strcmp(), strerror(), strlen(), strncmp()
+#include <strings.h> // strcasecmp()
#include <time.h> // asctime(), tm
#include <getopt.h> // getopt_long()
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit