summaryrefslogtreecommitdiff
path: root/perl.h
diff options
context:
space:
mode:
authorTodd Rinaldo <toddr@cpan.org>2020-09-13 13:05:29 -0500
committerSawyer X <xsawyerx@cpan.org>2020-09-15 17:37:44 +0300
commitb1cc9c03acf2fd5c705634f9c3628c5721e80afa (patch)
tree0122b18c82c66e33546493f195928bfe26319aab /perl.h
parent19aaf9297b251db12d787e0eb31f06bfadc56856 (diff)
downloadperl-b1cc9c03acf2fd5c705634f9c3628c5721e80afa.tar.gz
Non-Configure code required to implement a strict by default option
Diffstat (limited to 'perl.h')
-rw-r--r--perl.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/perl.h b/perl.h
index ef8ada7a2f..5a4814604a 100644
--- a/perl.h
+++ b/perl.h
@@ -5346,6 +5346,16 @@ typedef enum {
#define HINT_SORT_STABLE 0x00000100 /* sort styles */
#define HINT_SORT_UNSTABLE 0x00000200
+#define HINT_ALL_STRICT HINT_STRICT_REFS \
+ | HINT_STRICT_SUBS \
+ | HINT_STRICT_VARS
+
+#ifdef USE_STRICT_BY_DEFAULT
+#define HINTS_DEFAULT HINT_ALL_STRICT
+#else
+#define HINTS_DEFAULT 0
+#endif
+
/* flags for PL_sawampersand */
#define SAWAMPERSAND_LEFT 1 /* saw $` */