groff-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[groff] 36/80: [grotty]: Align with modern groff conventions.


From: G. Branden Robinson
Subject: [groff] 36/80: [grotty]: Align with modern groff conventions.
Date: Sat, 30 Nov 2024 04:02:19 -0500 (EST)

gbranden pushed a commit to branch master
in repository groff.

commit 3344b90916cbdba62386cd4cf6a9e99864a4cf38
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Wed Nov 27 20:53:52 2024 -0600

    [grotty]: Align with modern groff conventions.
    
    * src/devices/grotty/tty.cpp: Add Autoconf "<config.h>"-inclusion
      boilerplate to this translation unit.  Include required system library
      header files.
---
 ChangeLog                  | 8 ++++++++
 src/devices/grotty/tty.cpp | 9 +++++++++
 2 files changed, 17 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index 2cb38d001..51bd547d4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2024-11-27  G. Branden Robinson <g.branden.robinson@gmail.com>
+
+       [grotty]: Align with modern groff conventions.
+
+       * src/devices/grotty/tty.cpp: Add Autoconf "<config.h>"-
+       inclusion boilerplate to this translation unit.  Include
+       required system library header files.
+
 2024-11-27  G. Branden Robinson <g.branden.robinson@gmail.com>
 
        [grops]: Align with modern groff conventions.
diff --git a/src/devices/grotty/tty.cpp b/src/devices/grotty/tty.cpp
index da29b2cf9..177f9a0c7 100644
--- a/src/devices/grotty/tty.cpp
+++ b/src/devices/grotty/tty.cpp
@@ -17,6 +17,15 @@ 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/>. */
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
+#include <locale.h> // setlocale()
+#include <stdio.h> // EOF, FILE, fprintf(), fputs(), printf(),
+                  // putchar(), setbuf(), stderr, stdout
+#include <stdlib.h> // exit(), EXIT_SUCCESS, getenv(), strtol()
+
 #include "driver.h"
 #include "device.h"
 #include "ptable.h"



reply via email to

[Prev in Thread] Current Thread [Next in Thread]