gbranden pushed a commit to branch master
in repository groff.
commit dfb504615b7c2d32a5ee7ed4e3bb39400cd1dc10
Author: G. Branden Robinson <[email protected]>
AuthorDate: Tue Dec 3 00:11:31 2024 -0600
[tfmtodit]: Further rationalize header inclusion.
* src/utils/tfmtodit/tfmtodit.cpp: Include system library headers before
local ones. Include local "posix.h" header before "nonposix.h",
aligning better with other groff code.
---
ChangeLog | 6 ++++++
src/utils/tfmtodit/tfmtodit.cpp | 9 ++++++---
2 files changed, 12 insertions(+), 3 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 216ae5323..ae5012f1c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2024-12-03 G. Branden Robinson <[email protected]>
+
+ * src/utils/tfmtodit/tfmtodit.cpp: Include system library
+ headers before local ones. Include local "posix.h" header
+ before "nonposix.h", aligning better with other groff code.
+
2024-12-02 G. Branden Robinson <[email protected]>
* src/roff/troff/input.cpp (system_request, pipe_output):
diff --git a/src/utils/tfmtodit/tfmtodit.cpp b/src/utils/tfmtodit/tfmtodit.cpp
index 8e4bf8d6e..77a70bffd 100644
--- a/src/utils/tfmtodit/tfmtodit.cpp
+++ b/src/utils/tfmtodit/tfmtodit.cpp
@@ -50,8 +50,6 @@ both be zero. */
#include <config.h>
#endif
-#include "lib.h"
-
#include <assert.h>
#include <errno.h>
#include <math.h> // atan2()
@@ -59,10 +57,15 @@ both be zero. */
#include <getopt.h> // getopt_long()
+// needed for DIR_SEPS, FOPEN_RB
+#include "posix.h"
+#include "nonposix.h"
+
+#include "lib.h"
+
#include "errarg.h"
#include "error.h"
#include "cset.h"
-#include "nonposix.h"
extern "C" const char *Version_string;
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit