gbranden pushed a commit to branch master
in repository groff.

commit f954f7b6b8cc618abe9f374cc09d6e86d209e44b
Author: G. Branden Robinson <[email protected]>
AuthorDate: Wed Jan 15 22:01:31 2025 -0600

    Further rationalize header file inclusions (2/2).
    
    * src/include/driver.h: Drop inclusion of groff's "lib.h"; this header
      file itself uses none of its facilities.
    * src/include/font.h: Include stdio.h.  Annotate why.
    * src/include/symbol.h: Include stddef.h.  Annotate why.
---
 ChangeLog            | 9 +++++++++
 src/include/driver.h | 2 --
 src/include/font.h   | 4 +++-
 src/include/symbol.h | 3 ++-
 4 files changed, 14 insertions(+), 4 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index c62db5cb1..8590714fd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2025-01-15  G. Branden Robinson <[email protected]>
+
+       Further rationalize header file inclusions.
+
+       * src/include/driver.h: Drop inclusion of groff's "lib.h"; this
+       header file itself uses none of its facilities.
+       * src/include/font.h: Include stdio.h.  Annotate why.
+       * src/include/symbol.h: Include stddef.h.  Annotate why.
+
 2025-01-15  G. Branden Robinson <[email protected]>
 
        [grodvi,grohtml,grolbp,grolj4,grops,grotty,libdriver]: Further
diff --git a/src/include/driver.h b/src/include/driver.h
index 5bdaec3bb..9d451a4cf 100644
--- a/src/include/driver.h
+++ b/src/include/driver.h
@@ -16,8 +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 "lib.h"
-
 #include "errarg.h"
 #include "error.h"
 #include "font.h"
diff --git a/src/include/font.h b/src/include/font.h
index e2537ef12..575ea3aef 100644
--- a/src/include/font.h
+++ b/src/include/font.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 1989-2024 Free Software Foundation, Inc.
+/* Copyright (C) 1989-2025 Free Software Foundation, Inc.
      Written by James Clark ([email protected])
 
 This file is part of groff.
@@ -16,6 +16,8 @@ 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 <stdio.h> // FILE
+
 // A function of this type can be registered to define the semantics of
 // arbitrary commands in a font DESC file.
 typedef void (*FONT_COMMAND_HANDLER)(const char *,     // command
diff --git a/src/include/symbol.h b/src/include/symbol.h
index 8dd162a19..d82d7cd29 100644
--- a/src/include/symbol.h
+++ b/src/include/symbol.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 1989-2023 Free Software Foundation, Inc.
+/* Copyright (C) 1989-2025 Free Software Foundation, Inc.
      Written by James Clark ([email protected])
 
 This file is part of groff.
@@ -16,6 +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/>. */
 
+#include <stddef.h> // size_t
 #include <stdint.h> // uintptr_t
 
 #define DONT_STORE 1

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

Reply via email to