[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
From: |
Gavin D. Smith |
Date: |
Mon, 23 Dec 2024 12:17:00 -0500 (EST) |
branch: master
commit 71fe373a25014c0400582b119fbe5d51c4cff501
Author: Gavin Smith <gavinsmith0123@gmail.com>
AuthorDate: Mon Dec 23 15:07:36 2024 +0000
Remove system.h defines
* system.h,
* info/info.h,
* info/window.h,
* install-info/install-info.c: Move system includes out of system.h.
* system.h (PATH_MAX): Remove.
---
ChangeLog | 10 ++++++++++
info/info.h | 4 ++++
info/window.h | 1 +
install-info/install-info.c | 3 +++
system.h | 15 ---------------
5 files changed, 18 insertions(+), 15 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index bb7f04c2fc..9121a83f66 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2024-12-23 Gavin Smith <gavinsmith0123@gmail.com>
+
+ Remove system.h defines
+
+ * system.h,
+ * info/info.h,
+ * info/window.h,
+ * install-info/install-info.c: Move system includes out of system.h.
+ * system.h (PATH_MAX): Remove.
+
2024-12-23 Gavin Smith <gavinsmith0123@gmail.com>
Remove system.h defines
diff --git a/info/info.h b/info/info.h
index 69f49106a1..1f07b9fbc6 100644
--- a/info/info.h
+++ b/info/info.h
@@ -22,6 +22,10 @@
/* System dependencies. */
#include "system.h"
+#include <stdlib.h>
+#include <stdio.h>
+#include <limits.h>
+#include <ctype.h>
#define STREQ(s1,s2) (strcmp (s1, s2) == 0)
diff --git a/info/window.h b/info/window.h
index 157068f117..a4adf6502e 100644
--- a/info/window.h
+++ b/info/window.h
@@ -22,6 +22,7 @@
#include "doc.h"
#include "nodes.h"
+#include <stdarg.h>
#include <regex.h>
/* Smallest number of visible lines in a window. The actual height is
diff --git a/install-info/install-info.c b/install-info/install-info.c
index 3ea11fbc93..5830584d44 100644
--- a/install-info/install-info.c
+++ b/install-info/install-info.c
@@ -16,6 +16,9 @@
along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include "system.h"
+#include <stdlib.h>
+#include <stdio.h>
+#include <ctype.h>
#include <getopt.h>
#include <regex.h>
#include <argz.h>
diff --git a/system.h b/system.h
index 4606902ca2..8ad20f066d 100644
--- a/system.h
+++ b/system.h
@@ -23,16 +23,10 @@
#include <config.h>
#include <locale.h>
-#include <stdio.h>
#include <stdlib.h>
-#include <string.h>
-#include <ctype.h>
-
-#include <stdarg.h>
/* Use POSIX headers. If they are not available, we use the substitute
provided by gnulib. */
-#include <getopt.h>
#include <unistd.h>
#include <fcntl.h>
@@ -56,15 +50,6 @@
extern int errno;
#endif
-#include <limits.h>
-
-#ifndef PATH_MAX
-#ifndef _POSIX_PATH_MAX
-# define _POSIX_PATH_MAX 255
-#endif
-#define PATH_MAX _POSIX_PATH_MAX
-#endif
-
#include <sys/stat.h>
#if !defined(S_ISDIR) && defined(S_IFDIR)
# define S_ISDIR(mode) (((mode) & S_IFMT) == S_IFDIR)
- master updated (e3ddefe01b -> 309c8e11bb), Gavin D. Smith, 2024/12/23
- [no subject], Gavin D. Smith, 2024/12/23
- [no subject], Gavin D. Smith, 2024/12/23
- [no subject],
Gavin D. Smith <=
- [no subject], Gavin D. Smith, 2024/12/23
- [no subject], Gavin D. Smith, 2024/12/23
- [no subject], Gavin D. Smith, 2024/12/23
- [no subject], Gavin D. Smith, 2024/12/23
- [no subject], Gavin D. Smith, 2024/12/23