gbranden pushed a commit to branch master
in repository groff.

commit fcdd1a18093e64d02005865f3465dc4f7bbe642b
Author: G. Branden Robinson <[email protected]>
AuthorDate: Fri Apr 10 02:49:08 2026 -0500

    src/roff/troff/env.cpp: Rationalize `#include`s.
    
    * src/roff/troff/env.cpp: Rationalize header file inclusions, adding
      "<stdlib.h>" and "<string.h>".
---
 ChangeLog              | 5 +++++
 src/roff/troff/env.cpp | 3 +++
 2 files changed, 8 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index fa799425d..5994fdd52 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2026-04-10  G. Branden Robinson <[email protected]>
+
+       * src/roff/troff/env.cpp: Rationalize header file inclusions,
+       adding "<stdlib.h>" and "<string.h>".
+
 2026-04-10  G. Branden Robinson <[email protected]>
 
        * src/include/symbol.h: Preprocessor-include "<string.h>" header
diff --git a/src/roff/troff/env.cpp b/src/roff/troff/env.cpp
index a5ec92da9..23059e624 100644
--- a/src/roff/troff/env.cpp
+++ b/src/roff/troff/env.cpp
@@ -27,6 +27,9 @@ along with this program.  If not, see 
<http://www.gnu.org/licenses/>. */
 #include <limits.h> // UCHAR_MAX
 #include <math.h> // ceil(), fabs()
 #include <stdio.h> // prerequisite of mtsm.h, searchpath.h
+#include <stdlib.h> // strtol()
+#include <string.h> // strchr(), strcpy(), strerror(), strncmp(),
+                   // strstr()
 
 #include <stack> // prerequisite of mtsm.h
 #include <vector>

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

Reply via email to