gbranden pushed a commit to branch master
in repository groff.
commit 96ad1bb1b5963f6ef517ca851a7be1a7059faa92
Author: G. Branden Robinson <[email protected]>
AuthorDate: Wed Apr 1 17:58:01 2026 -0500
src/roff/troff/env.cpp: Rationalize `#include`s.
* src/roff/troff/env.cpp: Rationalize header inclusions. Use
preprocessor to include <assert.h> header, which declares the
`assert()` macro used in this file.
Also drop redundant annotation.
---
ChangeLog | 6 ++++++
src/roff/troff/env.cpp | 3 ++-
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index d0f6948d9..487cb8cf8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -5,6 +5,12 @@
disclose the specific format demanded. Also tighten message
wording.
+2026-04-01 G. Branden Robinson <[email protected]>
+
+ * src/roff/troff/env.cpp: Rationalize header inclusions. Use
+ preprocessor to include <assert.h> header, which declares the
+ `assert()` macro used in this file.
+
2026-04-01 G. Branden Robinson <[email protected]>
* src/roff/troff/dictionary.h (object_dictionary_iterator::get):
diff --git a/src/roff/troff/env.cpp b/src/roff/troff/env.cpp
index e73a629f9..8311b9876 100644
--- a/src/roff/troff/env.cpp
+++ b/src/roff/troff/env.cpp
@@ -22,7 +22,8 @@ along with this program. If not, see
<http://www.gnu.org/licenses/>. */
#include <config.h>
#endif
-#include <errno.h> // errno
+#include <assert.h>
+#include <errno.h>
#include <math.h> // ceil(), fabs()
#include <stdio.h> // prerequisite of mtsm.h, searchpath.h
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit