[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[groff] 41/80: [pre-grohtml]: Align w/ modern groff conventions.
From: |
G. Branden Robinson |
Subject: |
[groff] 41/80: [pre-grohtml]: Align w/ modern groff conventions. |
Date: |
Sat, 30 Nov 2024 04:02:20 -0500 (EST) |
gbranden pushed a commit to branch master
in repository groff.
commit 3d0fb24bf2a1312edc061e5774713f027888557c
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Wed Nov 27 21:28:44 2024 -0600
[pre-grohtml]: Align w/ modern groff conventions.
* src/preproc/html/pushback.cpp: Add Autoconf "<config.h>"-inclusion
boilerplate to these translation units.
* src/preproc/html/pre-html.cpp:
* src/preproc/html/pushback.cpp: Include system library headers before
local ones.
---
ChangeLog | 11 +++++++++++
src/preproc/html/pre-html.cpp | 8 ++++----
src/preproc/html/pushback.cpp | 20 ++++++++++++--------
3 files changed, 27 insertions(+), 12 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 6deaee8b0..25151a9c8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2024-11-27 G. Branden Robinson <g.branden.robinson@gmail.com>
+
+ [pre-grohtml]: Align with modern groff conventions.
+
+ * src/preproc/html/pushback.cpp: Add Autoconf "<config.h>"-
+ inclusion boilerplate to these translation units.
+
+ * src/preproc/html/pre-html.cpp:
+ * src/preproc/html/pushback.cpp: Include system library headers
+ before local ones.
+
2024-11-27 G. Branden Robinson <g.branden.robinson@gmail.com>
[libgroff]: Align with modern groff conventions.
diff --git a/src/preproc/html/pre-html.cpp b/src/preproc/html/pre-html.cpp
index 6a35e8158..db2ac37e9 100644
--- a/src/preproc/html/pre-html.cpp
+++ b/src/preproc/html/pre-html.cpp
@@ -19,10 +19,6 @@
* 02110-1301, USA.
*/
-#define PREHTMLC
-
-#include "lib.h"
-
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
@@ -33,6 +29,10 @@
#include <signal.h>
#include <stdlib.h>
+#define PREHTMLC
+
+#include "lib.h"
+
#include "errarg.h"
#include "error.h"
#include "stringclass.h"
diff --git a/src/preproc/html/pushback.cpp b/src/preproc/html/pushback.cpp
index 802c3b72a..8f437bd82 100644
--- a/src/preproc/html/pushback.cpp
+++ b/src/preproc/html/pushback.cpp
@@ -1,4 +1,4 @@
-/* Copyright (C) 2000-2020 Free Software Foundation, Inc.
+/* Copyright (C) 2000-2024 Free Software Foundation, Inc.
Written by Gaius Mulley (gaius@glam.ac.uk).
This file is part of groff.
@@ -16,24 +16,28 @@ 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/>. */
-#include "lib.h"
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
#include <signal.h>
#include <ctype.h>
#include <stdlib.h>
#include <errno.h>
-#include "errarg.h"
-#include "error.h"
-#include "stringclass.h"
-#include "posix.h"
-#include "nonposix.h"
-#include <errno.h>
#include <sys/types.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
+#include "lib.h"
+
+#include "errarg.h"
+#include "error.h"
+#include "stringclass.h"
+#include "posix.h"
+#include "nonposix.h"
+
#include "pushback.h"
#include "pre-html.h"
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [groff] 41/80: [pre-grohtml]: Align w/ modern groff conventions.,
G. Branden Robinson <=