summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xConfigure12
-rw-r--r--Cross/config.sh-arm-linux1
-rw-r--r--Cross/config.sh-arm-linux-n7701
-rw-r--r--NetWare/config.wc1
-rw-r--r--NetWare/config_H.wc7
-rw-r--r--Porting/Glossary5
-rw-r--r--Porting/config.sh1
-rw-r--r--Porting/config_H7
-rwxr-xr-xcflags.SH2
-rwxr-xr-xconfig_h.SH23
-rw-r--r--configure.com1
-rw-r--r--ext/File-Glob/bsd_glob.c2
-rw-r--r--ext/POSIX/POSIX.xs2
-rw-r--r--perl.h16
-rw-r--r--plan9/config.plan97
-rw-r--r--plan9/config_h.sample7
-rw-r--r--plan9/config_sh.sample1
-rw-r--r--symbian/config.sh1
-rw-r--r--uconfig.h27
-rw-r--r--uconfig.sh1
-rw-r--r--uconfig64.sh1
-rw-r--r--win32/config.ce1
-rw-r--r--win32/config.gc1
-rw-r--r--win32/config.vc1
-rw-r--r--win32/config_H.ce7
-rw-r--r--win32/config_H.gc7
-rw-r--r--win32/config_H.vc7
27 files changed, 22 insertions, 128 deletions
diff --git a/Configure b/Configure
index e7bf160693..33b689504a 100755
--- a/Configure
+++ b/Configure
@@ -992,7 +992,6 @@ i_ieeefp=''
i_inttypes=''
i_langinfo=''
i_libutil=''
-i_limits=''
i_locale=''
i_machcthr=''
i_malloc=''
@@ -12327,18 +12326,11 @@ esac
set cuserid d_cuserid
eval $inlibc
-: see if this is a limits.h system
-set limits.h i_limits
-eval $inhdr
-
: See if number of significant digits in a double precision number is known
echo " "
$cat >dbl_dig.c <<EOM
-#$i_limits I_LIMITS
#$i_float I_FLOAT
-#ifdef I_LIMITS
#include <limits.h>
-#endif
#ifdef I_FLOAT
#include <float.h>
#endif
@@ -16019,11 +16011,8 @@ eval $setvar
: See if number of significant digits in a double precision number is known
echo " "
$cat >ldbl_dig.c <<EOM
-#$i_limits I_LIMITS
#$i_float I_FLOAT
-#ifdef I_LIMITS
#include <limits.h>
-#endif
#ifdef I_FLOAT
#include <float.h>
#endif
@@ -24570,7 +24559,6 @@ i_ieeefp='$i_ieeefp'
i_inttypes='$i_inttypes'
i_langinfo='$i_langinfo'
i_libutil='$i_libutil'
-i_limits='$i_limits'
i_locale='$i_locale'
i_machcthr='$i_machcthr'
i_malloc='$i_malloc'
diff --git a/Cross/config.sh-arm-linux b/Cross/config.sh-arm-linux
index 5ccf847b6d..bab826511e 100644
--- a/Cross/config.sh-arm-linux
+++ b/Cross/config.sh-arm-linux
@@ -749,7 +749,6 @@ i_ieeefp='undef'
i_inttypes='define'
i_langinfo='define'
i_libutil='undef'
-i_limits='define'
i_locale='define'
i_machcthr='undef'
i_malloc='define'
diff --git a/Cross/config.sh-arm-linux-n770 b/Cross/config.sh-arm-linux-n770
index 5e7a6bbabc..13b94b3c26 100644
--- a/Cross/config.sh-arm-linux-n770
+++ b/Cross/config.sh-arm-linux-n770
@@ -610,7 +610,6 @@ i_ieeefp='undef'
i_inttypes='define'
i_langinfo='define'
i_libutil='undef'
-i_limits='define'
i_locale='define'
i_machcthr='undef'
i_malloc='define'
diff --git a/NetWare/config.wc b/NetWare/config.wc
index 80a3fad824..6f8225150f 100644
--- a/NetWare/config.wc
+++ b/NetWare/config.wc
@@ -731,7 +731,6 @@ i_ieeefp='undef'
i_inttypes='undef'
i_langinfo='undef'
i_libutil='undef'
-i_limits='define'
i_locale='define'
i_machcthr='undef'
i_malloc='define'
diff --git a/NetWare/config_H.wc b/NetWare/config_H.wc
index b113957be9..0b48217d08 100644
--- a/NetWare/config_H.wc
+++ b/NetWare/config_H.wc
@@ -669,13 +669,6 @@
*/
#define I_FLOAT /**/
-/* I_LIMITS:
- * This symbol, if defined, indicates to the C program that it should
- * include <limits.h> to get definition of symbols like WORD_BIT or
- * LONG_MAX, i.e. machine dependant limitations.
- */
-#define I_LIMITS /**/
-
/* I_LOCALE:
* This symbol, if defined, indicates to the C program that it should
* include <locale.h>.
diff --git a/Porting/Glossary b/Porting/Glossary
index 2bd7a0d26d..d9dcd941b1 100644
--- a/Porting/Glossary
+++ b/Porting/Glossary
@@ -3493,11 +3493,6 @@ i_libutil (i_libutil.U):
This variable conditionally defines the I_LIBUTIL symbol, and indicates
whether a C program should include <libutil.h>.
-i_limits (i_limits.U):
- This variable conditionally defines the I_LIMITS symbol, and indicates
- whether a C program may include <limits.h> to get symbols like WORD_BIT
- and friends.
-
i_locale (i_locale.U):
This variable conditionally defines the I_LOCALE symbol,
and indicates whether a C program should include <locale.h>.
diff --git a/Porting/config.sh b/Porting/config.sh
index ea0a08da16..5e3f69aa66 100644
--- a/Porting/config.sh
+++ b/Porting/config.sh
@@ -767,7 +767,6 @@ i_ieeefp='undef'
i_inttypes='define'
i_langinfo='define'
i_libutil='undef'
-i_limits='define'
i_locale='define'
i_machcthr='undef'
i_malloc='undef'
diff --git a/Porting/config_H b/Porting/config_H
index 846cd22c61..7d1d4ec76e 100644
--- a/Porting/config_H
+++ b/Porting/config_H
@@ -627,13 +627,6 @@
*/
#define I_GDBM /**/
-/* I_LIMITS:
- * This symbol, if defined, indicates to the C program that it should
- * include <limits.h> to get definition of symbols like WORD_BIT or
- * LONG_MAX, i.e. machine dependant limitations.
- */
-#define I_LIMITS /**/
-
/* I_LOCALE:
* This symbol, if defined, indicates to the C program that it should
* include <locale.h>.
diff --git a/cflags.SH b/cflags.SH
index 5834f024f8..e60742fed1 100755
--- a/cflags.SH
+++ b/cflags.SH
@@ -76,9 +76,7 @@ cat >_cflags.c <<__EOT__
#include <stdlib.h>
#include <stddef.h>
#include <stdarg.h>
-#ifdef I_LIMITS
#include <limits.h>
-#endif
#ifdef I_DIRENT
#include <dirent.h>
#endif
diff --git a/config_h.SH b/config_h.SH
index aa0f9114f8..b59ed49b2a 100755
--- a/config_h.SH
+++ b/config_h.SH
@@ -105,14 +105,6 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un
*/
#$d_cuserid HAS_CUSERID /**/
-/* HAS_DBL_DIG:
- * This symbol, if defined, indicates that this system's <float.h>
- * or <limits.h> defines the symbol DBL_DIG, which is the number
- * of significant digits in a double precision number. If this
- * symbol is not defined, a guess of 15 is usually pretty good.
- */
-#$d_dbl_dig HAS_DBL_DIG /**/
-
/* HAS_DIFFTIME:
* This symbol, if defined, indicates that the difftime routine is
* available.
@@ -682,13 +674,6 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un
*/
#$i_gdbm I_GDBM /**/
-/* I_LIMITS:
- * This symbol, if defined, indicates to the C program that it should
- * include <limits.h> to get definition of symbols like WORD_BIT or
- * LONG_MAX, i.e. machine dependant limitations.
- */
-#$i_limits I_LIMITS /**/
-
/* I_LOCALE:
* This symbol, if defined, indicates to the C program that it should
* include <locale.h>.
@@ -1584,6 +1569,14 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un
#define CSH "$full_csh" /**/
#endif
+/* HAS_DBL_DIG:
+ * This symbol, if defined, indicates that this system's <float.h>
+ * or <limits.h> defines the symbol DBL_DIG, which is the number
+ * of significant digits in a double precision number. If this
+ * symbol is not defined, a guess of 15 is usually pretty good.
+ */
+#$d_dbl_dig HAS_DBL_DIG /**/
+
/* HAS_DLADDR:
* This symbol, if defined, indicates that the dladdr() routine is
* available to query dynamic linker information for an address.
diff --git a/configure.com b/configure.com
index e4780c0676..d789fda27c 100644
--- a/configure.com
+++ b/configure.com
@@ -6555,7 +6555,6 @@ $ WC "i_ieeefp='undef'"
$ WC "i_inttypes='" + i_inttypes + "'"
$ WC "i_langinfo='" + i_langinfo + "'"
$ WC "i_libutil='" + i_libutil + "'"
-$ WC "i_limits='define'"
$ WC "i_locale='" + i_locale + "'"
$ WC "i_machcthr='undef'"
$ WC "i_machcthreads='undef'"
diff --git a/ext/File-Glob/bsd_glob.c b/ext/File-Glob/bsd_glob.c
index 86faa8e1aa..4ca3e22a24 100644
--- a/ext/File-Glob/bsd_glob.c
+++ b/ext/File-Glob/bsd_glob.c
@@ -87,9 +87,7 @@ static char sscsid[]= "$OpenBSD: glob.c,v 1.8.10.1 2001/04/10 jason Exp $";
# endif
#endif
-#ifdef I_LIMITS
#include <limits.h>
-#endif
#ifndef ARG_MAX
# ifdef _SC_ARG_MAX
diff --git a/ext/POSIX/POSIX.xs b/ext/POSIX/POSIX.xs
index 421c57fbc8..2de9165328 100644
--- a/ext/POSIX/POSIX.xs
+++ b/ext/POSIX/POSIX.xs
@@ -42,9 +42,7 @@ static int not_here(const char *s);
#include <fenv.h>
#endif
#endif
-#ifdef I_LIMITS
#include <limits.h>
-#endif
#include <locale.h>
#include <math.h>
#ifdef I_PWD
diff --git a/perl.h b/perl.h
index f0281c296f..ed31083e65 100644
--- a/perl.h
+++ b/perl.h
@@ -1689,9 +1689,7 @@ typedef UVTYPE UV;
a given precision of printing can be done with a double instead of
a long double - Allen).
*/
-#ifdef I_LIMITS
#include <limits.h>
-#endif
#ifdef I_FLOAT
#include <float.h>
#endif
@@ -1711,9 +1709,7 @@ typedef UVTYPE UV;
default value for printing floating point numbers in Gconvert.
(see config.h)
*/
-# ifdef I_LIMITS
-# include <limits.h>
-# endif
+# include <limits.h>
# ifdef I_FLOAT
# include <float.h>
# endif
@@ -1743,12 +1739,10 @@ typedef UVTYPE UV;
* necessary to do so. - Allen <allens@cpan.org>
*/
-#ifdef I_LIMITS
-# include <limits.h>
-#endif
+#include <limits.h>
#ifdef I_VALUES
-# if !(defined(DBL_MIN) && defined(DBL_MAX) && defined(I_LIMITS))
+# if !defined(DBL_MIN) || !defined(DBL_MAX)
# include <values.h>
# if defined(MAXDOUBLE) && !defined(DBL_MAX)
# define DBL_MAX MAXDOUBLE
@@ -2340,9 +2334,7 @@ int isnan(double d);
* define PERL ULONG_MAX 4294967295L
*/
-#ifdef I_LIMITS /* Needed for cast_xxx() functions below. */
-# include <limits.h>
-#endif
+#include <limits.h> /* Needed for cast_xxx() functions below. */
/* Included values.h above if necessary; still including limits.h down here,
* despite doing above, because math.h might have overridden... XXX - Allen */
diff --git a/plan9/config.plan9 b/plan9/config.plan9
index 469094c69c..419b9d0034 100644
--- a/plan9/config.plan9
+++ b/plan9/config.plan9
@@ -673,13 +673,6 @@
*/
#define I_FLOAT /**/
-/* I_LIMITS:
- * This symbol, if defined, indicates to the C program that it should
- * include <limits.h> to get definition of symbols like WORD_BIT or
- * LONG_MAX, i.e. machine dependant limitations.
- */
-#define I_LIMITS /**/
-
/* I_LOCALE:
* This symbol, if defined, indicates to the C program that it should
* include <locale.h>.
diff --git a/plan9/config_h.sample b/plan9/config_h.sample
index 42854491b2..3b7d304988 100644
--- a/plan9/config_h.sample
+++ b/plan9/config_h.sample
@@ -637,13 +637,6 @@
*/
#define I_FLOAT /**/
-/* I_LIMITS:
- * This symbol, if defined, indicates to the C program that it should
- * include <limits.h> to get definition of symbols like WORD_BIT or
- * LONG_MAX, i.e. machine dependant limitations.
- */
-#define I_LIMITS /**/
-
/* I_LOCALE:
* This symbol, if defined, indicates to the C program that it should
* include <locale.h>.
diff --git a/plan9/config_sh.sample b/plan9/config_sh.sample
index 114a58932f..2f8e5b212a 100644
--- a/plan9/config_sh.sample
+++ b/plan9/config_sh.sample
@@ -743,7 +743,6 @@ i_ieeefp='undef'
i_inttypes='define'
i_langinfo='undef'
i_libutil='undef'
-i_limits='define'
i_locale='define'
i_machcthr='undef'
i_malloc='undef'
diff --git a/symbian/config.sh b/symbian/config.sh
index 53aa97238d..088e9e6454 100644
--- a/symbian/config.sh
+++ b/symbian/config.sh
@@ -671,7 +671,6 @@ i_ieeefp='undef'
i_inttypes='undef'
i_langinfo='undef'
i_libutil='undef'
-i_limits='define'
i_locale='define'
i_machcthr='undef'
i_malloc='undef'
diff --git a/uconfig.h b/uconfig.h
index 50c1c95f84..e5c6c2b873 100644
--- a/uconfig.h
+++ b/uconfig.h
@@ -70,14 +70,6 @@
*/
/*#define HAS_CUSERID / **/
-/* HAS_DBL_DIG:
- * This symbol, if defined, indicates that this system's <float.h>
- * or <limits.h> defines the symbol DBL_DIG, which is the number
- * of significant digits in a double precision number. If this
- * symbol is not defined, a guess of 15 is usually pretty good.
- */
-/*#define HAS_DBL_DIG / **/
-
/* HAS_DIFFTIME:
* This symbol, if defined, indicates that the difftime routine is
* available.
@@ -647,13 +639,6 @@
*/
/*#define I_GDBM / **/
-/* I_LIMITS:
- * This symbol, if defined, indicates to the C program that it should
- * include <limits.h> to get definition of symbols like WORD_BIT or
- * LONG_MAX, i.e. machine dependant limitations.
- */
-/*#define I_LIMITS / **/
-
/* I_LOCALE:
* This symbol, if defined, indicates to the C program that it should
* include <locale.h>.
@@ -1549,6 +1534,14 @@
#define CSH "" /**/
#endif
+/* HAS_DBL_DIG:
+ * This symbol, if defined, indicates that this system's <float.h>
+ * or <limits.h> defines the symbol DBL_DIG, which is the number
+ * of significant digits in a double precision number. If this
+ * symbol is not defined, a guess of 15 is usually pretty good.
+ */
+/*#define HAS_DBL_DIG / **/
+
/* HAS_DLADDR:
* This symbol, if defined, indicates that the dladdr() routine is
* available to query dynamic linker information for an address.
@@ -5249,6 +5242,6 @@
#endif
/* Generated from:
- * ef59adc025306aceebb47a7515e514357b77e44a359af4bc0bf5d52082e41a26 config_h.SH
- * d40282b246b20f1f20a5febcae42b3ac44234c5a1c1a2df89e5ac77a54830cca uconfig.sh
+ * 82aa50fd961b36e3bc3ab644715698645fed961055bc70f4ad44ad88f51c25b0 config_h.SH
+ * 37da610aa9e38f4374ef9ce47cd7cd08240a33511faa8ee028f9e33ee76587ca uconfig.sh
* ex: set ro: */
diff --git a/uconfig.sh b/uconfig.sh
index 6fcd66d695..d8d151e143 100644
--- a/uconfig.sh
+++ b/uconfig.sh
@@ -657,7 +657,6 @@ i_ieeefp='undef'
i_inttypes='undef'
i_langinfo='undef'
i_libutil='undef'
-i_limits='undef'
i_locale='undef'
i_machcthr='undef'
i_malloc='undef'
diff --git a/uconfig64.sh b/uconfig64.sh
index 6446f02485..393af4f834 100644
--- a/uconfig64.sh
+++ b/uconfig64.sh
@@ -657,7 +657,6 @@ i_ieeefp='undef'
i_inttypes='undef'
i_langinfo='undef'
i_libutil='undef'
-i_limits='undef'
i_locale='undef'
i_machcthr='undef'
i_malloc='undef'
diff --git a/win32/config.ce b/win32/config.ce
index da654aa97c..07774f6a93 100644
--- a/win32/config.ce
+++ b/win32/config.ce
@@ -727,7 +727,6 @@ i_ieeefp='undef'
i_inttypes='undef'
i_langinfo='undef'
i_libutil='undef'
-i_limits='define'
i_locale='define'
i_machcthr='undef'
i_malloc='define'
diff --git a/win32/config.gc b/win32/config.gc
index e1d276e2f5..902c86e0e7 100644
--- a/win32/config.gc
+++ b/win32/config.gc
@@ -741,7 +741,6 @@ i_ieeefp='undef'
i_inttypes='undef'
i_langinfo='undef'
i_libutil='undef'
-i_limits='define'
i_locale='define'
i_machcthr='undef'
i_malloc='define'
diff --git a/win32/config.vc b/win32/config.vc
index 3ed21144bf..e4740bb56e 100644
--- a/win32/config.vc
+++ b/win32/config.vc
@@ -738,7 +738,6 @@ i_ieeefp='undef'
i_inttypes='undef'
i_langinfo='undef'
i_libutil='undef'
-i_limits='define'
i_locale='define'
i_machcthr='undef'
i_malloc='define'
diff --git a/win32/config_H.ce b/win32/config_H.ce
index 4eeb176fe7..dae69c8244 100644
--- a/win32/config_H.ce
+++ b/win32/config_H.ce
@@ -619,13 +619,6 @@
*/
#define I_FLOAT /**/
-/* I_LIMITS:
- * This symbol, if defined, indicates to the C program that it should
- * include <limits.h> to get definition of symbols like WORD_BIT or
- * LONG_MAX, i.e. machine dependant limitations.
- */
-#define I_LIMITS /**/
-
/* I_LOCALE:
* This symbol, if defined, indicates to the C program that it should
* include <locale.h>.
diff --git a/win32/config_H.gc b/win32/config_H.gc
index 7f6a2c574b..2604215dc9 100644
--- a/win32/config_H.gc
+++ b/win32/config_H.gc
@@ -635,13 +635,6 @@
*/
/*#define I_GDBM / **/
-/* I_LIMITS:
- * This symbol, if defined, indicates to the C program that it should
- * include <limits.h> to get definition of symbols like WORD_BIT or
- * LONG_MAX, i.e. machine dependant limitations.
- */
-#define I_LIMITS /**/
-
/* I_LOCALE:
* This symbol, if defined, indicates to the C program that it should
* include <locale.h>.
diff --git a/win32/config_H.vc b/win32/config_H.vc
index 80e486f128..edc71e7ffb 100644
--- a/win32/config_H.vc
+++ b/win32/config_H.vc
@@ -635,13 +635,6 @@
*/
/*#define I_GDBM / **/
-/* I_LIMITS:
- * This symbol, if defined, indicates to the C program that it should
- * include <limits.h> to get definition of symbols like WORD_BIT or
- * LONG_MAX, i.e. machine dependant limitations.
- */
-#define I_LIMITS /**/
-
/* I_LOCALE:
* This symbol, if defined, indicates to the C program that it should
* include <locale.h>.