gbranden pushed a commit to branch master
in repository groff.

commit 46570e6cad414874776bdfce7e6190ffdf83c0fc
Author: G. Branden Robinson <[email protected]>
AuthorDate: Thu Jun 11 09:27:32 2026 -0500

    [libgroff]: Rationalize header file inclusions.
    
    * src/libs/libgroff/quotearg.c: Arrange C standard library header file
      names in alphabetical order.  Annotate why they're included.  Drop
      inclusions that seem unnecessary ("<limits.h>" and "nonposix.h").
---
 ChangeLog                    |  8 ++++++++
 src/libs/libgroff/quotearg.c | 11 ++++-------
 2 files changed, 12 insertions(+), 7 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 8c668841e..3430948f7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2026-06-11  G. Branden Robinson <[email protected]>
+
+       * src/libs/libgroff/quotearg.c: Rationalize header file
+       inclusions.  Arrange C standard library header file names in
+       alphabetical order.  Annotate why they're included.  Drop
+       inclusions that seem unnecessary ("<limits.h>" and
+       "nonposix.h").
+
 2026-06-11  G. Branden Robinson <[email protected]>
 
        [libgroff]: Boolify "quotearg.c".
diff --git a/src/libs/libgroff/quotearg.c b/src/libs/libgroff/quotearg.c
index 0969bc7c3..60239f60b 100644
--- a/src/libs/libgroff/quotearg.c
+++ b/src/libs/libgroff/quotearg.c
@@ -22,12 +22,11 @@ along with this program.  If not, see 
<http://www.gnu.org/licenses/>. */
 #include <config.h>
 #endif
 
+#include <ctype.h> // isspace()
 #include <stdbool.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <ctype.h>
-#include <limits.h>
+#include <stdio.h> // fprintf()
+#include <stdlib.h> // EXIT_FAILURE, exit(), free(), malloc(), realloc()
+#include <string.h> // strlen()
 
 /* Define the default mechanism, and messages, for error reporting
  * (user may substitute a preferred alternative, by defining his own
@@ -35,8 +34,6 @@ along with this program.  If not, see 
<http://www.gnu.org/licenses/>. */
  *  and QUOTE_ARG_REALLOC_FAILED, in the header file 'nonposix.h').
  */
 
-#include "nonposix.h"
-
 #ifndef  REPORT_ERROR
 # define REPORT_ERROR(WHY)  fprintf(stderr, "%s:%s\n", program_name, WHY)
 #endif

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

Reply via email to