groff-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[groff] 02/17: [grops]: Further rationalize header inclusion.


From: G. Branden Robinson
Subject: [groff] 02/17: [grops]: 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 c868b9f312e5312b6de2002d9c83e19efd6a7356
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Tue Dec 3 00:14:45 2024 -0600

    [grops]: Further rationalize header inclusion.
    
    * src/devices/grops/ps.cpp: Include local "posix.h" header before
      "nonposix.h" (and both before "lib.h"), aligning better with other
      groff code.
---
 ChangeLog                | 6 ++++++
 src/devices/grops/ps.cpp | 5 ++++-
 2 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index ae5012f1c..1d656dad3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2024-12-03  G. Branden Robinson <g.branden.robinson@gmail.com>
+
+       * src/devices/grops/ps.cpp: Include local "posix.h" header
+       before "nonposix.h" (and both before "lib.h"), aligning better
+       with other groff code.
+
 2024-12-03  G. Branden Robinson <g.branden.robinson@gmail.com>
 
        * src/utils/tfmtodit/tfmtodit.cpp: Include system library
diff --git a/src/devices/grops/ps.cpp b/src/devices/grops/ps.cpp
index b65797765..fb6ffb0e1 100644
--- a/src/devices/grops/ps.cpp
+++ b/src/devices/grops/ps.cpp
@@ -40,12 +40,15 @@ along with this program.  If not, see 
<http://www.gnu.org/licenses/>. */
 
 #include <getopt.h> // getopt_long()
 
+// needed for SET_BINARY()
+#include "posix.h"
+#include "nonposix.h"
+
 #include "lib.h" // PI
 
 #include "cset.h"
 #include "curtime.h"
 #include "driver.h"
-#include "nonposix.h"
 #include "paper.h"
 #include "stringclass.h"
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]