This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Restore microperl, which has been unable to build since January.
authorNicholas Clark <nick@ccl4.org>
Fri, 27 Jul 2012 15:36:40 +0000 (17:36 +0200)
committerNicholas Clark <nick@ccl4.org>
Fri, 27 Jul 2012 15:36:40 +0000 (17:36 +0200)
microperl was broken by commit 82ad65bb0613be64 on 2012-01-16, which used
IN_LOCALE_COMPILETIME for the first time in the C code. Unlike
IN_LOCALE_RUNTIME, it had no fallback definition for microperl.

Commit f90a9a0230170cc0 on 2012-01-28 added the first use of Strtol(),
which means that microperl now needs to assume that the system has strtol().
(Which is not unreasonable, as it's part of C89).

perl.h
uconfig.h
uconfig.sh
uconfig64.sh

diff --git a/perl.h b/perl.h
index a7cd37a..c33c191 100644 (file)
--- a/perl.h
+++ b/perl.h
@@ -5319,6 +5319,7 @@ typedef struct am_table_short AMTS;
 #define RESTORE_NUMERIC_STANDARD()     /**/
 #define Atof                           my_atof
 #define IN_LOCALE_RUNTIME              0
+#define IN_LOCALE_COMPILETIME          0
 
 #endif /* !USE_LOCALE_NUMERIC */
 
index 967ba2c..f21c9bd 100644 (file)
--- a/uconfig.h
+++ b/uconfig.h
  *     This symbol, if defined, indicates that the strtol routine is available
  *     to provide better numeric string conversion than atoi() and friends.
  */
-/*#define HAS_STRTOL   / **/
+#define HAS_STRTOL     /**/
 
 /* HAS_STRXFRM:
  *     This symbol, if defined, indicates that the strxfrm() routine is
 
 /* Generated from:
  * 450f87b8e0de509bd7e72485185b4060363119bedef2b8aff868354f42708a78 config_h.SH
- * e3a05060ae46f0ca7ea3a4fd9a4c2dcd60caf070529116479a74830d923d1ca3 uconfig.sh
+ * 136e00f109103fdebadeec53d77fbc8f8c1bf3eb82ce970c966f362584f4b7f2 uconfig.sh
  * ex: set ro: */
index 5bf0575..32f6aa5 100644 (file)
@@ -425,7 +425,7 @@ d_strftime='undef'
 d_strlcat='undef'
 d_strlcpy='undef'
 d_strtod='undef'
-d_strtol='undef'
+d_strtol='define'
 d_strtold='undef'
 d_strtoll='undef'
 d_strtoq='undef'
index 96e0fd3..3d3ca5a 100644 (file)
@@ -426,7 +426,7 @@ d_strftime='undef'
 d_strlcat='undef'
 d_strlcpy='undef'
 d_strtod='undef'
-d_strtol='undef'
+d_strtol='define'
 d_strtold='undef'
 d_strtoll='undef'
 d_strtoq='undef'