[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[groff] 72/80: src/roff/groff/pipeline.c: Sort #includes.
From: |
G. Branden Robinson |
Subject: |
[groff] 72/80: src/roff/groff/pipeline.c: Sort #includes. |
Date: |
Sat, 30 Nov 2024 04:02:29 -0500 (EST) |
gbranden pushed a commit to branch master
in repository groff.
commit d3210084163bb18bacbd3163cfb5cd44ad5b2940
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
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 <g.branden.robinson@gmail.com>
+
+ * src/roff/groff/pipeline.c: Sort (and annotate) inclusions of
+ standard header files.
+
2024-11-30 G. Branden Robinson <g.branden.robinson@gmail.com>
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>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [groff] 72/80: src/roff/groff/pipeline.c: Sort #includes.,
G. Branden Robinson <=