gbranden pushed a commit to branch master
in repository groff.

commit d3210084163bb18bacbd3163cfb5cd44ad5b2940
Author: G. Branden Robinson <[email protected]>
AuthorDate: Sat Nov 30 00:27:10 2024 -0600

    src/roff/groff/pipeline.c: Sort #includes.
    
    * src/roff/groff/pipeline.c: Sort (and annotate) inclusions of standard
      header files.
---
 ChangeLog                 |  5 +++++
 src/roff/groff/pipeline.c | 14 ++++++++------
 2 files changed, 13 insertions(+), 6 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index fd3e0a797..a51b39368 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2024-11-30  G. Branden Robinson <[email protected]>
+
+       * src/roff/groff/pipeline.c: Sort (and annotate) inclusions of
+       standard header files.
+
 2024-11-30  G. Branden Robinson <[email protected]>
 
        Rely on gnulib for `unlink()` if necessary.
diff --git a/src/roff/groff/pipeline.c b/src/roff/groff/pipeline.c
index 27bec29b2..9bc071a5b 100644
--- a/src/roff/groff/pipeline.c
+++ b/src/roff/groff/pipeline.c
@@ -20,17 +20,19 @@ along with this program.  If not, see 
<http://www.gnu.org/licenses/>. */
 #include <config.h>
 #endif
 
-#include <stdbool.h>
-#include <stdio.h>
-#include <signal.h>
 #include <errno.h>
-#include <sys/types.h>
+#include <fcntl.h> // open()
+#include <signal.h> // kill(), SIGINT, signal()
+#include <stdbool.h>
+#include <stdio.h> // sprintf()
 #include <string.h> // strerror(), strsignal()
+#include <sys/types.h> // kill(), open(), wait()
+#include <sys/stat.h> // open()
 #ifdef HAVE_UNISTD_H
-#include <unistd.h>
+#include <unistd.h> // dup(), pipe(), STDIN_FILENO, STDOUT_FILENO,
+                   // unlink()
 #endif
 
-
 #ifdef _POSIX_VERSION
 
 #include <sys/wait.h>

_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit

Reply via email to