summaryrefslogtreecommitdiff
path: root/perl.h
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1999-06-27 13:49:31 +0000
committerGurusamy Sarathy <gsar@cpan.org>1999-06-27 13:49:31 +0000
commit4f4e629e089f1120f8e94984281df06ac4f885c5 (patch)
treecc7f066c9893e0db84c4c487c16bb7dff5e029d6 /perl.h
parentd0334bed0b5f8315518daa5bbcd832e006b78148 (diff)
parentd43ce814c3413c5d667db1dd8ade5d571ac81c1f (diff)
downloadperl-4f4e629e089f1120f8e94984281df06ac4f885c5.tar.gz
integrate cfgperl changes into mainline
p4raw-id: //depot/perl@3552
Diffstat (limited to 'perl.h')
-rw-r--r--perl.h16
1 files changed, 14 insertions, 2 deletions
diff --git a/perl.h b/perl.h
index 60a41ea5ed..7ef943212c 100644
--- a/perl.h
+++ b/perl.h
@@ -2817,10 +2817,22 @@ typedef struct am_table_short AMTS;
set_numeric_local(); \
} STMT_END
+#define IS_NUMERIC_RADIX(c) \
+ ((PL_hints & HINT_LOCALE) && \
+ PL_numeric_radix && (c) == PL_numeric_radix)
+
+#define RESTORE_NUMERIC_LOCAL() if ((PL_hints & HINT_LOCALE) && PL_numeric_standard) SET_NUMERIC_LOCAL()
+#define RESTORE_NUMERIC_STANDARD() if ((PL_hints & HINT_LOCALE) && PL_numeric_local) SET_NUMERIC_STANDARD()
+#define Atof(s) Perl_my_atof(s)
+
#else /* !USE_LOCALE_NUMERIC */
-#define SET_NUMERIC_STANDARD() /**/
-#define SET_NUMERIC_LOCAL() /**/
+#define SET_NUMERIC_STANDARD() /**/
+#define SET_NUMERIC_LOCAL() /**/
+#define IS_NUMERIC_RADIX(c) (0)
+#define RESTORE_NUMERIC_LOCAL() /**/
+#define RESTORE_NUMERIC_STANDARD() /**/
+#define Atof(s) atof(s)
#endif /* !USE_LOCALE_NUMERIC */