gbranden pushed a commit to branch master
in repository groff.
commit 98ccb52be398f55b6da1e0a496ee578a422cb8aa
Author: G. Branden Robinson <[email protected]>
AuthorDate: Sun May 31 06:12:05 2026 -0500
[grn]: Rationalize header file inclusions.
* src/preproc/grn/main.cpp: Arrange inclusions of "libgroff" header
files before grn-specific one. Within such inclusions, sort header
file names in alphabetical order (where the header file dependency
graph permits).
---
ChangeLog | 8 ++++++++
src/preproc/grn/main.cpp | 10 +++++-----
2 files changed, 13 insertions(+), 5 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 6b7dcd0dc..af5b0914d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2026-05-31 G. Branden Robinson <[email protected]>
+
+ * src/preproc/grn/main.cpp: Rationalize header file inclusions.
+ Arrange inclusions of "libgroff" header files before grn-
+ specific one. Within such inclusions, sort header file names in
+ alphabetical order (where the header file dependency graph
+ permits).
+
2026-05-31 G. Branden Robinson <[email protected]>
[grn]: Rearrange code.
diff --git a/src/preproc/grn/main.cpp b/src/preproc/grn/main.cpp
index 7ad4f1082..464cf8129 100644
--- a/src/preproc/grn/main.cpp
+++ b/src/preproc/grn/main.cpp
@@ -89,15 +89,15 @@
#include <string.h> // strchr(), strcmp(), strcpy(), strerror(),
// strlen()
+#include "defs.h"
#include "device.h"
+#include "errarg.h"
+#include "error.h"
#include "font.h"
-#include "gprint.h"
-#include "searchpath.h"
+#include "searchpath.h" // prerequisite of "macropath.h"
#include "macropath.h"
-#include "errarg.h"
-#include "error.h"
-#include "defs.h"
+#include "gprint.h"
extern "C" const char *Version_string;
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit