groff-commit
[Top][All Lists]
Advanced

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

[groff] 30/80: [eqn]: Add "<config.h>" inclusion boilerplate.


From: G. Branden Robinson
Subject: [groff] 30/80: [eqn]: Add "<config.h>" inclusion boilerplate.
Date: Sat, 30 Nov 2024 04:02:17 -0500 (EST)

gbranden pushed a commit to branch master
in repository groff.

commit e68fd3a063d0b0b0c359abbe2d27542f283619f6
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Wed Nov 27 14:53:00 2024 -0600

    [eqn]: Add "<config.h>" inclusion boilerplate.
    
    * src/preproc/eqn/lex.cpp:
    * src/preproc/eqn/limit.cpp:
    * src/preproc/eqn/list.cpp:
    * src/preproc/eqn/main.cpp:
    * src/preproc/eqn/mark.cpp:
    * src/preproc/eqn/over.cpp:
    * src/preproc/eqn/special.cpp:
    * src/preproc/eqn/sqrt.cpp: Add Autoconf "<config.h>"-inclusion
      boilerplate to these translation units.
    
    * src/preproc/eqn/other.cpp: Include "<stdio.h>" since `fprintf()` and
      `printf()` are used.
---
 ChangeLog                   | 15 +++++++++++++++
 src/preproc/eqn/eqn.ypp     |  1 +
 src/preproc/eqn/lex.cpp     |  7 +++++--
 src/preproc/eqn/limit.cpp   |  6 +++++-
 src/preproc/eqn/list.cpp    |  6 +++++-
 src/preproc/eqn/main.cpp    |  4 ++++
 src/preproc/eqn/mark.cpp    | 13 +++++++++++--
 src/preproc/eqn/other.cpp   | 11 ++++++-----
 src/preproc/eqn/over.cpp    |  6 +++++-
 src/preproc/eqn/special.cpp | 13 +++++++++++--
 src/preproc/eqn/sqrt.cpp    |  7 +++++--
 11 files changed, 73 insertions(+), 16 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 226ae3d26..b511044d0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,18 @@
+2024-11-27  G. Branden Robinson <g.branden.robinson@gmail.com>
+
+       * src/preproc/eqn/lex.cpp:
+       * src/preproc/eqn/limit.cpp:
+       * src/preproc/eqn/list.cpp:
+       * src/preproc/eqn/main.cpp:
+       * src/preproc/eqn/mark.cpp:
+       * src/preproc/eqn/over.cpp:
+       * src/preproc/eqn/special.cpp:
+       * src/preproc/eqn/sqrt.cpp: Add Autoconf "<config.h>"-inclusion
+       boilerplate to these translation units.
+
+       * src/preproc/eqn/other.cpp: Include "<stdio.h>" since
+       `fprintf()` and `printf()` are used.
+
 2024-11-27  G. Branden Robinson <g.branden.robinson@gmail.com>
 
        * src/utils/lkbib/lkbib.cpp: Align with modern groff
diff --git a/src/preproc/eqn/eqn.ypp b/src/preproc/eqn/eqn.ypp
index c879ea5bd..4a5df03ea 100644
--- a/src/preproc/eqn/eqn.ypp
+++ b/src/preproc/eqn/eqn.ypp
@@ -25,6 +25,7 @@ along with this program.  If not, see 
<http://www.gnu.org/licenses/>. */
 #include <stdlib.h>
 
 #include "lib.h"
+
 #include "box.h"
 extern int non_empty_flag;
 int yylex();
diff --git a/src/preproc/eqn/lex.cpp b/src/preproc/eqn/lex.cpp
index eec664e6f..d8304f34c 100644
--- a/src/preproc/eqn/lex.cpp
+++ b/src/preproc/eqn/lex.cpp
@@ -1,4 +1,4 @@
-/* Copyright (C) 1989-2023 Free Software Foundation, Inc.
+/* Copyright (C) 1989-2024 Free Software Foundation, Inc.
      Written by James Clark (jjc@jclark.com)
 
 This file is part of groff.
@@ -16,12 +16,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 "eqn.h"
 #include "eqn.hpp"
 #include "stringclass.h"
 #include "ptable.h"
 
-
 // declarations to avoid friend name injection problems
 int get_char();
 int peek_char();
diff --git a/src/preproc/eqn/limit.cpp b/src/preproc/eqn/limit.cpp
index 95540d273..e89c9d4c7 100644
--- a/src/preproc/eqn/limit.cpp
+++ b/src/preproc/eqn/limit.cpp
@@ -1,4 +1,4 @@
-/* Copyright (C) 1989-2023 Free Software Foundation, Inc.
+/* Copyright (C) 1989-2024 Free Software Foundation, Inc.
      Written by James Clark (jjc@jclark.com)
 
 This file is part of groff.
@@ -16,6 +16,10 @@ 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 "eqn.h"
 #include "pbox.h"
 
diff --git a/src/preproc/eqn/list.cpp b/src/preproc/eqn/list.cpp
index d22f4f215..21aff6fc7 100644
--- a/src/preproc/eqn/list.cpp
+++ b/src/preproc/eqn/list.cpp
@@ -1,4 +1,4 @@
-/* Copyright (C) 1989-2023 Free Software Foundation, Inc.
+/* Copyright (C) 1989-2024 Free Software Foundation, Inc.
      Written by James Clark (jjc@jclark.com)
 
 This file is part of groff.
@@ -16,6 +16,10 @@ 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 "eqn.h"
 #include "pbox.h"
 
diff --git a/src/preproc/eqn/main.cpp b/src/preproc/eqn/main.cpp
index a190d6d6a..97ffb35ea 100644
--- a/src/preproc/eqn/main.cpp
+++ b/src/preproc/eqn/main.cpp
@@ -16,6 +16,10 @@ 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 "eqn.h"
 #include "stringclass.h"
 #include "device.h"
diff --git a/src/preproc/eqn/mark.cpp b/src/preproc/eqn/mark.cpp
index 9427b1073..a1b431ea6 100644
--- a/src/preproc/eqn/mark.cpp
+++ b/src/preproc/eqn/mark.cpp
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-/* Copyright (C) 1989-2020 Free Software Foundation, Inc.
+/* Copyright (C) 1989-2024 Free Software Foundation, Inc.
      Written by James Clark (jjc@jclark.com)
 
 This file is part of groff.
@@ -17,6 +16,10 @@ 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 "eqn.h"
 #include "pbox.h"
 
@@ -118,3 +121,9 @@ void lineup_box::debug_print()
   p->debug_print();
   fprintf(stderr, " }");
 }
+
+// Local Variables:
+// fill-column: 72
+// mode: C++
+// End:
+// vim: set cindent noexpandtab shiftwidth=2 textwidth=72:
diff --git a/src/preproc/eqn/other.cpp b/src/preproc/eqn/other.cpp
index 8f61874aa..b64e476cd 100644
--- a/src/preproc/eqn/other.cpp
+++ b/src/preproc/eqn/other.cpp
@@ -1,4 +1,4 @@
-/* Copyright (C) 1989-2023 Free Software Foundation, Inc.
+/* Copyright (C) 1989-2024 Free Software Foundation, Inc.
      Written by James Clark (jjc@jclark.com)
 
 This file is part of groff.
@@ -20,7 +20,8 @@ along with this program.  If not, see 
<http://www.gnu.org/licenses/>. */
 #include <config.h>
 #endif
 
-#include <stdlib.h>
+#include <stdlib.h> // free()
+#include <stdio.h> // fprintf(), printf()
 
 #include "eqn.h"
 #include "pbox.h"
@@ -73,7 +74,7 @@ void accent_box::output()
     printf("\\h'\\n[" WIDTH_FORMAT "]u-\\n[" WIDTH_FORMAT "]u/2u+\\n["
           SKEW_FORMAT "]u'",
           p->uid, ab->uid, p->uid);
-    printf("\\v'-\\n[" SUP_RAISE_FORMAT "]u'", uid); 
+    printf("\\v'-\\n[" SUP_RAISE_FORMAT "]u'", uid);
     ab->output();
     printf("\\h'-\\n[" WIDTH_FORMAT "]u'", ab->uid);
     printf("\\v'\\n[" SUP_RAISE_FORMAT "]u'", uid);
@@ -127,7 +128,7 @@ void accent_box::output()
     printf("\\h'\\n[" LEFT_WIDTH_FORMAT "]u+\\n[" SKEW_FORMAT "]u"
           "-(\\n[" WIDTH_FORMAT "]u/2u)'",
           uid, p->uid, ab->uid);
-    printf("\\v'-\\n[" SUP_RAISE_FORMAT "]u'", uid); 
+    printf("\\v'-\\n[" SUP_RAISE_FORMAT "]u'", uid);
     ab->output();
     printf(DELIMITER_CHAR);
     printf("\\Z" DELIMITER_CHAR);
@@ -304,7 +305,7 @@ void uaccent_box::output()
     printf("\\Z" DELIMITER_CHAR);
     printf("\\h'\\n[" LEFT_WIDTH_FORMAT "]u-(\\n[" WIDTH_FORMAT "]u/2u)'",
           uid, ab->uid);
-    printf("\\v'\\n[" DEPTH_FORMAT "]u'", p->uid); 
+    printf("\\v'\\n[" DEPTH_FORMAT "]u'", p->uid);
     ab->output();
     printf(DELIMITER_CHAR);
     printf("\\Z" DELIMITER_CHAR);
diff --git a/src/preproc/eqn/over.cpp b/src/preproc/eqn/over.cpp
index 11697234b..4cd24dbe7 100644
--- a/src/preproc/eqn/over.cpp
+++ b/src/preproc/eqn/over.cpp
@@ -1,4 +1,4 @@
-/* Copyright (C) 1989-2023 Free Software Foundation, Inc.
+/* Copyright (C) 1989-2024 Free Software Foundation, Inc.
      Written by James Clark (jjc@jclark.com)
 
 This file is part of groff.
@@ -16,6 +16,10 @@ 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 "eqn.h"
 #include "pbox.h"
 
diff --git a/src/preproc/eqn/special.cpp b/src/preproc/eqn/special.cpp
index 8ad82386e..214f82096 100644
--- a/src/preproc/eqn/special.cpp
+++ b/src/preproc/eqn/special.cpp
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-/* Copyright (C) 1989-2020 Free Software Foundation, Inc.
+/* Copyright (C) 1989-2024 Free Software Foundation, Inc.
      Written by James Clark (jjc@jclark.com)
 
 This file is part of groff.
@@ -17,6 +16,10 @@ 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 "eqn.h"
 #include "pbox.h"
 
@@ -115,3 +118,9 @@ void special_box::debug_print()
   p->debug_print();
   fprintf(stderr, " }");
 }
+
+// Local Variables:
+// fill-column: 72
+// mode: C++
+// End:
+// vim: set cindent noexpandtab shiftwidth=2 textwidth=72:
diff --git a/src/preproc/eqn/sqrt.cpp b/src/preproc/eqn/sqrt.cpp
index 78e85ce2a..926bdf299 100644
--- a/src/preproc/eqn/sqrt.cpp
+++ b/src/preproc/eqn/sqrt.cpp
@@ -1,4 +1,4 @@
-/* Copyright (C) 1989-2023 Free Software Foundation, Inc.
+/* Copyright (C) 1989-2024 Free Software Foundation, Inc.
      Written by James Clark (jjc@jclark.com)
 
 This file is part of groff.
@@ -16,10 +16,13 @@ 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 "eqn.h"
 #include "pbox.h"
 
-
 class sqrt_box : public pointer_box {
 public:
   sqrt_box(box *);



reply via email to

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