[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[groff] 46/80: [groff]: Align with modern groff conventions.
From: |
G. Branden Robinson |
Subject: |
[groff] 46/80: [groff]: Align with modern groff conventions. |
Date: |
Sat, 30 Nov 2024 04:02:21 -0500 (EST) |
gbranden pushed a commit to branch master
in repository groff.
commit 65f5a4e507b1a14e9d801e50d12c1ccbaa29245e
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Wed Nov 27 22:04:25 2024 -0600
[groff]: Align with modern groff conventions.
* src/roff/groff/groff.cpp: Include system library headers before local
ones.
---
ChangeLog | 7 +++++++
src/roff/groff/groff.cpp | 11 ++++++-----
2 files changed, 13 insertions(+), 5 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index e605dd862..f5887497c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2024-11-27 G. Branden Robinson <g.branden.robinson@gmail.com>
+
+ [groff]: Align with modern groff conventions.
+
+ * src/roff/groff/groff.cpp: Include system library headers
+ before local ones.
+
2024-11-27 G. Branden Robinson <g.branden.robinson@gmail.com>
[tbl]: Align with modern groff conventions.
diff --git a/src/roff/groff/groff.cpp b/src/roff/groff/groff.cpp
index 4470f06f9..ef11bdfd4 100644
--- a/src/roff/groff/groff.cpp
+++ b/src/roff/groff/groff.cpp
@@ -16,9 +16,7 @@ for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
-// A front end for groff.
-
-#include "lib.h"
+// A front end for GNU troff.
#ifdef HAVE_CONFIG_H
#include <config.h>
@@ -26,8 +24,11 @@ along with this program. If not, see
<http://www.gnu.org/licenses/>. */
#include <assert.h>
#include <errno.h>
-#include <signal.h>
-#include <stdlib.h>
+#include <stdio.h> // EOF, FILE, fflush(), setbuf(), stderr, stdout
+#include <stdlib.h> // exit(), EXIT_SUCCESS, free(), getenv(), putenv()
+#include <string.h> // strerror()
+
+#include "lib.h"
#include "errarg.h"
#include "error.h"
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [groff] 46/80: [groff]: Align with modern groff conventions.,
G. Branden Robinson <=