[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[groff] 01/17: [tfmtodit]: Further rationalize header inclusion.
From: |
G. Branden Robinson |
Subject: |
[groff] 01/17: [tfmtodit]: Further rationalize header inclusion. |
Date: |
Tue, 3 Dec 2024 03:39:55 -0500 (EST) |
gbranden pushed a commit to branch master
in repository groff.
commit dfb504615b7c2d32a5ee7ed4e3bb39400cd1dc10
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
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 <g.branden.robinson@gmail.com>
+
+ * 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 <g.branden.robinson@gmail.com>
* 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;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [groff] 01/17: [tfmtodit]: Further rationalize header inclusion.,
G. Branden Robinson <=