gbranden pushed a commit to branch master
in repository groff.

commit 65f5a4e507b1a14e9d801e50d12c1ccbaa29245e
Author: G. Branden Robinson <[email protected]>
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 <[email protected]>
+
+       [groff]: Align with modern groff conventions.
+
+       * src/roff/groff/groff.cpp: Include system library headers
+       before local ones.
+
 2024-11-27  G. Branden Robinson <[email protected]>
 
        [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"

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

Reply via email to