summaryrefslogtreecommitdiff
path: root/perl.h
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2011-05-15 20:52:02 -0600
committerKarl Williamson <public@khwilliamson.com>2011-07-03 14:05:47 -0600
commit024707869a10c357d61d9dfdfe74a7b386c92e25 (patch)
tree0e6ea78fbe08ae4b29813cec0d7a255c90aec3ce /perl.h
parentf1b67122022c4748336f3c81978e179361a149d3 (diff)
downloadperl-024707869a10c357d61d9dfdfe74a7b386c92e25.tar.gz
Add flag to num groks to silence non-portable warnings
Unicode inversion lists commonly will contain UV_MAX, which may trigger these warnings. Add a flag to suppress them to the numeric grok functions, which can be set by the code that is dealing with these lists
Diffstat (limited to 'perl.h')
-rw-r--r--perl.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/perl.h b/perl.h
index b96cdcdefd..a950e86bed 100644
--- a/perl.h
+++ b/perl.h
@@ -5543,6 +5543,8 @@ int flock(int fd, int op);
#define PERL_SCAN_ALLOW_UNDERSCORES 0x01 /* grok_??? accept _ in numbers */
#define PERL_SCAN_DISALLOW_PREFIX 0x02 /* grok_??? reject 0x in hex etc */
#define PERL_SCAN_SILENT_ILLDIGIT 0x04 /* grok_??? not warn about illegal digits */
+#define PERL_SCAN_SILENT_NON_PORTABLE 0x08 /* grok_??? not warn about very large
+ numbers which are <= UV_MAX */
/* Output flags: */
#define PERL_SCAN_GREATER_THAN_UV_MAX 0x02 /* should this merge with above? */