gbranden pushed a commit to branch master
in repository groff.

commit bca8d5cfeb9dc4d2f8c4a78865a9bad40f3e6aaf
Author: G. Branden Robinson <[email protected]>
AuthorDate: Tue Sep 17 07:21:13 2024 -0500

    [libgroff]: Fix code style nit.
    
    * src/include/color.h: Drop unnecessary `#include`.
    
    Also:
    * Rewind copyright notice to 2016, the year of the last logic change to
      the file; everything since has been mucking about with the copyright
      notice itself.
    * Drop old-style Emacs file-local variable.
    * Add editor aid comments.
    * Kill trailing whitespace.
---
 ChangeLog           |  5 +++++
 src/include/color.h | 15 +++++++++------
 2 files changed, 14 insertions(+), 6 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 307f78aa3..e5f95890d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2024-09-17  G. Branden Robinson <[email protected]>
+
+       * src/include/color.h: Fix code style nit: drop unnecessary
+       `#include`.
+
 2024-09-17  G. Branden Robinson <[email protected]>
 
        * src/roff/troff/input.cpp (report_composite_characters): Fix
diff --git a/src/include/color.h b/src/include/color.h
index e3f945b19..db40aafca 100644
--- a/src/include/color.h
+++ b/src/include/color.h
@@ -1,7 +1,5 @@
-// -*- C++ -*-
-/* <groff_src_dir>/src/include/color.h
-Copyright (C) 2001-2020 Free Software Foundation, Inc.
-    Written by Gaius Mulley <[email protected]>
+/* Copyright (C) 2001-2016 Free Software Foundation, Inc.
+     Written by Gaius Mulley <[email protected]>
 
 This file is part of groff.
 
@@ -18,7 +16,6 @@ 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 <stddef.h>
 #include "symbol.h"
 
 enum color_scheme {DEFAULT, CMY, CMYK, RGB, GRAY};
@@ -53,7 +50,7 @@ public:
   void set_cmyk(const unsigned int c, const unsigned int m,
                const unsigned int y, const unsigned int k);
   void set_gray(const unsigned int g);
-         
+
   // set color from a color string
   int read_rgb(const char * const s);
   int read_cmy(const char * const s);
@@ -86,3 +83,9 @@ public:
 #define Gray components[0]
 
 extern color default_color;
+
+// Local Variables:
+// fill-column: 72
+// mode: C++
+// End:
+// vim: set cindent noexpandtab shiftwidth=2 textwidth=72:

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

Reply via email to