components/perl/perl516/patches/CVE-2014-4330.patch
author Bill Rushmore <bill.rushmore@oracle.com>
Mon, 06 Oct 2014 09:55:34 -0700
changeset 2136 f1e602172275
permissions -rw-r--r--
19696237 problem in UTILITY/PERL
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2136
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
     1
This patch is an update of Data-Dumper to version 2.154 that comes from:
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
     2
http://search.cpan.org/~smueller/Data-Dumper-2.154/Dumper.pm
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
     3
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
     4
diff -ur --new-file perl-5.16.3/dist/Data-Dumper/Changes perl-5.16.3/dist/Data-Dumper/Changes
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
     5
--- perl-5.16.3/dist/Data-Dumper/Changes	2014-09-29 13:45:01.142205831 -0400
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
     6
+++ perl-5.16.3/dist/Data-Dumper/Changes	2014-09-29 13:47:39.521852778 -0400
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
     7
@@ -1,11 +1,104 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
     8
 =head1 NAME
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
     9
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    10
-HISTORY - public release history for Data::Dumper
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    11
+Changes - public release history for Data::Dumper
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    12
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    13
 =head1 DESCRIPTION
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    14
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    15
 =over 8
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    16
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    17
+=item 2.154 (Sep 18 2014)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    18
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    19
+Most notably, this release fixes CVE-2014-4330:
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    20
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    21
+  Don't recurse infinitely in Data::Dumper
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    22
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    23
+  Add a configuration variable/option to limit recursion when
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    24
+  dumpng deep data structures.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    25
+  [...]
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    26
+  This patch addresses CVE-2014-4330.  This bug was found and
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    27
+  reported by: LSE Leading Security Experts GmbH employee Markus
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    28
+  Vervier.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    29
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    30
+On top of that, there are several minor big fixes and improvements,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    31
+see "git log" if the core perl distribution for details.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    32
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    33
+=item 2.151 (Mar 7 2014)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    34
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    35
+A "useqq" implementation for the XS version of Data::Dumper.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    36
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    37
+Better compatibility wrt. hash key quoting between PP and XS
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    38
+versions of Data::Dumper.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    39
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    40
+EBCDIC fixes.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    41
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    42
+64bit safety fixes (for very large arrays).
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    43
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    44
+Build fixes for threaded perls.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    45
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    46
+clang warning fixes.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    47
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    48
+Warning fixes in tests on older perls.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    49
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    50
+Typo fixes in documentation.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    51
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    52
+=item 2.145 (Mar 15 2013)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    53
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    54
+Test refactoring and fixing wide and far.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    55
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    56
+Various old-perl compat fixes.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    57
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    58
+=item 2.143 (Feb 26 2013)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    59
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    60
+Address vstring related test failures on 5.8: Skip tests for
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    61
+obscure case.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    62
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    63
+Major improvements to test coverage and significant refactoring.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    64
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    65
+Make Data::Dumper XS ignore Freezer return value. Fixes RT #116364.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    66
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    67
+Change call of isALNUM to equivalent but more clearly named isWORDCHAR
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    68
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    69
+=item 2.139 (Dec 12 2012)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    70
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    71
+Supply an explicit dynamic_config => 0 in META
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    72
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    73
+Properly list BUILD_REQUIRES prereqs (P5-RT#116028)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    74
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    75
+Some optimizations. Removed useless "register" declarations.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    76
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    77
+=item 2.136 (Oct 04 2012)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    78
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    79
+Promote to stable release.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    80
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    81
+Drop some "register" declarations.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    82
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    83
+=item 2.135_07 (Aug 06 2012)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    84
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    85
+Use the new utf8 to code point functions - fixing a potential
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    86
+reading buffer overrun.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    87
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    88
+Data::Dumper: Sparseseen option to avoid building much of the seen
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    89
+hash: This has been measured to, in some cases, provide a 50% speed-up
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    90
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    91
+Dumper.xs: Avoid scan_vstring on 5.17.3 and up
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    92
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    93
+Avoid a warning from clang when compiling Data::Dumper
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    94
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    95
+Fix DD's dumping of qr|\/|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    96
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    97
+Data::Dumper's Perl implementation was not working with overloaded
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    98
+blessed globs, which it thought were strings.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    99
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   100
+Allow Data::Dumper to load on miniperl
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   101
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   102
+=item 2.135_02 (Dec 29 2011)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   103
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   104
+Makes DD dump *{''} properly.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   105
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   106
+[perl #101162] DD support for vstrings:
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   107
+Support for vstrings to Data::Dumper, in both Perl and XS
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   108
+implementations.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   109
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   110
 =item 2.135_01 (Dec 19 2011)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   111
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   112
 Make Data::Dumper UTF8- and null-clean with GVs.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   113
diff -ur --new-file perl-5.16.3/dist/Data-Dumper/Dumper.pm perl-5.16.3/dist/Data-Dumper/Dumper.pm
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   114
--- perl-5.16.3/dist/Data-Dumper/Dumper.pm	2014-09-29 13:45:01.132167061 -0400
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   115
+++ perl-5.16.3/dist/Data-Dumper/Dumper.pm	2014-09-29 13:47:39.522908324 -0400
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   116
@@ -10,8 +10,8 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   117
 package Data::Dumper;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   118
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   119
 BEGIN {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   120
-    $VERSION = '2.135_06'; # Don't forget to set version and release
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   121
-}			   # date in POD!
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   122
+    $VERSION = '2.154'; # Don't forget to set version and release
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   123
+}               # date in POD below!
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   124
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   125
 #$| = 1;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   126
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   127
@@ -30,9 +30,9 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   128
     # XSLoader should be attempted to load, or the pure perl flag
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   129
     # toggled on load failure.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   130
     eval {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   131
-	require XSLoader;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   132
-	XSLoader::load( 'Data::Dumper' );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   133
-	1
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   134
+        require XSLoader;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   135
+        XSLoader::load( 'Data::Dumper' );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   136
+        1
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   137
     }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   138
     or $Useperl = 1;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   139
 }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   140
@@ -55,6 +55,8 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   141
 $Useperl    = 0         unless defined $Useperl;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   142
 $Sortkeys   = 0         unless defined $Sortkeys;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   143
 $Deparse    = 0         unless defined $Deparse;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   144
+$Sparseseen = 0         unless defined $Sparseseen;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   145
+$Maxrecurse = 1000      unless defined $Maxrecurse;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   146
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   147
 #
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   148
 # expects an arrayref of values to be dumped.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   149
@@ -65,36 +67,38 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   150
 sub new {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   151
   my($c, $v, $n) = @_;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   152
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   153
-  croak "Usage:  PACKAGE->new(ARRAYREF, [ARRAYREF])" 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   154
+  croak "Usage:  PACKAGE->new(ARRAYREF, [ARRAYREF])"
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   155
     unless (defined($v) && (ref($v) eq 'ARRAY'));
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   156
   $n = [] unless (defined($n) && (ref($n) eq 'ARRAY'));
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   157
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   158
-  my($s) = { 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   159
-             level      => 0,           # current recursive depth
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   160
-	     indent     => $Indent,     # various styles of indenting
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   161
-	     pad	=> $Pad,        # all lines prefixed by this string
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   162
-	     xpad       => "",          # padding-per-level
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   163
-	     apad       => "",          # added padding for hash keys n such
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   164
-	     sep        => "",          # list separator
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   165
-	     pair	=> $Pair,	# hash key/value separator: defaults to ' => '
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   166
-	     seen       => {},          # local (nested) refs (id => [name, val])
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   167
-	     todump     => $v,          # values to dump []
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   168
-	     names      => $n,          # optional names for values []
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   169
-	     varname    => $Varname,    # prefix to use for tagging nameless ones
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   170
-             purity     => $Purity,     # degree to which output is evalable
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   171
-             useqq 	=> $Useqq,      # use "" for strings (backslashitis ensues)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   172
-             terse 	=> $Terse,      # avoid name output (where feasible)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   173
-             freezer	=> $Freezer,    # name of Freezer method for objects
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   174
-             toaster	=> $Toaster,    # name of method to revive objects
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   175
-             deepcopy	=> $Deepcopy,   # dont cross-ref, except to stop recursion
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   176
-             quotekeys	=> $Quotekeys,  # quote hash keys
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   177
-             'bless'	=> $Bless,	# keyword to use for "bless"
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   178
-#	     expdepth   => $Expdepth,   # cutoff depth for explicit dumping
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   179
-	     maxdepth	=> $Maxdepth,   # depth beyond which we give up
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   180
-	     useperl    => $Useperl,    # use the pure Perl implementation
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   181
-	     sortkeys   => $Sortkeys,   # flag or filter for sorting hash keys
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   182
-	     deparse	=> $Deparse,	# use B::Deparse for coderefs
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   183
-	   };
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   184
+  my($s) = {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   185
+        level      => 0,           # current recursive depth
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   186
+        indent     => $Indent,     # various styles of indenting
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   187
+        pad        => $Pad,        # all lines prefixed by this string
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   188
+        xpad       => "",          # padding-per-level
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   189
+        apad       => "",          # added padding for hash keys n such
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   190
+        sep        => "",          # list separator
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   191
+        pair       => $Pair,    # hash key/value separator: defaults to ' => '
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   192
+        seen       => {},          # local (nested) refs (id => [name, val])
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   193
+        todump     => $v,          # values to dump []
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   194
+        names      => $n,          # optional names for values []
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   195
+        varname    => $Varname,    # prefix to use for tagging nameless ones
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   196
+        purity     => $Purity,     # degree to which output is evalable
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   197
+        useqq      => $Useqq,      # use "" for strings (backslashitis ensues)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   198
+        terse      => $Terse,      # avoid name output (where feasible)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   199
+        freezer    => $Freezer,    # name of Freezer method for objects
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   200
+        toaster    => $Toaster,    # name of method to revive objects
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   201
+        deepcopy   => $Deepcopy,   # do not cross-ref, except to stop recursion
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   202
+        quotekeys  => $Quotekeys,  # quote hash keys
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   203
+        'bless'    => $Bless,    # keyword to use for "bless"
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   204
+#        expdepth   => $Expdepth,   # cutoff depth for explicit dumping
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   205
+        maxdepth   => $Maxdepth,   # depth beyond which we give up
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   206
+	maxrecurse => $Maxrecurse, # depth beyond which we abort
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   207
+        useperl    => $Useperl,    # use the pure Perl implementation
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   208
+        sortkeys   => $Sortkeys,   # flag or filter for sorting hash keys
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   209
+        deparse    => $Deparse,    # use B::Deparse for coderefs
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   210
+        noseen     => $Sparseseen, # do not populate the seen hash unless necessary
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   211
+       };
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   212
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   213
   if ($Indent > 0) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   214
     $s->{xpad} = "  ";
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   215
@@ -147,21 +151,26 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   216
     init_refaddr_format();
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   217
     my($k, $v, $id);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   218
     while (($k, $v) = each %$g) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   219
-      if (defined $v and ref $v) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   220
-	$id = format_refaddr($v);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   221
-	if ($k =~ /^[*](.*)$/) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   222
-	  $k = (ref $v eq 'ARRAY') ? ( "\\\@" . $1 ) :
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   223
-	       (ref $v eq 'HASH')  ? ( "\\\%" . $1 ) :
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   224
-	       (ref $v eq 'CODE')  ? ( "\\\&" . $1 ) :
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   225
-				     (   "\$" . $1 ) ;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   226
-	}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   227
-	elsif ($k !~ /^\$/) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   228
-	  $k = "\$" . $k;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   229
-	}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   230
-	$s->{seen}{$id} = [$k, $v];
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   231
+      if (defined $v) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   232
+        if (ref $v) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   233
+          $id = format_refaddr($v);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   234
+          if ($k =~ /^[*](.*)$/) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   235
+            $k = (ref $v eq 'ARRAY') ? ( "\\\@" . $1 ) :
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   236
+                 (ref $v eq 'HASH')  ? ( "\\\%" . $1 ) :
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   237
+                 (ref $v eq 'CODE')  ? ( "\\\&" . $1 ) :
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   238
+                 (   "\$" . $1 ) ;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   239
+          }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   240
+          elsif ($k !~ /^\$/) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   241
+            $k = "\$" . $k;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   242
+          }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   243
+          $s->{seen}{$id} = [$k, $v];
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   244
+        }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   245
+        else {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   246
+          carp "Only refs supported, ignoring non-ref item \$$k";
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   247
+        }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   248
       }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   249
       else {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   250
-	carp "Only refs supported, ignoring non-ref item \$$k";
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   251
+        carp "Value of ref must be defined; ignoring undefined item \$$k";
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   252
       }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   253
     }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   254
     return $s;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   255
@@ -176,9 +185,14 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   256
 #
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   257
 sub Values {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   258
   my($s, $v) = @_;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   259
-  if (defined($v) && (ref($v) eq 'ARRAY'))  {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   260
-    $s->{todump} = [@$v];        # make a copy
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   261
-    return $s;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   262
+  if (defined($v)) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   263
+    if (ref($v) eq 'ARRAY')  {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   264
+      $s->{todump} = [@$v];        # make a copy
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   265
+      return $s;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   266
+    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   267
+    else {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   268
+      croak "Argument to Values, if provided, must be array ref";
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   269
+    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   270
   }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   271
   else {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   272
     return @{$s->{todump}};
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   273
@@ -190,9 +204,14 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   274
 #
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   275
 sub Names {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   276
   my($s, $n) = @_;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   277
-  if (defined($n) && (ref($n) eq 'ARRAY'))  {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   278
-    $s->{names} = [@$n];         # make a copy
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   279
-    return $s;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   280
+  if (defined($n)) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   281
+    if (ref($n) eq 'ARRAY') {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   282
+      $s->{names} = [@$n];         # make a copy
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   283
+      return $s;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   284
+    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   285
+    else {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   286
+      croak "Argument to Names, if provided, must be array ref";
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   287
+    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   288
   }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   289
   else {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   290
     return @{$s->{names}};
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   291
@@ -203,9 +222,8 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   292
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   293
 sub Dump {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   294
     return &Dumpxs
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   295
-	unless $Data::Dumper::Useperl || (ref($_[0]) && $_[0]->{useperl}) ||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   296
-	       $Data::Dumper::Useqq   || (ref($_[0]) && $_[0]->{useqq}) ||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   297
-	       $Data::Dumper::Deparse || (ref($_[0]) && $_[0]->{deparse});
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   298
+    unless $Data::Dumper::Useperl || (ref($_[0]) && $_[0]->{useperl}) ||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   299
+           $Data::Dumper::Deparse || (ref($_[0]) && $_[0]->{deparse});
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   300
     return &Dumpperl;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   301
 }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   302
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   303
@@ -223,28 +241,9 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   304
   $s = $s->new(@_) unless ref $s;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   305
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   306
   for $val (@{$s->{todump}}) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   307
-    my $out = "";
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   308
     @post = ();
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   309
     $name = $s->{names}[$i++];
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   310
-    if (defined $name) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   311
-      if ($name =~ /^[*](.*)$/) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   312
-	if (defined $val) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   313
-	  $name = (ref $val eq 'ARRAY') ? ( "\@" . $1 ) :
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   314
-		  (ref $val eq 'HASH')  ? ( "\%" . $1 ) :
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   315
-		  (ref $val eq 'CODE')  ? ( "\*" . $1 ) :
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   316
-					  ( "\$" . $1 ) ;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   317
-	}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   318
-	else {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   319
-	  $name = "\$" . $1;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   320
-	}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   321
-      }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   322
-      elsif ($name !~ /^\$/) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   323
-	$name = "\$" . $name;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   324
-      }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   325
-    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   326
-    else {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   327
-      $name = "\$" . $s->{varname} . $i;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   328
-    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   329
+    $name = $s->_refine_name($name, $val, $i);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   330
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   331
     my $valstr;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   332
     {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   333
@@ -254,9 +253,7 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   334
     }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   335
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   336
     $valstr = "$name = " . $valstr . ';' if @post or !$s->{terse};
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   337
-    $out .= $s->{pad} . $valstr . $s->{sep};
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   338
-    $out .= $s->{pad} . join(';' . $s->{sep} . $s->{pad}, @post) 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   339
-      . ';' . $s->{sep} if @post;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   340
+    my $out = $s->_compose_out($valstr, \@post);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   341
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   342
     push @out, $out;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   343
   }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   344
@@ -282,8 +279,7 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   345
 #
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   346
 sub _dump {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   347
   my($s, $val, $name) = @_;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   348
-  my($sname);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   349
-  my($out, $realpack, $realtype, $type, $ipad, $id, $blesspad);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   350
+  my($out, $type, $id, $sname);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   351
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   352
   $type = ref $val;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   353
   $out = "";
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   354
@@ -300,65 +296,70 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   355
     }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   356
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   357
     require Scalar::Util;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   358
-    $realpack = Scalar::Util::blessed($val);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   359
-    $realtype = $realpack ? Scalar::Util::reftype($val) : ref $val;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   360
+    my $realpack = Scalar::Util::blessed($val);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   361
+    my $realtype = $realpack ? Scalar::Util::reftype($val) : ref $val;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   362
     $id = format_refaddr($val);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   363
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   364
-    # if it has a name, we need to either look it up, or keep a tab
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   365
-    # on it so we know when we hit it later
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   366
-    if (defined($name) and length($name)) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   367
-      # keep a tab on it so that we dont fall into recursive pit
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   368
-      if (exists $s->{seen}{$id}) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   369
-#	if ($s->{expdepth} < $s->{level}) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   370
-	  if ($s->{purity} and $s->{level} > 0) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   371
-	    $out = ($realtype eq 'HASH')  ? '{}' :
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   372
-	      ($realtype eq 'ARRAY') ? '[]' :
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   373
-		'do{my $o}' ;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   374
-	    push @post, $name . " = " . $s->{seen}{$id}[0];
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   375
-	  }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   376
-	  else {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   377
-	    $out = $s->{seen}{$id}[0];
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   378
-	    if ($name =~ /^([\@\%])/) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   379
-	      my $start = $1;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   380
-	      if ($out =~ /^\\$start/) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   381
-		$out = substr($out, 1);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   382
-	      }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   383
-	      else {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   384
-		$out = $start . '{' . $out . '}';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   385
-	      }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   386
-	    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   387
-          }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   388
-	  return $out;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   389
-#        }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   390
+    # Note: By this point $name is always defined and of non-zero length.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   391
+    # Keep a tab on it so that we do not fall into recursive pit.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   392
+    if (exists $s->{seen}{$id}) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   393
+      if ($s->{purity} and $s->{level} > 0) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   394
+        $out = ($realtype eq 'HASH')  ? '{}' :
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   395
+               ($realtype eq 'ARRAY') ? '[]' :
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   396
+               'do{my $o}' ;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   397
+        push @post, $name . " = " . $s->{seen}{$id}[0];
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   398
       }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   399
       else {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   400
-        # store our name
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   401
-        $s->{seen}{$id} = [ (($name =~ /^[@%]/)     ? ('\\' . $name ) :
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   402
-			     ($realtype eq 'CODE' and
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   403
-			      $name =~ /^[*](.*)$/) ? ('\\&' . $1 )   :
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   404
-			     $name          ),
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   405
-			    $val ];
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   406
+        $out = $s->{seen}{$id}[0];
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   407
+        if ($name =~ /^([\@\%])/) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   408
+          my $start = $1;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   409
+          if ($out =~ /^\\$start/) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   410
+            $out = substr($out, 1);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   411
+          }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   412
+          else {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   413
+            $out = $start . '{' . $out . '}';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   414
+          }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   415
+        }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   416
       }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   417
+      return $out;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   418
+    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   419
+    else {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   420
+      # store our name
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   421
+      $s->{seen}{$id} = [ (
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   422
+          ($name =~ /^[@%]/)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   423
+            ? ('\\' . $name )
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   424
+            : ($realtype eq 'CODE' and $name =~ /^[*](.*)$/)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   425
+              ? ('\\&' . $1 )
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   426
+              : $name
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   427
+        ), $val ];
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   428
     }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   429
-    my $no_bless = 0; 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   430
+    my $no_bless = 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   431
     my $is_regex = 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   432
     if ( $realpack and ($] >= 5.009005 ? re::is_regexp($val) : $realpack eq 'Regexp') ) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   433
         $is_regex = 1;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   434
         $no_bless = $realpack eq 'Regexp';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   435
     }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   436
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   437
-    # If purity is not set and maxdepth is set, then check depth: 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   438
+    # If purity is not set and maxdepth is set, then check depth:
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   439
     # if we have reached maximum depth, return the string
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   440
     # representation of the thing we are currently examining
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   441
-    # at this depth (i.e., 'Foo=ARRAY(0xdeadbeef)'). 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   442
+    # at this depth (i.e., 'Foo=ARRAY(0xdeadbeef)').
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   443
     if (!$s->{purity}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   444
-	and $s->{maxdepth} > 0
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   445
-	and $s->{level} >= $s->{maxdepth})
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   446
+      and defined($s->{maxdepth})
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   447
+      and $s->{maxdepth} > 0
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   448
+      and $s->{level} >= $s->{maxdepth})
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   449
     {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   450
       return qq['$val'];
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   451
     }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   452
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   453
+    # avoid recursing infinitely [perl #122111]
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   454
+    if ($s->{maxrecurse} > 0
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   455
+        and $s->{level} >= $s->{maxrecurse}) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   456
+        die "Recursion limit of $s->{maxrecurse} exceeded";
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   457
+    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   458
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   459
     # we have a blessed ref
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   460
+    my ($blesspad);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   461
     if ($realpack and !$no_bless) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   462
       $out = $s->{'bless'} . '( ';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   463
       $blesspad = $s->{apad};
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   464
@@ -366,131 +367,136 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   465
     }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   466
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   467
     $s->{level}++;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   468
-    $ipad = $s->{xpad} x $s->{level};
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   469
+    my $ipad = $s->{xpad} x $s->{level};
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   470
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   471
     if ($is_regex) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   472
         my $pat;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   473
-        # This really sucks, re:regexp_pattern is in ext/re/re.xs and not in 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   474
-        # universal.c, and even worse we cant just require that re to be loaded
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   475
-        # we *have* to use() it. 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   476
-        # We should probably move it to universal.c for 5.10.1 and fix this.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   477
-        # Currently we only use re::regexp_pattern when the re is blessed into another
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   478
-        # package. This has the disadvantage of meaning that a DD dump won't round trip
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   479
-        # as the pattern will be repeatedly wrapped with the same modifiers.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   480
-        # This is an aesthetic issue so we will leave it for now, but we could use
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   481
-        # regexp_pattern() in list context to get the modifiers separately.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   482
-        # But since this means loading the full debugging engine in process we wont
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   483
-        # bother unless its necessary for accuracy.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   484
-        if (($realpack ne 'Regexp') && defined(*re::regexp_pattern{CODE})) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   485
-            $pat = re::regexp_pattern($val);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   486
-        } else {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   487
-            $pat = "$val";
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   488
+        my $flags = "";
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   489
+        if (defined(*re::regexp_pattern{CODE})) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   490
+          ($pat, $flags) = re::regexp_pattern($val);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   491
+        }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   492
+        else {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   493
+          $pat = "$val";
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   494
         }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   495
         $pat =~ s <(\\.)|/> { $1 || '\\/' }ge;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   496
-        $out .= "qr/$pat/";
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   497
+        $out .= "qr/$pat/$flags";
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   498
     }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   499
     elsif ($realtype eq 'SCALAR' || $realtype eq 'REF'
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   500
-	|| $realtype eq 'VSTRING') {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   501
+    || $realtype eq 'VSTRING') {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   502
       if ($realpack) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   503
-	$out .= 'do{\\(my $o = ' . $s->_dump($$val, "\${$name}") . ')}';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   504
+        $out .= 'do{\\(my $o = ' . $s->_dump($$val, "\${$name}") . ')}';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   505
       }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   506
       else {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   507
-	$out .= '\\' . $s->_dump($$val, "\${$name}");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   508
+        $out .= '\\' . $s->_dump($$val, "\${$name}");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   509
       }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   510
     }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   511
     elsif ($realtype eq 'GLOB') {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   512
-	$out .= '\\' . $s->_dump($$val, "*{$name}");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   513
+      $out .= '\\' . $s->_dump($$val, "*{$name}");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   514
     }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   515
     elsif ($realtype eq 'ARRAY') {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   516
       my($pad, $mname);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   517
       my($i) = 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   518
       $out .= ($name =~ /^\@/) ? '(' : '[';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   519
       $pad = $s->{sep} . $s->{pad} . $s->{apad};
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   520
-      ($name =~ /^\@(.*)$/) ? ($mname = "\$" . $1) : 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   521
-	# omit -> if $foo->[0]->{bar}, but not ${$foo->[0]}->{bar}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   522
-	($name =~ /^\\?[\%\@\*\$][^{].*[]}]$/) ? ($mname = $name) :
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   523
-	  ($mname = $name . '->');
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   524
+      ($name =~ /^\@(.*)$/) ? ($mname = "\$" . $1) :
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   525
+    # omit -> if $foo->[0]->{bar}, but not ${$foo->[0]}->{bar}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   526
+        ($name =~ /^\\?[\%\@\*\$][^{].*[]}]$/) ? ($mname = $name) :
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   527
+        ($mname = $name . '->');
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   528
       $mname .= '->' if $mname =~ /^\*.+\{[A-Z]+\}$/;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   529
       for my $v (@$val) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   530
-	$sname = $mname . '[' . $i . ']';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   531
-	$out .= $pad . $ipad . '#' . $i if $s->{indent} >= 3;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   532
-	$out .= $pad . $ipad . $s->_dump($v, $sname);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   533
-	$out .= "," if $i++ < $#$val;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   534
+        $sname = $mname . '[' . $i . ']';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   535
+        $out .= $pad . $ipad . '#' . $i
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   536
+          if $s->{indent} >= 3;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   537
+        $out .= $pad . $ipad . $s->_dump($v, $sname);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   538
+        $out .= "," if $i++ < $#$val;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   539
       }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   540
       $out .= $pad . ($s->{xpad} x ($s->{level} - 1)) if $i;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   541
       $out .= ($name =~ /^\@/) ? ')' : ']';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   542
     }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   543
     elsif ($realtype eq 'HASH') {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   544
-      my($k, $v, $pad, $lpad, $mname, $pair);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   545
+      my ($k, $v, $pad, $lpad, $mname, $pair);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   546
       $out .= ($name =~ /^\%/) ? '(' : '{';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   547
       $pad = $s->{sep} . $s->{pad} . $s->{apad};
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   548
       $lpad = $s->{apad};
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   549
       $pair = $s->{pair};
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   550
       ($name =~ /^\%(.*)$/) ? ($mname = "\$" . $1) :
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   551
-	# omit -> if $foo->[0]->{bar}, but not ${$foo->[0]}->{bar}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   552
-	($name =~ /^\\?[\%\@\*\$][^{].*[]}]$/) ? ($mname = $name) :
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   553
-	  ($mname = $name . '->');
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   554
+    # omit -> if $foo->[0]->{bar}, but not ${$foo->[0]}->{bar}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   555
+        ($name =~ /^\\?[\%\@\*\$][^{].*[]}]$/) ? ($mname = $name) :
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   556
+        ($mname = $name . '->');
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   557
       $mname .= '->' if $mname =~ /^\*.+\{[A-Z]+\}$/;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   558
-      my ($sortkeys, $keys, $key) = ("$s->{sortkeys}");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   559
+      my $sortkeys = defined($s->{sortkeys}) ? $s->{sortkeys} : '';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   560
+      my $keys = [];
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   561
       if ($sortkeys) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   562
-	if (ref($s->{sortkeys}) eq 'CODE') {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   563
-	  $keys = $s->{sortkeys}($val);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   564
-	  unless (ref($keys) eq 'ARRAY') {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   565
-	    carp "Sortkeys subroutine did not return ARRAYREF";
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   566
-	    $keys = [];
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   567
-	  }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   568
-	}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   569
-	else {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   570
-	  $keys = [ sort keys %$val ];
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   571
-	}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   572
+        if (ref($s->{sortkeys}) eq 'CODE') {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   573
+          $keys = $s->{sortkeys}($val);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   574
+          unless (ref($keys) eq 'ARRAY') {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   575
+            carp "Sortkeys subroutine did not return ARRAYREF";
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   576
+            $keys = [];
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   577
+          }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   578
+        }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   579
+        else {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   580
+          $keys = [ sort keys %$val ];
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   581
+        }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   582
       }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   583
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   584
       # Ensure hash iterator is reset
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   585
       keys(%$val);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   586
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   587
+      my $key;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   588
       while (($k, $v) = ! $sortkeys ? (each %$val) :
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   589
-	     @$keys ? ($key = shift(@$keys), $val->{$key}) :
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   590
-	     () ) 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   591
+         @$keys ? ($key = shift(@$keys), $val->{$key}) :
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   592
+         () )
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   593
       {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   594
-	my $nk = $s->_dump($k, "");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   595
-	$nk = $1 if !$s->{quotekeys} and $nk =~ /^[\"\']([A-Za-z_]\w*)[\"\']$/;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   596
-	$sname = $mname . '{' . $nk . '}';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   597
-	$out .= $pad . $ipad . $nk . $pair;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   598
-
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   599
-	# temporarily alter apad
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   600
-	$s->{apad} .= (" " x (length($nk) + 4)) if $s->{indent} >= 2;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   601
-	$out .= $s->_dump($val->{$k}, $sname) . ",";
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   602
-	$s->{apad} = $lpad if $s->{indent} >= 2;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   603
+        my $nk = $s->_dump($k, "");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   604
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   605
+        # _dump doesn't quote numbers of this form
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   606
+        if ($s->{quotekeys} && $nk =~ /^(?:0|-?[1-9][0-9]{0,8})\z/) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   607
+          $nk = $s->{useqq} ? qq("$nk") : qq('$nk');
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   608
+        }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   609
+        elsif (!$s->{quotekeys} and $nk =~ /^[\"\']([A-Za-z_]\w*)[\"\']$/) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   610
+          $nk = $1
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   611
+        }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   612
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   613
+        $sname = $mname . '{' . $nk . '}';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   614
+        $out .= $pad . $ipad . $nk . $pair;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   615
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   616
+        # temporarily alter apad
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   617
+        $s->{apad} .= (" " x (length($nk) + 4))
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   618
+          if $s->{indent} >= 2;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   619
+        $out .= $s->_dump($val->{$k}, $sname) . ",";
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   620
+        $s->{apad} = $lpad
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   621
+          if $s->{indent} >= 2;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   622
       }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   623
       if (substr($out, -1) eq ',') {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   624
-	chop $out;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   625
-	$out .= $pad . ($s->{xpad} x ($s->{level} - 1));
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   626
+        chop $out;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   627
+        $out .= $pad . ($s->{xpad} x ($s->{level} - 1));
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   628
       }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   629
       $out .= ($name =~ /^\%/) ? ')' : '}';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   630
     }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   631
     elsif ($realtype eq 'CODE') {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   632
       if ($s->{deparse}) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   633
-	require B::Deparse;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   634
-	my $sub =  'sub ' . (B::Deparse->new)->coderef2text($val);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   635
-	$pad    =  $s->{sep} . $s->{pad} . $s->{apad} . $s->{xpad} x ($s->{level} - 1);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   636
-	$sub    =~ s/\n/$pad/gse;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   637
-	$out   .=  $sub;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   638
-      } else {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   639
+        require B::Deparse;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   640
+        my $sub =  'sub ' . (B::Deparse->new)->coderef2text($val);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   641
+        $pad    =  $s->{sep} . $s->{pad} . $s->{apad} . $s->{xpad} x ($s->{level} - 1);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   642
+        $sub    =~ s/\n/$pad/gse;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   643
+        $out   .=  $sub;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   644
+      }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   645
+      else {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   646
         $out .= 'sub { "DUMMY" }';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   647
         carp "Encountered CODE ref, using dummy placeholder" if $s->{purity};
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   648
       }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   649
     }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   650
     else {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   651
-      croak "Can\'t handle $realtype type.";
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   652
+      croak "Can't handle '$realtype' type";
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   653
     }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   654
-    
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   655
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   656
     if ($realpack and !$no_bless) { # we have a blessed ref
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   657
       $out .= ', ' . _quote($realpack) . ' )';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   658
-      $out .= '->' . $s->{toaster} . '()'  if $s->{toaster} ne '';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   659
+      $out .= '->' . $s->{toaster} . '()'
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   660
+        if $s->{toaster} ne '';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   661
       $s->{apad} = $blesspad;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   662
     }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   663
     $s->{level}--;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   664
-
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   665
   }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   666
   else {                                 # simple scalar
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   667
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   668
@@ -501,46 +507,46 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   669
       $id = format_refaddr($ref);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   670
       if (exists $s->{seen}{$id}) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   671
         if ($s->{seen}{$id}[2]) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   672
-	  $out = $s->{seen}{$id}[0];
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   673
-	  #warn "[<$out]\n";
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   674
-	  return "\${$out}";
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   675
-	}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   676
+          $out = $s->{seen}{$id}[0];
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   677
+          #warn "[<$out]\n";
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   678
+          return "\${$out}";
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   679
+        }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   680
       }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   681
       else {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   682
-	#warn "[>\\$name]\n";
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   683
-	$s->{seen}{$id} = ["\\$name", $ref];
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   684
+        #warn "[>\\$name]\n";
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   685
+        $s->{seen}{$id} = ["\\$name", $ref];
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   686
       }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   687
     }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   688
     $ref = \$val;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   689
     if (ref($ref) eq 'GLOB') {  # glob
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   690
       my $name = substr($val, 1);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   691
       if ($name =~ /^[A-Za-z_][\w:]*$/ && $name ne 'main::') {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   692
-	$name =~ s/^main::/::/;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   693
-	$sname = $name;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   694
+        $name =~ s/^main::/::/;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   695
+        $sname = $name;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   696
       }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   697
       else {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   698
-	$sname = $s->_dump(
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   699
-	  $name eq 'main::' || $] < 5.007 && $name eq "main::\0"
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   700
-	    ? ''
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   701
-	    : $name,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   702
-	  "",
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   703
-	);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   704
-	$sname = '{' . $sname . '}';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   705
+        $sname = $s->_dump(
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   706
+          $name eq 'main::' || $] < 5.007 && $name eq "main::\0"
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   707
+            ? ''
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   708
+            : $name,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   709
+          "",
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   710
+        );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   711
+        $sname = '{' . $sname . '}';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   712
       }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   713
       if ($s->{purity}) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   714
-	my $k;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   715
-	local ($s->{level}) = 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   716
-	for $k (qw(SCALAR ARRAY HASH)) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   717
-	  my $gval = *$val{$k};
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   718
-	  next unless defined $gval;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   719
-	  next if $k eq "SCALAR" && ! defined $$gval;  # always there
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   720
-
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   721
-	  # _dump can push into @post, so we hold our place using $postlen
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   722
-	  my $postlen = scalar @post;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   723
-	  $post[$postlen] = "\*$sname = ";
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   724
-	  local ($s->{apad}) = " " x length($post[$postlen]) if $s->{indent} >= 2;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   725
-	  $post[$postlen] .= $s->_dump($gval, "\*$sname\{$k\}");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   726
-	}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   727
+        my $k;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   728
+        local ($s->{level}) = 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   729
+        for $k (qw(SCALAR ARRAY HASH)) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   730
+          my $gval = *$val{$k};
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   731
+          next unless defined $gval;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   732
+          next if $k eq "SCALAR" && ! defined $$gval;  # always there
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   733
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   734
+          # _dump can push into @post, so we hold our place using $postlen
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   735
+          my $postlen = scalar @post;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   736
+          $post[$postlen] = "\*$sname = ";
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   737
+          local ($s->{apad}) = " " x length($post[$postlen]) if $s->{indent} >= 2;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   738
+          $post[$postlen] .= $s->_dump($gval, "\*$sname\{$k\}");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   739
+        }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   740
       }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   741
       $out .= '*' . $sname;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   742
     }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   743
@@ -548,20 +554,21 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   744
       $out .= "undef";
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   745
     }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   746
     elsif (defined &_vstring and $v = _vstring($val)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   747
-	and !_bad_vsmg || eval $v eq $val) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   748
+      and !_bad_vsmg || eval $v eq $val) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   749
       $out .= $v;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   750
     }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   751
     elsif (!defined &_vstring
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   752
        and ref $ref eq 'VSTRING' || eval{Scalar::Util::isvstring($val)}) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   753
       $out .= sprintf "%vd", $val;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   754
     }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   755
-    elsif ($val =~ /^(?:0|-?[1-9]\d{0,8})\z/) { # safe decimal number
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   756
+    # \d here would treat "1\x{660}" as a safe decimal number
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   757
+    elsif ($val =~ /^(?:0|-?[1-9][0-9]{0,8})\z/) { # safe decimal number
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   758
       $out .= $val;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   759
     }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   760
-    else {				 # string
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   761
+    else {                 # string
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   762
       if ($s->{useqq} or $val =~ tr/\0-\377//c) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   763
         # Fall back to qq if there's Unicode
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   764
-	$out .= qquote($val, $s->{useqq});
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   765
+        $out .= qquote($val, $s->{useqq});
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   766
       }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   767
       else {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   768
         $out .= _quote($val);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   769
@@ -580,7 +587,7 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   770
   }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   771
   return $out;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   772
 }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   773
-  
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   774
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   775
 #
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   776
 # non-OO style of earlier version
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   777
 #
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   778
@@ -593,12 +600,8 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   779
   return Data::Dumper->Dumpxs([@_], []);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   780
 }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   781
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   782
-sub Dumpf { return Data::Dumper->Dump(@_) }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   783
-
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   784
-sub Dumpp { print Data::Dumper->Dump(@_) }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   785
-
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   786
 #
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   787
-# reset the "seen" cache 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   788
+# reset the "seen" cache
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   789
 #
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   790
 sub Reset {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   791
   my($s) = shift;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   792
@@ -685,6 +688,11 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   793
   defined($v) ? (($s->{'maxdepth'} = $v), return $s) : $s->{'maxdepth'};
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   794
 }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   795
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   796
+sub Maxrecurse {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   797
+  my($s, $v) = @_;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   798
+  defined($v) ? (($s->{'maxrecurse'} = $v), return $s) : $s->{'maxrecurse'};
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   799
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   800
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   801
 sub Useperl {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   802
   my($s, $v) = @_;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   803
   defined($v) ? (($s->{'useperl'} = $v), return $s) : $s->{'useperl'};
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   804
@@ -700,8 +708,13 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   805
   defined($v) ? (($s->{'deparse'} = $v), return $s) : $s->{'deparse'};
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   806
 }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   807
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   808
+sub Sparseseen {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   809
+  my($s, $v) = @_;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   810
+  defined($v) ? (($s->{'noseen'} = $v), return $s) : $s->{'noseen'};
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   811
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   812
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   813
 # used by qquote below
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   814
-my %esc = (  
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   815
+my %esc = (
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   816
     "\a" => "\\a",
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   817
     "\b" => "\\b",
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   818
     "\t" => "\\t",
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   819
@@ -716,8 +729,8 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   820
   local($_) = shift;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   821
   s/([\\\"\@\$])/\\$1/g;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   822
   my $bytes; { use bytes; $bytes = length }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   823
-  s/([^\x00-\x7f])/'\x{'.sprintf("%x",ord($1)).'}'/ge if $bytes > length;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   824
-  return qq("$_") unless 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   825
+  s/([[:^ascii:]])/'\x{'.sprintf("%x",ord($1)).'}'/ge if $bytes > length;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   826
+  return qq("$_") unless
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   827
     /[^ !"\#\$%&'()*+,\-.\/0-9:;<=>?\@A-Z[\\\]^_`a-z{|}~]/;  # fast exit
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   828
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   829
   my $high = shift || "";
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   830
@@ -754,6 +767,45 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   831
 # access to sortsv() from XS
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   832
 sub _sortkeys { [ sort keys %{$_[0]} ] }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   833
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   834
+sub _refine_name {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   835
+    my $s = shift;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   836
+    my ($name, $val, $i) = @_;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   837
+    if (defined $name) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   838
+      if ($name =~ /^[*](.*)$/) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   839
+        if (defined $val) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   840
+            $name = (ref $val eq 'ARRAY') ? ( "\@" . $1 ) :
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   841
+              (ref $val eq 'HASH')  ? ( "\%" . $1 ) :
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   842
+              (ref $val eq 'CODE')  ? ( "\*" . $1 ) :
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   843
+              ( "\$" . $1 ) ;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   844
+        }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   845
+        else {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   846
+          $name = "\$" . $1;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   847
+        }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   848
+      }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   849
+      elsif ($name !~ /^\$/) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   850
+        $name = "\$" . $name;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   851
+      }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   852
+    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   853
+    else { # no names provided
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   854
+      $name = "\$" . $s->{varname} . $i;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   855
+    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   856
+    return $name;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   857
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   858
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   859
+sub _compose_out {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   860
+    my $s = shift;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   861
+    my ($valstr, $postref) = @_;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   862
+    my $out = "";
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   863
+    $out .= $s->{pad} . $valstr . $s->{sep};
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   864
+    if (@{$postref}) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   865
+        $out .= $s->{pad} .
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   866
+            join(';' . $s->{sep} . $s->{pad}, @{$postref}) .
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   867
+            ';' .
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   868
+            $s->{sep};
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   869
+    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   870
+    return $out;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   871
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   872
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   873
 1;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   874
 __END__
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   875
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   876
@@ -794,7 +846,8 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   877
 structures correctly.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   878
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   879
 The return value can be C<eval>ed to get back an identical copy of the
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   880
-original reference structure.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   881
+original reference structure.  (Please do consider the security implications
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   882
+of eval'ing code from untrusted sources!)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   883
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   884
 Any references that are the same as one of those passed in will be named
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   885
 C<$VAR>I<n> (where I<n> is a numeric suffix), and other duplicate references
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   886
@@ -812,7 +865,7 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   887
 you need to ensure that any variables it accesses are previously declared.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   888
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   889
 In the extended usage form, the references to be dumped can be given
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   890
-user-specified names.  If a name begins with a C<*>, the output will 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   891
+user-specified names.  If a name begins with a C<*>, the output will
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   892
 describe the dereferenced type of the supplied reference for hashes and
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   893
 arrays, and coderefs.  Output of names will be avoided where possible if
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   894
 the C<Terse> flag is set.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   895
@@ -822,7 +875,7 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   896
 chained together.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   897
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   898
 Several styles of output are possible, all controlled by setting
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   899
-the C<Indent> flag.  See L<Configuration Variables or Methods> below 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   900
+the C<Indent> flag.  See L<Configuration Variables or Methods> below
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   901
 for details.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   902
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   903
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   904
@@ -874,15 +927,21 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   905
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   906
 =item I<$OBJ>->Values(I<[ARRAYREF]>)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   907
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   908
-Queries or replaces the internal array of values that will be dumped.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   909
-When called without arguments, returns the values.  Otherwise, returns the
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   910
-object itself.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   911
+Queries or replaces the internal array of values that will be dumped.  When
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   912
+called without arguments, returns the values as a list.  When called with a
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   913
+reference to an array of replacement values, returns the object itself.  When
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   914
+called with any other type of argument, dies.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   915
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   916
 =item I<$OBJ>->Names(I<[ARRAYREF]>)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   917
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   918
 Queries or replaces the internal array of user supplied names for the values
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   919
-that will be dumped.  When called without arguments, returns the names.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   920
-Otherwise, returns the object itself.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   921
+that will be dumped.  When called without arguments, returns the names.  When
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   922
+called with an array of replacement names, returns the object itself.  If the
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   923
+number of replacement names exceeds the number of values to be named, the
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   924
+excess names will not be used.  If the number of replacement names falls short
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   925
+of the number of values to be named, the list of replacement names will be
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   926
+exhausted and remaining values will not be renamed.  When
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   927
+called with any other type of argument, dies.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   928
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   929
 =item I<$OBJ>->Reset
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   930
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   931
@@ -909,7 +968,7 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   932
 Several configuration variables can be used to control the kind of output
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   933
 generated when using the procedural interface.  These variables are usually
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   934
 C<local>ized in a block so that other parts of the code are not affected by
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   935
-the change.  
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   936
+the change.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   937
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   938
 These variables determine the default state of the object created by calling
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   939
 the C<new> method, but cannot be used to alter the state of the object
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   940
@@ -1022,7 +1081,7 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   941
 $Data::Dumper::Quotekeys  I<or>  $I<OBJ>->Quotekeys(I<[NEWVAL]>)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   942
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   943
 Can be set to a boolean value to control whether hash keys are quoted.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   944
-A false value will avoid quoting hash keys when it looks like a simple
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   945
+A defined false value will avoid quoting hash keys when it looks like a simple
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   946
 string.  Default is 1, which will always enclose hash keys in quotes.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   947
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   948
 =item *
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   949
@@ -1054,8 +1113,18 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   950
 Can be set to a positive integer that specifies the depth beyond which
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   951
 we don't venture into a structure.  Has no effect when
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   952
 C<Data::Dumper::Purity> is set.  (Useful in debugger when we often don't
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   953
-want to see more than enough).  Default is 0, which means there is 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   954
-no maximum depth. 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   955
+want to see more than enough).  Default is 0, which means there is
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   956
+no maximum depth.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   957
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   958
+=item *
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   959
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   960
+$Data::Dumper::Maxrecurse  I<or>  $I<OBJ>->Maxrecurse(I<[NEWVAL]>)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   961
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   962
+Can be set to a positive integer that specifies the depth beyond which
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   963
+recursion into a structure will throw an exception.  This is intended
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   964
+as a security measure to prevent perl running out of stack space when
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   965
+dumping an excessively deep structure.  Can be set to 0 to remove the
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   966
+limit.  Default is 1000.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   967
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   968
 =item *
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   969
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   970
@@ -1099,6 +1168,26 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   971
 Caution : use this option only if you know that your coderefs will be
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   972
 properly reconstructed by C<B::Deparse>.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   973
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   974
+=item *
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   975
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   976
+$Data::Dumper::Sparseseen I<or>  $I<OBJ>->Sparseseen(I<[NEWVAL]>)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   977
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   978
+By default, Data::Dumper builds up the "seen" hash of scalars that
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   979
+it has encountered during serialization. This is very expensive.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   980
+This seen hash is necessary to support and even just detect circular
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   981
+references. It is exposed to the user via the C<Seen()> call both
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   982
+for writing and reading.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   983
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   984
+If you, as a user, do not need explicit access to the "seen" hash,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   985
+then you can set the C<Sparseseen> option to allow Data::Dumper
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   986
+to eschew building the "seen" hash for scalars that are known not
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   987
+to possess more than one reference. This speeds up serialization
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   988
+considerably if you use the XS implementation.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   989
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   990
+Note: If you turn on C<Sparseseen>, then you must not rely on the
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   991
+content of the seen hash since its contents will be an
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   992
+implementation detail!
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   993
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   994
 =back
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   995
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   996
 =head2 Exports
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   997
@@ -1130,7 +1219,7 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   998
     $foo = Foo->new;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   999
     $fuz = Fuz->new;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1000
     $boo = [ 1, [], "abcd", \*foo,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1001
-             {1 => 'a', 023 => 'b', 0x45 => 'c'}, 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1002
+             {1 => 'a', 023 => 'b', 0x45 => 'c'},
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1003
              \\"p\q\'r", $foo, $fuz];
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1004
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1005
     ########
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1006
@@ -1220,20 +1309,20 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1007
     sub new { bless { state => 'awake' }, shift }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1008
     sub Freeze {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1009
         my $s = shift;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1010
-	print STDERR "preparing to sleep\n";
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1011
-	$s->{state} = 'asleep';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1012
-	return bless $s, 'Foo::ZZZ';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1013
+        print STDERR "preparing to sleep\n";
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1014
+        $s->{state} = 'asleep';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1015
+        return bless $s, 'Foo::ZZZ';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1016
     }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1017
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1018
     package Foo::ZZZ;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1019
     sub Thaw {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1020
         my $s = shift;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1021
-	print STDERR "waking up\n";
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1022
-	$s->{state} = 'awake';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1023
-	return bless $s, 'Foo';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1024
+        print STDERR "waking up\n";
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1025
+        $s->{state} = 'awake';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1026
+        return bless $s, 'Foo';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1027
     }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1028
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1029
-    package Foo;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1030
+    package main;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1031
     use Data::Dumper;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1032
     $a = Foo->new;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1033
     $b = Data::Dumper->new([$a], ['c']);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1034
@@ -1326,13 +1415,13 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1035
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1036
 Gurusamy Sarathy        [email protected]
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1037
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1038
-Copyright (c) 1996-98 Gurusamy Sarathy. All rights reserved.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1039
+Copyright (c) 1996-2014 Gurusamy Sarathy. All rights reserved.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1040
 This program is free software; you can redistribute it and/or
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1041
 modify it under the same terms as Perl itself.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1042
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1043
 =head1 VERSION
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1044
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1045
-Version 2.135_06  (March 20 2012)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1046
+Version 2.154  (September 18 2014)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1047
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1048
 =head1 SEE ALSO
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1049
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1050
diff -ur --new-file perl-5.16.3/dist/Data-Dumper/Dumper.xs perl-5.16.3/dist/Data-Dumper/Dumper.xs
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1051
--- perl-5.16.3/dist/Data-Dumper/Dumper.xs	2014-09-29 13:45:01.130570061 -0400
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1052
+++ perl-5.16.3/dist/Data-Dumper/Dumper.xs	2014-09-29 13:47:39.522361629 -0400
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1053
@@ -12,22 +12,32 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1054
 #  define DD_USE_OLD_ID_FORMAT
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1055
 #endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1056
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1057
+#ifndef isWORDCHAR
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1058
+#   define isWORDCHAR(c) isALNUM(c)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1059
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1060
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1061
 static I32 num_q (const char *s, STRLEN slen);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1062
 static I32 esc_q (char *dest, const char *src, STRLEN slen);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1063
-static I32 esc_q_utf8 (pTHX_ SV *sv, const char *src, STRLEN slen);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1064
-static I32 needs_quote(register const char *s, STRLEN len);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1065
+static I32 esc_q_utf8 (pTHX_ SV *sv, const char *src, STRLEN slen, I32 do_utf8, I32 useqq);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1066
+static bool globname_needs_quote(const char *s, STRLEN len);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1067
+static bool key_needs_quote(const char *s, STRLEN len);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1068
+static bool safe_decimal_number(const char *p, STRLEN len);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1069
 static SV *sv_x (pTHX_ SV *sv, const char *str, STRLEN len, I32 n);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1070
 static I32 DD_dump (pTHX_ SV *val, const char *name, STRLEN namelen, SV *retval,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1071
 		    HV *seenhv, AV *postav, I32 *levelp, I32 indent,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1072
 		    SV *pad, SV *xpad, SV *apad, SV *sep, SV *pair,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1073
 		    SV *freezer, SV *toaster,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1074
 		    I32 purity, I32 deepcopy, I32 quotekeys, SV *bless,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1075
-		    I32 maxdepth, SV *sortkeys);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1076
+		    I32 maxdepth, SV *sortkeys, int use_sparse_seen_hash, I32 useqq, IV maxrecurse);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1077
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1078
 #ifndef HvNAME_get
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1079
 #define HvNAME_get HvNAME
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1080
 #endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1081
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1082
+/* Perls 7 through portions of 15 used utf8_to_uvchr() which didn't have a
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1083
+ * length parameter.  This wrongly allowed reading beyond the end of buffer
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1084
+ * given malformed input */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1085
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1086
 #if PERL_VERSION <= 6 /* Perl 5.6 and earlier */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1087
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1088
 # ifdef EBCDIC
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1089
@@ -47,11 +57,33 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1090
 # if !defined(PERL_IMPLICIT_CONTEXT)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1091
 #  define utf8_to_uvchr_buf	     Perl_utf8_to_uvchr_buf
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1092
 # else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1093
-#  define utf8_to_uvchr_buf(a,b) Perl_utf8_to_uvchr_buf(aTHX_ a,b)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1094
+#  define utf8_to_uvchr_buf(a,b,c) Perl_utf8_to_uvchr_buf(aTHX_ a,b,c)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1095
 # endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1096
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1097
 #endif /* PERL_VERSION <= 6 */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1098
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1099
+/* Perl 5.7 through part of 5.15 */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1100
+#if PERL_VERSION > 6 && PERL_VERSION <= 15 && ! defined(utf8_to_uvchr_buf)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1101
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1102
+UV
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1103
+Perl_utf8_to_uvchr_buf(pTHX_ U8 *s, U8 *send, STRLEN *retlen)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1104
+{
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1105
+    /* We have to discard <send> for these versions; hence can read off the
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1106
+     * end of the buffer if there is a malformation that indicates the
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1107
+     * character is longer than the space available */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1108
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1109
+    const UV uv = utf8_to_uvchr(s, retlen);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1110
+    return UNI_TO_NATIVE(uv);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1111
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1112
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1113
+# if !defined(PERL_IMPLICIT_CONTEXT)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1114
+#  define utf8_to_uvchr_buf	     Perl_utf8_to_uvchr_buf
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1115
+# else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1116
+#  define utf8_to_uvchr_buf(a,b,c) Perl_utf8_to_uvchr_buf(aTHX_ a,b,c)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1117
+# endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1118
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1119
+#endif /* PERL_VERSION > 6 && <= 15 */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1120
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1121
 /* Changes in 5.7 series mean that now IOK is only set if scalar is
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1122
    precisely integer but in 5.6 and earlier we need to do a more
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1123
    complex test  */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1124
@@ -61,39 +93,95 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1125
 #define DD_is_integer(sv) SvIOK(sv)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1126
 #endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1127
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1128
-/* does a string need to be protected? */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1129
-static I32
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1130
-needs_quote(register const char *s, STRLEN len)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1131
+/* does a glob name need to be protected? */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1132
+static bool
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1133
+globname_needs_quote(const char *s, STRLEN len)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1134
 {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1135
     const char *send = s+len;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1136
 TOP:
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1137
     if (s[0] == ':') {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1138
 	if (++s<send) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1139
 	    if (*s++ != ':')
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1140
-		return 1;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1141
+                return TRUE;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1142
 	}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1143
 	else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1144
-	    return 1;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1145
+	    return TRUE;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1146
     }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1147
     if (isIDFIRST(*s)) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1148
 	while (++s<send)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1149
-	    if (!isALNUM(*s)) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1150
+	    if (!isWORDCHAR(*s)) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1151
 		if (*s == ':')
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1152
 		    goto TOP;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1153
 		else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1154
-		    return 1;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1155
+                    return TRUE;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1156
 	    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1157
     }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1158
     else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1159
-	return 1;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1160
-    return 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1161
+        return TRUE;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1162
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1163
+    return FALSE;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1164
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1165
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1166
+/* does a hash key need to be quoted (to the left of => ).
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1167
+   Previously this used (globname_)needs_quote() which accepted strings
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1168
+   like '::foo', but these aren't safe as unquoted keys under strict.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1169
+*/
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1170
+static bool
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1171
+key_needs_quote(const char *s, STRLEN len) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1172
+    const char *send = s+len;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1173
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1174
+    if (safe_decimal_number(s, len)) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1175
+        return FALSE;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1176
+    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1177
+    else if (isIDFIRST(*s)) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1178
+        while (++s<send)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1179
+            if (!isWORDCHAR(*s))
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1180
+                return TRUE;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1181
+    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1182
+    else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1183
+        return TRUE;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1184
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1185
+    return FALSE;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1186
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1187
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1188
+/* Check that the SV can be represented as a simple decimal integer.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1189
+ *
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1190
+ * The perl code does this by matching against /^(?:0|-?[1-9]\d{0,8})\z/
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1191
+*/
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1192
+static bool
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1193
+safe_decimal_number(const char *p, STRLEN len) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1194
+    if (len == 1 && *p == '0')
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1195
+        return TRUE;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1196
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1197
+    if (len && *p == '-') {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1198
+        ++p;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1199
+        --len;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1200
+    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1201
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1202
+    if (len == 0 || *p < '1' || *p > '9')
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1203
+        return FALSE;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1204
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1205
+    ++p;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1206
+    --len;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1207
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1208
+    if (len > 8)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1209
+        return FALSE;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1210
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1211
+    while (len > 0) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1212
+         /* the perl code checks /\d/ but we don't want unicode digits here */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1213
+         if (*p < '0' || *p > '9')
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1214
+             return FALSE;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1215
+         ++p;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1216
+         --len;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1217
+    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1218
+    return TRUE;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1219
 }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1220
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1221
 /* count the number of "'"s and "\"s in string */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1222
 static I32
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1223
-num_q(register const char *s, register STRLEN slen)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1224
+num_q(const char *s, STRLEN slen)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1225
 {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1226
-    register I32 ret = 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1227
+    I32 ret = 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1228
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1229
     while (slen > 0) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1230
 	if (*s == '\'' || *s == '\\')
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1231
@@ -109,9 +197,9 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1232
 /* slen number of characters in s will be escaped */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1233
 /* destination must be long enough for additional chars */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1234
 static I32
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1235
-esc_q(register char *d, register const char *s, register STRLEN slen)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1236
+esc_q(char *d, const char *s, STRLEN slen)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1237
 {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1238
-    register I32 ret = 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1239
+    I32 ret = 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1240
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1241
     while (slen > 0) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1242
 	switch (*s) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1243
@@ -119,6 +207,7 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1244
 	case '\\':
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1245
 	    *d = '\\';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1246
 	    ++d; ++ret;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1247
+            /* FALLTHROUGH */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1248
 	default:
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1249
 	    *d = *s;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1250
 	    ++d; ++s; --slen;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1251
@@ -128,8 +217,9 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1252
     return ret;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1253
 }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1254
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1255
+/* this function is also misused for implementing $Useqq */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1256
 static I32
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1257
-esc_q_utf8(pTHX_ SV* sv, register const char *src, register STRLEN slen)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1258
+esc_q_utf8(pTHX_ SV* sv, const char *src, STRLEN slen, I32 do_utf8, I32 useqq)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1259
 {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1260
     char *r, *rstart;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1261
     const char *s = src;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1262
@@ -144,14 +234,21 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1263
     STRLEN qq_escapables = 0;	/* " $ @ will need a \ in "" strings.  */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1264
     STRLEN normal = 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1265
     int increment;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1266
+    UV next;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1267
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1268
     /* this will need EBCDICification */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1269
-    for (s = src; s < send; s += increment) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1270
-        const UV k = utf8_to_uvchr_buf((U8*)s, (U8*) send, NULL);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1271
+    for (s = src; s < send; do_utf8 ? s += increment : s++) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1272
+        const UV k = do_utf8 ? utf8_to_uvchr_buf((U8*)s, (U8*) send, NULL) : *(U8*)s;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1273
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1274
         /* check for invalid utf8 */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1275
         increment = (k == 0 && *s != '\0') ? 1 : UTF8SKIP(s);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1276
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1277
+	/* this is only used to check if the next character is an
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1278
+	 * ASCII digit, which are invariant, so if the following collects
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1279
+	 * a UTF-8 start byte it does no harm
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1280
+	 */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1281
+	next = (s + increment >= send ) ? 0 : *(U8*)(s+increment);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1282
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1283
 #ifdef EBCDIC
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1284
 	if (!isprint(k) || k > 256) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1285
 #else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1286
@@ -165,6 +262,17 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1287
                 k <= 0xFFFFFFFF ? 8 : UVSIZE * 4
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1288
 #endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1289
                 );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1290
+#ifndef EBCDIC
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1291
+	} else if (useqq &&
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1292
+	    /* we can't use the short form like '\0' if followed by a digit */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1293
+                   (((k >= 7 && k <= 10) || k == 12 || k == 13 || k == 27)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1294
+                 || (k < 8 && (next < '0' || next > '9')))) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1295
+	    grow += 2;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1296
+	} else if (useqq && k <= 31 && (next < '0' || next > '9')) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1297
+	    grow += 3;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1298
+	} else if (useqq && (k <= 31 || k >= 127)) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1299
+	    grow += 4;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1300
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1301
         } else if (k == '\\') {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1302
             backslashes++;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1303
         } else if (k == '\'') {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1304
@@ -175,7 +283,7 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1305
             normal++;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1306
         }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1307
     }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1308
-    if (grow) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1309
+    if (grow || useqq) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1310
         /* We have something needing hex. 3 is ""\0 */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1311
         sv_grow(sv, cur + 3 + grow + 2*backslashes + single_quotes
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1312
 		+ 2*qq_escapables + normal);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1313
@@ -183,8 +291,8 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1314
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1315
         *r++ = '"';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1316
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1317
-        for (s = src; s < send; s += UTF8SKIP(s)) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1318
-            const UV k = utf8_to_uvchr_buf((U8*)s, (U8*) send, NULL);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1319
+        for (s = src; s < send; do_utf8 ? s += UTF8SKIP(s) : s++) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1320
+            const UV k = do_utf8 ? utf8_to_uvchr_buf((U8*)s, (U8*) send, NULL) : *(U8*)s;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1321
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1322
             if (k == '"' || k == '\\' || k == '$' || k == '@') {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1323
                 *r++ = '\\';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1324
@@ -194,7 +302,44 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1325
 #ifdef EBCDIC
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1326
 	      if (isprint(k) && k < 256)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1327
 #else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1328
-	      if (k < 0x80)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1329
+	      if (useqq && (k <= 31 || k == 127 || (!do_utf8 && k > 127))) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1330
+	        bool next_is_digit;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1331
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1332
+		*r++ = '\\';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1333
+		switch (k) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1334
+		case 7:  *r++ = 'a'; break;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1335
+		case 8:  *r++ = 'b'; break;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1336
+		case 9:  *r++ = 't'; break;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1337
+		case 10: *r++ = 'n'; break;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1338
+		case 12: *r++ = 'f'; break;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1339
+		case 13: *r++ = 'r'; break;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1340
+		case 27: *r++ = 'e'; break;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1341
+		default:
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1342
+		    increment = (k == 0 && *s != '\0') ? 1 : UTF8SKIP(s);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1343
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1344
+		    /* only ASCII digits matter here, which are invariant,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1345
+		     * since we only encode characters \377 and under, or
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1346
+		     * \x177 and under for a unicode string
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1347
+		     */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1348
+		    next = (s+increment < send) ? *(U8*)(s+increment) : 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1349
+		    next_is_digit = next >= '0' && next <= '9';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1350
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1351
+		    /* faster than
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1352
+		     * r = r + my_sprintf(r, "%o", k);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1353
+		     */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1354
+		    if (k <= 7 && !next_is_digit) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1355
+			*r++ = (char)k + '0';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1356
+		    } else if (k <= 63 && !next_is_digit) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1357
+			*r++ = (char)(k>>3) + '0';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1358
+			*r++ = (char)(k&7) + '0';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1359
+		    } else {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1360
+			*r++ = (char)(k>>6) + '0';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1361
+			*r++ = (char)((k&63)>>3) + '0';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1362
+			*r++ = (char)(k&7) + '0';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1363
+		    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1364
+		}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1365
+	    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1366
+	    else if (k < 0x80)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1367
 #endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1368
                 *r++ = (char)k;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1369
             else {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1370
@@ -234,7 +379,7 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1371
 sv_x(pTHX_ SV *sv, const char *str, STRLEN len, I32 n)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1372
 {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1373
     if (!sv)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1374
-	sv = newSVpvn("", 0);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1375
+	sv = newSVpvs("");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1376
 #ifdef DEBUGGING
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1377
     else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1378
 	assert(SvTYPE(sv) >= SVt_PV);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1379
@@ -267,10 +412,11 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1380
 DD_dump(pTHX_ SV *val, const char *name, STRLEN namelen, SV *retval, HV *seenhv,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1381
 	AV *postav, I32 *levelp, I32 indent, SV *pad, SV *xpad,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1382
 	SV *apad, SV *sep, SV *pair, SV *freezer, SV *toaster, I32 purity,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1383
-	I32 deepcopy, I32 quotekeys, SV *bless, I32 maxdepth, SV *sortkeys)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1384
+	I32 deepcopy, I32 quotekeys, SV *bless, I32 maxdepth, SV *sortkeys,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1385
+        int use_sparse_seen_hash, I32 useqq, IV maxrecurse)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1386
 {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1387
     char tmpbuf[128];
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1388
-    U32 i;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1389
+    Size_t i;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1390
     char *c, *r, *realpack;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1391
 #ifdef DD_USE_OLD_ID_FORMAT
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1392
     char id[128];
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1393
@@ -317,7 +463,7 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1394
 	{
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1395
 	    dSP; ENTER; SAVETMPS; PUSHMARK(sp);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1396
 	    XPUSHs(val); PUTBACK;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1397
-	    i = perl_call_method(SvPVX_const(freezer), G_EVAL|G_VOID);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1398
+	    i = perl_call_method(SvPVX_const(freezer), G_EVAL|G_VOID|G_DISCARD);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1399
 	    SPAGAIN;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1400
 	    if (SvTRUE(ERRSV))
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1401
 		warn("WARNING(Freezer method call failed): %"SVf"", ERRSV);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1402
@@ -352,13 +498,13 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1403
 			SV *postentry;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1404
 			
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1405
 			if (realtype == SVt_PVHV)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1406
-			    sv_catpvn(retval, "{}", 2);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1407
+			    sv_catpvs(retval, "{}");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1408
 			else if (realtype == SVt_PVAV)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1409
-			    sv_catpvn(retval, "[]", 2);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1410
+			    sv_catpvs(retval, "[]");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1411
 			else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1412
-			    sv_catpvn(retval, "do{my $o}", 9);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1413
+			    sv_catpvs(retval, "do{my $o}");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1414
 			postentry = newSVpvn(name, namelen);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1415
-			sv_catpvn(postentry, " = ", 3);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1416
+			sv_catpvs(postentry, " = ");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1417
 			sv_catsv(postentry, othername);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1418
 			av_push(postav, postentry);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1419
 		    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1420
@@ -371,9 +517,9 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1421
 			    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1422
 			    else {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1423
 				sv_catpvn(retval, name, 1);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1424
-				sv_catpvn(retval, "{", 1);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1425
+				sv_catpvs(retval, "{");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1426
 				sv_catsv(retval, othername);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1427
-				sv_catpvn(retval, "}", 1);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1428
+				sv_catpvs(retval, "}");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1429
 			    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1430
 			}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1431
 			else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1432
@@ -393,11 +539,11 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1433
 	    else {   /* store our name and continue */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1434
 		SV *namesv;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1435
 		if (name[0] == '@' || name[0] == '%') {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1436
-		    namesv = newSVpvn("\\", 1);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1437
+		    namesv = newSVpvs("\\");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1438
 		    sv_catpvn(namesv, name, namelen);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1439
 		}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1440
 		else if (realtype == SVt_PVCV && name[0] == '*') {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1441
-		    namesv = newSVpvn("\\", 2);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1442
+		    namesv = newSVpvs("\\");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1443
 		    sv_catpvn(namesv, name, namelen);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1444
 		    (SvPVX(namesv))[1] = '&';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1445
 		}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1446
@@ -438,17 +584,21 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1447
 	if (!purity && maxdepth > 0 && *levelp >= maxdepth) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1448
 	    STRLEN vallen;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1449
 	    const char * const valstr = SvPV(val,vallen);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1450
-	    sv_catpvn(retval, "'", 1);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1451
+	    sv_catpvs(retval, "'");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1452
 	    sv_catpvn(retval, valstr, vallen);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1453
-	    sv_catpvn(retval, "'", 1);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1454
+	    sv_catpvs(retval, "'");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1455
 	    return 1;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1456
 	}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1457
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1458
+	if (maxrecurse > 0 && *levelp >= maxrecurse) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1459
+	    croak("Recursion limit of %" IVdf " exceeded", maxrecurse);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1460
+	}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1461
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1462
 	if (realpack && !no_bless) {				/* we have a blessed ref */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1463
 	    STRLEN blesslen;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1464
 	    const char * const blessstr = SvPV(bless, blesslen);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1465
 	    sv_catpvn(retval, blessstr, blesslen);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1466
-	    sv_catpvn(retval, "( ", 2);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1467
+	    sv_catpvs(retval, "( ");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1468
 	    if (indent >= 2) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1469
 		blesspad = apad;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1470
 		apad = newSVsv(apad);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1471
@@ -462,21 +612,58 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1472
         if (is_regex) 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1473
         {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1474
             STRLEN rlen;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1475
-	    const char *rval = SvPV(val, rlen);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1476
-	    const char * const rend = rval+rlen;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1477
-	    const char *slash = rval;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1478
-	    sv_catpvn(retval, "qr/", 3);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1479
+	    SV *sv_pattern = NULL;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1480
+	    SV *sv_flags = NULL;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1481
+	    CV *re_pattern_cv;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1482
+	    const char *rval;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1483
+	    const char *rend;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1484
+	    const char *slash;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1485
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1486
+	    if ((re_pattern_cv = get_cv("re::regexp_pattern", 0))) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1487
+	      dSP;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1488
+	      I32 count;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1489
+	      ENTER;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1490
+	      SAVETMPS;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1491
+	      PUSHMARK(SP);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1492
+	      XPUSHs(val);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1493
+	      PUTBACK;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1494
+	      count = call_sv((SV*)re_pattern_cv, G_ARRAY);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1495
+	      SPAGAIN;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1496
+	      if (count >= 2) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1497
+		sv_flags = POPs;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1498
+	        sv_pattern = POPs;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1499
+		SvREFCNT_inc(sv_flags);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1500
+		SvREFCNT_inc(sv_pattern);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1501
+	      }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1502
+	      PUTBACK;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1503
+	      FREETMPS;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1504
+	      LEAVE;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1505
+	      if (sv_pattern) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1506
+	        sv_2mortal(sv_pattern);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1507
+	        sv_2mortal(sv_flags);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1508
+	      }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1509
+	    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1510
+	    else {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1511
+	      sv_pattern = val;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1512
+	    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1513
+	    assert(sv_pattern);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1514
+	    rval = SvPV(sv_pattern, rlen);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1515
+	    rend = rval+rlen;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1516
+	    slash = rval;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1517
+	    sv_catpvs(retval, "qr/");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1518
 	    for (;slash < rend; slash++) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1519
 	      if (*slash == '\\') { ++slash; continue; }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1520
 	      if (*slash == '/') {    
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1521
 		sv_catpvn(retval, rval, slash-rval);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1522
-		sv_catpvn(retval, "\\/", 2);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1523
+		sv_catpvs(retval, "\\/");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1524
 		rlen -= slash-rval+1;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1525
 		rval = slash+1;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1526
 	      }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1527
 	    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1528
 	    sv_catpvn(retval, rval, rlen);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1529
-	    sv_catpvn(retval, "/", 1);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1530
+	    sv_catpvs(retval, "/");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1531
+	    if (sv_flags)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1532
+	      sv_catsv(retval, sv_flags);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1533
 	} 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1534
         else if (
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1535
 #if PERL_VERSION < 9
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1536
@@ -485,41 +672,44 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1537
 		realtype <= SVt_PVMG
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1538
 #endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1539
 	) {			     /* scalar ref */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1540
-	    SV * const namesv = newSVpvn("${", 2);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1541
+	    SV * const namesv = newSVpvs("${");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1542
 	    sv_catpvn(namesv, name, namelen);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1543
-	    sv_catpvn(namesv, "}", 1);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1544
+	    sv_catpvs(namesv, "}");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1545
 	    if (realpack) {				     /* blessed */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1546
-		sv_catpvn(retval, "do{\\(my $o = ", 13);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1547
+		sv_catpvs(retval, "do{\\(my $o = ");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1548
 		DD_dump(aTHX_ ival, SvPVX_const(namesv), SvCUR(namesv), retval, seenhv,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1549
 			postav, levelp,	indent, pad, xpad, apad, sep, pair,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1550
 			freezer, toaster, purity, deepcopy, quotekeys, bless,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1551
-			maxdepth, sortkeys);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1552
-		sv_catpvn(retval, ")}", 2);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1553
+			maxdepth, sortkeys, use_sparse_seen_hash, useqq,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1554
+			maxrecurse);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1555
+		sv_catpvs(retval, ")}");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1556
 	    }						     /* plain */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1557
 	    else {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1558
-		sv_catpvn(retval, "\\", 1);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1559
+		sv_catpvs(retval, "\\");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1560
 		DD_dump(aTHX_ ival, SvPVX_const(namesv), SvCUR(namesv), retval, seenhv,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1561
 			postav, levelp,	indent, pad, xpad, apad, sep, pair,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1562
 			freezer, toaster, purity, deepcopy, quotekeys, bless,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1563
-			maxdepth, sortkeys);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1564
+			maxdepth, sortkeys, use_sparse_seen_hash, useqq,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1565
+			maxrecurse);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1566
 	    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1567
 	    SvREFCNT_dec(namesv);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1568
 	}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1569
 	else if (realtype == SVt_PVGV) {		     /* glob ref */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1570
-	    SV * const namesv = newSVpvn("*{", 2);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1571
+	    SV * const namesv = newSVpvs("*{");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1572
 	    sv_catpvn(namesv, name, namelen);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1573
-	    sv_catpvn(namesv, "}", 1);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1574
-	    sv_catpvn(retval, "\\", 1);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1575
+	    sv_catpvs(namesv, "}");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1576
+	    sv_catpvs(retval, "\\");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1577
 	    DD_dump(aTHX_ ival, SvPVX_const(namesv), SvCUR(namesv), retval, seenhv,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1578
 		    postav, levelp,	indent, pad, xpad, apad, sep, pair,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1579
 		    freezer, toaster, purity, deepcopy, quotekeys, bless,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1580
-		    maxdepth, sortkeys);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1581
+		    maxdepth, sortkeys, use_sparse_seen_hash, useqq,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1582
+		    maxrecurse);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1583
 	    SvREFCNT_dec(namesv);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1584
 	}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1585
 	else if (realtype == SVt_PVAV) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1586
 	    SV *totpad;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1587
-	    I32 ix = 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1588
-	    const I32 ixmax = av_len((AV *)ival);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1589
+	    SSize_t ix = 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1590
+	    const SSize_t ixmax = av_len((AV *)ival);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1591
 	
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1592
 	    SV * const ixsv = newSViv(0);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1593
 	    /* allowing for a 24 char wide array index */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1594
@@ -527,11 +717,11 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1595
 	    (void)strcpy(iname, name);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1596
 	    inamelen = namelen;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1597
 	    if (name[0] == '@') {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1598
-		sv_catpvn(retval, "(", 1);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1599
+		sv_catpvs(retval, "(");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1600
 		iname[0] = '$';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1601
 	    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1602
 	    else {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1603
-		sv_catpvn(retval, "[", 1);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1604
+		sv_catpvs(retval, "[");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1605
 		/* omit "->" in $foo{bar}->[0], but not in ${$foo}->[0] */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1606
 		/*if (namelen > 0
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1607
 		    && name[namelen-1] != ']' && name[namelen-1] != '}'
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1608
@@ -578,7 +768,7 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1609
 		if (indent >= 3) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1610
 		    sv_catsv(retval, totpad);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1611
 		    sv_catsv(retval, ipad);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1612
-		    sv_catpvn(retval, "#", 1);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1613
+		    sv_catpvs(retval, "#");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1614
 		    sv_catsv(retval, ixsv);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1615
 		}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1616
 		sv_catsv(retval, totpad);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1617
@@ -586,9 +776,10 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1618
 		DD_dump(aTHX_ elem, iname, ilen, retval, seenhv, postav,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1619
 			levelp,	indent, pad, xpad, apad, sep, pair,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1620
 			freezer, toaster, purity, deepcopy, quotekeys, bless,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1621
-			maxdepth, sortkeys);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1622
+			maxdepth, sortkeys, use_sparse_seen_hash,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1623
+			useqq, maxrecurse);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1624
 		if (ix < ixmax)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1625
-		    sv_catpvn(retval, ",", 1);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1626
+		    sv_catpvs(retval, ",");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1627
 	    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1628
 	    if (ixmax >= 0) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1629
 		SV * const opad = sv_x(aTHX_ Nullsv, SvPVX_const(xpad), SvCUR(xpad), (*levelp)-1);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1630
@@ -597,9 +788,9 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1631
 		SvREFCNT_dec(opad);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1632
 	    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1633
 	    if (name[0] == '@')
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1634
-		sv_catpvn(retval, ")", 1);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1635
+		sv_catpvs(retval, ")");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1636
 	    else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1637
-		sv_catpvn(retval, "]", 1);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1638
+		sv_catpvs(retval, "]");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1639
 	    SvREFCNT_dec(ixsv);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1640
 	    SvREFCNT_dec(totpad);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1641
 	    Safefree(iname);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1642
@@ -615,11 +806,11 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1643
 	
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1644
 	    SV * const iname = newSVpvn(name, namelen);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1645
 	    if (name[0] == '%') {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1646
-		sv_catpvn(retval, "(", 1);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1647
+		sv_catpvs(retval, "(");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1648
 		(SvPVX(iname))[0] = '$';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1649
 	    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1650
 	    else {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1651
-		sv_catpvn(retval, "{", 1);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1652
+		sv_catpvs(retval, "{");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1653
 		/* omit "->" in $foo[0]->{bar}, but not in ${$foo}->{bar} */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1654
 		if ((namelen > 0
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1655
 		     && name[namelen-1] != ']' && name[namelen-1] != '}')
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1656
@@ -627,16 +818,16 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1657
 		        && (name[1] == '{'
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1658
 			    || (name[0] == '\\' && name[2] == '{'))))
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1659
 		{
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1660
-		    sv_catpvn(iname, "->", 2);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1661
+		    sv_catpvs(iname, "->");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1662
 		}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1663
 	    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1664
 	    if (name[0] == '*' && name[namelen-1] == '}' && namelen >= 8 &&
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1665
 		(instr(name+namelen-8, "{SCALAR}") ||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1666
 		 instr(name+namelen-7, "{ARRAY}") ||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1667
 		 instr(name+namelen-6, "{HASH}"))) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1668
-		sv_catpvn(iname, "->", 2);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1669
+		sv_catpvs(iname, "->");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1670
 	    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1671
-	    sv_catpvn(iname, "{", 1);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1672
+	    sv_catpvs(iname, "{");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1673
 	    totpad = newSVsv(sep);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1674
 	    sv_catsv(totpad, pad);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1675
 	    sv_catsv(totpad, apad);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1676
@@ -645,7 +836,7 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1677
 	    if (sortkeys) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1678
 		if (sortkeys == &PL_sv_yes) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1679
 #if PERL_VERSION < 8
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1680
-                    sortkeys = sv_2mortal(newSVpvn("Data::Dumper::_sortkeys", 23));
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1681
+                    sortkeys = sv_2mortal(newSVpvs("Data::Dumper::_sortkeys"));
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1682
 #else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1683
 		    keys = newAV();
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1684
 		    (void)hv_iterinit((HV*)ival);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1685
@@ -654,16 +845,25 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1686
 			(void)SvREFCNT_inc(sv);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1687
 			av_push(keys, sv);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1688
 		    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1689
-# ifdef USE_LOCALE_NUMERIC
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1690
-		    sortsv(AvARRAY(keys), 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1691
-			   av_len(keys)+1, 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1692
-			   IN_LOCALE ? Perl_sv_cmp_locale : Perl_sv_cmp);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1693
-# else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1694
-		    sortsv(AvARRAY(keys), 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1695
-			   av_len(keys)+1, 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1696
-			   Perl_sv_cmp);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1697
+# ifdef USE_LOCALE_COLLATE
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1698
+#       ifdef IN_LC     /* Use this if available */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1699
+                    if (IN_LC(LC_COLLATE))
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1700
+#       else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1701
+                    if (IN_LOCALE)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1702
+#       endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1703
+                    {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1704
+                        sortsv(AvARRAY(keys),
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1705
+			   av_len(keys)+1,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1706
+                           Perl_sv_cmp_locale);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1707
+                    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1708
+                    else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1709
 # endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1710
 #endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1711
+                    {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1712
+                        sortsv(AvARRAY(keys),
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1713
+			   av_len(keys)+1,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1714
+                           Perl_sv_cmp);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1715
+                    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1716
 		}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1717
 		if (sortkeys != &PL_sv_yes) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1718
 		    dSP; ENTER; SAVETMPS; PUSHMARK(sp);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1719
@@ -696,13 +896,13 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1720
 		bool do_utf8 = FALSE;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1721
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1722
                if (sortkeys) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1723
-                   if (!(keys && (I32)i <= av_len(keys))) break;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1724
+                   if (!(keys && (SSize_t)i <= av_len(keys))) break;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1725
                } else {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1726
                    if (!(entry = hv_iternext((HV *)ival))) break;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1727
                }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1728
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1729
 		if (i)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1730
-		    sv_catpvn(retval, ",", 1);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1731
+		    sv_catpvs(retval, ",");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1732
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1733
 		if (sortkeys) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1734
 		    char *key;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1735
@@ -724,31 +924,27 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1736
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1737
                 sv_catsv(retval, totpad);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1738
                 sv_catsv(retval, ipad);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1739
-                /* old logic was first to check utf8 flag, and if utf8 always
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1740
+                /* The (very)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1741
+                   old logic was first to check utf8 flag, and if utf8 always
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1742
                    call esc_q_utf8.  This caused test to break under -Mutf8,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1743
                    because there even strings like 'c' have utf8 flag on.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1744
                    Hence with quotekeys == 0 the XS code would still '' quote
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1745
                    them based on flags, whereas the perl code would not,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1746
                    based on regexps.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1747
-                   The perl code is correct.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1748
-                   needs_quote() decides that anything that isn't a valid
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1749
-                   perl identifier needs to be quoted, hence only correctly
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1750
-                   formed strings with no characters outside [A-Za-z0-9_:]
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1751
-                   won't need quoting.  None of those characters are used in
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1752
-                   the byte encoding of utf8, so anything with utf8
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1753
-                   encoded characters in will need quoting. Hence strings
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1754
-                   with utf8 encoded characters in will end up inside do_utf8
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1755
-                   just like before, but now strings with utf8 flag set but
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1756
-                   only ascii characters will end up in the unquoted section.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1757
-
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1758
-                   There should also be less tests for the (probably currently)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1759
-                   more common doesn't need quoting case.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1760
-                   The code is also smaller (22044 vs 22260) because I've been
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1761
-                   able to pull the common logic out to both sides.  */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1762
-                if (quotekeys || needs_quote(key,keylen)) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1763
-                    if (do_utf8) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1764
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1765
+                   The old logic checked that the string was a valid
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1766
+                   perl glob name (foo::bar), which isn't safe under
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1767
+                   strict, and differs from the perl code which only
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1768
+                   accepts simple identifiers.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1769
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1770
+                   With the fix for [perl #120384] I chose to make
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1771
+                   their handling of key quoting compatible between XS
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1772
+                   and perl.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1773
+                 */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1774
+                if (quotekeys || key_needs_quote(key,keylen)) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1775
+                    if (do_utf8 || useqq) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1776
                         STRLEN ocur = SvCUR(retval);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1777
-                        nlen = esc_q_utf8(aTHX_ retval, key, klen);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1778
+                        nlen = esc_q_utf8(aTHX_ retval, key, klen, do_utf8, useqq);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1779
                         nkey = SvPVX(retval) + ocur;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1780
                     }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1781
                     else {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1782
@@ -773,7 +969,7 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1783
 		}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1784
                 sname = newSVsv(iname);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1785
                 sv_catpvn(sname, nkey, nlen);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1786
-                sv_catpvn(sname, "}", 1);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1787
+                sv_catpvs(sname, "}");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1788
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1789
 		sv_catsv(retval, pair);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1790
 		if (indent >= 2) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1791
@@ -793,7 +989,8 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1792
 		DD_dump(aTHX_ hval, SvPVX_const(sname), SvCUR(sname), retval, seenhv,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1793
 			postav, levelp,	indent, pad, xpad, newapad, sep, pair,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1794
 			freezer, toaster, purity, deepcopy, quotekeys, bless,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1795
-			maxdepth, sortkeys);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1796
+			maxdepth, sortkeys, use_sparse_seen_hash, useqq,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1797
+			maxrecurse);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1798
 		SvREFCNT_dec(sname);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1799
 		Safefree(nkey_buffer);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1800
 		if (indent >= 2)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1801
@@ -806,14 +1003,14 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1802
 		SvREFCNT_dec(opad);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1803
 	    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1804
 	    if (name[0] == '%')
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1805
-		sv_catpvn(retval, ")", 1);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1806
+		sv_catpvs(retval, ")");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1807
 	    else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1808
-		sv_catpvn(retval, "}", 1);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1809
+		sv_catpvs(retval, "}");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1810
 	    SvREFCNT_dec(iname);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1811
 	    SvREFCNT_dec(totpad);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1812
 	}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1813
 	else if (realtype == SVt_PVCV) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1814
-	    sv_catpvn(retval, "sub { \"DUMMY\" }", 15);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1815
+	    sv_catpvs(retval, "sub { \"DUMMY\" }");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1816
 	    if (purity)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1817
 		warn("Encountered CODE ref, using dummy placeholder");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1818
 	}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1819
@@ -829,7 +1026,7 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1820
 		SvREFCNT_dec(apad);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1821
 		apad = blesspad;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1822
 	    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1823
-	    sv_catpvn(retval, ", '", 3);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1824
+	    sv_catpvs(retval, ", '");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1825
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1826
 	    plen = strlen(realpack);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1827
 	    pticks = num_q(realpack, plen);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1828
@@ -848,11 +1045,11 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1829
 	    else {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1830
 	        sv_catpvn(retval, realpack, strlen(realpack));
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1831
 	    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1832
-	    sv_catpvn(retval, "' )", 3);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1833
+	    sv_catpvs(retval, "' )");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1834
 	    if (toaster && SvPOK(toaster) && SvCUR(toaster)) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1835
-		sv_catpvn(retval, "->", 2);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1836
+		sv_catpvs(retval, "->");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1837
 		sv_catsv(retval, toaster);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1838
-		sv_catpvn(retval, "()", 2);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1839
+		sv_catpvs(retval, "()");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1840
 	    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1841
 	}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1842
 	SvREFCNT_dec(ipad);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1843
@@ -877,14 +1074,21 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1844
 		if ((svp = av_fetch(seenentry, 0, FALSE)) && (othername = *svp)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1845
 		    && (svp = av_fetch(seenentry, 2, FALSE)) && *svp && SvIV(*svp) > 0)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1846
 		{
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1847
-		    sv_catpvn(retval, "${", 2);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1848
+		    sv_catpvs(retval, "${");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1849
 		    sv_catsv(retval, othername);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1850
-		    sv_catpvn(retval, "}", 1);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1851
+		    sv_catpvs(retval, "}");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1852
 		    return 1;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1853
 		}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1854
 	    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1855
-	    else if (val != &PL_sv_undef) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1856
-		SV * const namesv = newSVpvn("\\", 1);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1857
+            /* If we're allowed to keep only a sparse "seen" hash
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1858
+             * (IOW, the user does not expect it to contain everything
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1859
+             * after the dump, then only store in seen hash if the SV
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1860
+             * ref count is larger than 1. If it's 1, then we know that
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1861
+             * there is no other reference, duh. This is an optimization.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1862
+             * Note that we'd have to check for weak-refs, too, but this is
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1863
+             * already the branch for non-refs only. */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1864
+	    else if (val != &PL_sv_undef && (!use_sparse_seen_hash || SvREFCNT(val) > 1)) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1865
+		SV * const namesv = newSVpvs("\\");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1866
 		sv_catpvn(namesv, name, namelen);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1867
 		seenentry = newAV();
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1868
 		av_push(seenentry, namesv);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1869
@@ -928,14 +1132,14 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1870
 #endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1871
 		    i = 0; else i -= 4;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1872
 	    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1873
-	    if (needs_quote(c,i)) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1874
+            if (globname_needs_quote(c,i)) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1875
 #ifdef GvNAMEUTF8
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1876
 	      if (GvNAMEUTF8(val)) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1877
 		sv_grow(retval, SvCUR(retval)+2);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1878
 		r = SvPVX(retval)+SvCUR(retval);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1879
 		r[0] = '*'; r[1] = '{';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1880
 		SvCUR_set(retval, SvCUR(retval)+2);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1881
-		esc_q_utf8(aTHX_ retval, c, i);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1882
+		esc_q_utf8(aTHX_ retval, c, i, 1, useqq);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1883
 		sv_grow(retval, SvCUR(retval)+2);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1884
 		r = SvPVX(retval)+SvCUR(retval);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1885
 		r[0] = '}'; r[1] = '\0';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1886
@@ -965,8 +1169,8 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1887
 		static const char* const entries[] = { "{SCALAR}", "{ARRAY}", "{HASH}" };
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1888
 		static const STRLEN sizes[] = { 8, 7, 6 };
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1889
 		SV *e;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1890
-		SV * const nname = newSVpvn("", 0);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1891
-		SV * const newapad = newSVpvn("", 0);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1892
+		SV * const nname = newSVpvs("");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1893
+		SV * const newapad = newSVpvs("");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1894
 		GV * const gv = (GV*)val;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1895
 		I32 j;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1896
 		
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1897
@@ -983,7 +1187,7 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1898
 			
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1899
 			sv_setsv(nname, postentry);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1900
 			sv_catpvn(nname, entries[j], sizes[j]);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1901
-			sv_catpvn(postentry, " = ", 3);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1902
+			sv_catpvs(postentry, " = ");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1903
 			av_push(postav, postentry);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1904
 			e = newRV_inc(e);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1905
 			
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1906
@@ -995,7 +1199,8 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1907
 				seenhv, postav, &nlevel, indent, pad, xpad,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1908
 				newapad, sep, pair, freezer, toaster, purity,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1909
 				deepcopy, quotekeys, bless, maxdepth, 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1910
-				sortkeys);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1911
+				sortkeys, use_sparse_seen_hash, useqq,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1912
+				maxrecurse);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1913
 			SvREFCNT_dec(e);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1914
 		    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1915
 		}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1916
@@ -1005,11 +1210,11 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1917
 	    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1918
 	}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1919
 	else if (val == &PL_sv_undef || !SvOK(val)) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1920
-	    sv_catpvn(retval, "undef", 5);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1921
+	    sv_catpvs(retval, "undef");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1922
 	}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1923
 #ifdef SvVOK
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1924
 	else if (SvMAGICAL(val) && (mg = mg_find(val, 'V'))) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1925
-# ifndef PL_vtbl_vstring
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1926
+# if !defined(PL_vtbl_vstring) && PERL_VERSION < 17
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1927
 	    SV * const vecsv = sv_newmortal();
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1928
 #  if PERL_VERSION < 10
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1929
 	    scan_vstring(mg->mg_ptr, vecsv);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1930
@@ -1021,11 +1226,20 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1931
 	    sv_catpvn(retval, (const char *)mg->mg_ptr, mg->mg_len);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1932
 	}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1933
 #endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1934
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1935
 	else {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1936
         integer_came_from_string:
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1937
-	    c = SvPV(val, i);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1938
-	    if (DO_UTF8(val))
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1939
-	        i += esc_q_utf8(aTHX_ retval, c, i);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1940
+            c = SvPV(val, i);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1941
+            /* the pure perl and XS non-qq outputs have historically been
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1942
+             * different in this case, but for useqq, let's try to match
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1943
+             * the pure perl code.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1944
+             * see [perl #74798]
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1945
+             */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1946
+            if (useqq && safe_decimal_number(c, i)) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1947
+                sv_catsv(retval, val);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1948
+            }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1949
+	    else if (DO_UTF8(val) || useqq)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1950
+	        i += esc_q_utf8(aTHX_ retval, c, i, DO_UTF8(val), useqq);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1951
 	    else {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1952
 		sv_grow(retval, SvCUR(retval)+3+2*i); /* 3: ""\0 */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1953
 		r = SvPVX(retval) + SvCUR(retval);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1954
@@ -1056,7 +1270,7 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1955
 #
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1956
 # This is the exact equivalent of Dump.  Well, almost. The things that are
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1957
 # different as of now (due to Laziness):
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1958
-#   * doesn't do double-quotes yet.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1959
+#   * doesn't deparse yet.'
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1960
 #
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1961
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1962
 void
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1963
@@ -1070,13 +1284,16 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1964
 	    HV *seenhv = NULL;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1965
 	    AV *postav, *todumpav, *namesav;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1966
 	    I32 level = 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1967
-	    I32 indent, terse, i, imax, postlen;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1968
+	    I32 indent, terse, useqq;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1969
+	    SSize_t i, imax, postlen;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1970
 	    SV **svp;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1971
 	    SV *val, *name, *pad, *xpad, *apad, *sep, *pair, *varname;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1972
 	    SV *freezer, *toaster, *bless, *sortkeys;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1973
 	    I32 purity, deepcopy, quotekeys, maxdepth = 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1974
+	    IV maxrecurse = 1000;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1975
 	    char tmpbuf[1024];
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1976
 	    I32 gimme = GIMME;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1977
+            int use_sparse_seen_hash = 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1978
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1979
 	    if (!SvROK(href)) {		/* call new to get an object first */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1980
 		if (items < 2)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1981
@@ -1086,10 +1303,11 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1982
 		SAVETMPS;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1983
 		
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1984
 		PUSHMARK(sp);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1985
-		XPUSHs(href);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1986
-		XPUSHs(sv_2mortal(newSVsv(ST(1))));
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1987
+                EXTEND(SP, 3); /* 3 == max of all branches below */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1988
+		PUSHs(href);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1989
+		PUSHs(sv_2mortal(newSVsv(ST(1))));
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1990
 		if (items >= 3)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1991
-		    XPUSHs(sv_2mortal(newSVsv(ST(2))));
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1992
+		    PUSHs(sv_2mortal(newSVsv(ST(2))));
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1993
 		PUTBACK;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1994
 		i = perl_call_method("new", G_SCALAR);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1995
 		SPAGAIN;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1996
@@ -1109,16 +1327,20 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1997
 		= freezer = toaster = bless = sortkeys = &PL_sv_undef;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1998
 	    name = sv_newmortal();
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1999
 	    indent = 2;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2000
-	    terse = purity = deepcopy = 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2001
+	    terse = purity = deepcopy = useqq = 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2002
 	    quotekeys = 1;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2003
 	
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2004
-	    retval = newSVpvn("", 0);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2005
+	    retval = newSVpvs("");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2006
 	    if (SvROK(href)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2007
 		&& (hv = (HV*)SvRV((SV*)href))
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2008
 		&& SvTYPE(hv) == SVt_PVHV)		{
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2009
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2010
 		if ((svp = hv_fetch(hv, "seen", 4, FALSE)) && SvROK(*svp))
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2011
 		    seenhv = (HV*)SvRV(*svp);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2012
+                else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2013
+                    use_sparse_seen_hash = 1;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2014
+		if ((svp = hv_fetch(hv, "noseen", 6, FALSE)))
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2015
+		    use_sparse_seen_hash = (SvOK(*svp) && SvIV(*svp) != 0);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2016
 		if ((svp = hv_fetch(hv, "todump", 6, FALSE)) && SvROK(*svp))
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2017
 		    todumpav = (AV*)SvRV(*svp);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2018
 		if ((svp = hv_fetch(hv, "names", 5, FALSE)) && SvROK(*svp))
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2019
@@ -1129,10 +1351,8 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2020
 		    purity = SvIV(*svp);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2021
 		if ((svp = hv_fetch(hv, "terse", 5, FALSE)))
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2022
 		    terse = SvTRUE(*svp);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2023
-#if 0 /* useqq currently unused */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2024
 		if ((svp = hv_fetch(hv, "useqq", 5, FALSE)))
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2025
 		    useqq = SvTRUE(*svp);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2026
-#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2027
 		if ((svp = hv_fetch(hv, "pad", 3, FALSE)))
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2028
 		    pad = *svp;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2029
 		if ((svp = hv_fetch(hv, "xpad", 4, FALSE)))
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2030
@@ -1157,6 +1377,8 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2031
 		    bless = *svp;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2032
 		if ((svp = hv_fetch(hv, "maxdepth", 8, FALSE)))
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2033
 		    maxdepth = SvIV(*svp);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2034
+		if ((svp = hv_fetch(hv, "maxrecurse", 10, FALSE)))
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2035
+		    maxrecurse = SvIV(*svp);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2036
 		if ((svp = hv_fetch(hv, "sortkeys", 8, FALSE))) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2037
 		    sortkeys = *svp;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2038
 		    if (! SvTRUE(sortkeys))
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2039
@@ -1174,7 +1396,7 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2040
 		    imax = av_len(todumpav);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2041
 		else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2042
 		    imax = -1;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2043
-		valstr = newSVpvn("",0);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2044
+		valstr = newSVpvs("");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2045
 		for (i = 0; i <= imax; ++i) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2046
 		    SV *newapad;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2047
 		
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2048
@@ -1236,7 +1458,8 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2049
 		    DD_dump(aTHX_ val, SvPVX_const(name), SvCUR(name), valstr, seenhv,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2050
 			    postav, &level, indent, pad, xpad, newapad, sep, pair,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2051
 			    freezer, toaster, purity, deepcopy, quotekeys,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2052
-			    bless, maxdepth, sortkeys);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2053
+			    bless, maxdepth, sortkeys, use_sparse_seen_hash,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2054
+			    useqq, maxrecurse);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2055
 		    SPAGAIN;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2056
 		
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2057
 		    if (indent >= 2 && !terse)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2058
@@ -1246,13 +1469,13 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2059
 		    if (postlen >= 0 || !terse) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2060
 			sv_insert(valstr, 0, 0, " = ", 3);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2061
 			sv_insert(valstr, 0, 0, SvPVX_const(name), SvCUR(name));
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2062
-			sv_catpvn(valstr, ";", 1);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2063
+			sv_catpvs(valstr, ";");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2064
 		    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2065
 		    sv_catsv(retval, pad);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2066
 		    sv_catsv(retval, valstr);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2067
 		    sv_catsv(retval, sep);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2068
 		    if (postlen >= 0) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2069
-			I32 i;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2070
+			SSize_t i;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2071
 			sv_catsv(retval, pad);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2072
 			for (i = 0; i <= postlen; ++i) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2073
 			    SV *elem;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2074
@@ -1260,20 +1483,20 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2075
 			    if (svp && (elem = *svp)) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2076
 				sv_catsv(retval, elem);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2077
 				if (i < postlen) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2078
-				    sv_catpvn(retval, ";", 1);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2079
+				    sv_catpvs(retval, ";");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2080
 				    sv_catsv(retval, sep);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2081
 				    sv_catsv(retval, pad);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2082
 				}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2083
 			    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2084
 			}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2085
-			sv_catpvn(retval, ";", 1);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2086
+			sv_catpvs(retval, ";");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2087
 			    sv_catsv(retval, sep);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2088
 		    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2089
 		    sv_setpvn(valstr, "", 0);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2090
 		    if (gimme == G_ARRAY) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2091
 			XPUSHs(sv_2mortal(retval));
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2092
 			if (i < imax)	/* not the last time thro ? */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2093
-			    retval = newSVpvn("",0);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2094
+			    retval = newSVpvs("");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2095
 		    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2096
 		}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2097
 		SvREFCNT_dec(postav);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2098
diff -ur --new-file perl-5.16.3/dist/Data-Dumper/ppport.h perl-5.16.3/dist/Data-Dumper/ppport.h
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2099
--- perl-5.16.3/dist/Data-Dumper/ppport.h	1969-12-31 19:00:00.000000000 -0500
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2100
+++ perl-5.16.3/dist/Data-Dumper/ppport.h	2014-09-29 13:47:39.511955996 -0400
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2101
@@ -0,0 +1,7452 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2102
+#if 0
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2103
+<<'SKIP';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2104
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2105
+/*
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2106
+----------------------------------------------------------------------
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2107
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2108
+    ppport.h -- Perl/Pollution/Portability Version 3.21
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2109
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2110
+    Automatically created by Devel::PPPort running under perl 5.014002.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2111
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2112
+    Do NOT edit this file directly! -- Edit PPPort_pm.PL and the
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2113
+    includes in parts/inc/ instead.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2114
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2115
+    Use 'perldoc ppport.h' to view the documentation below.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2116
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2117
+----------------------------------------------------------------------
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2118
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2119
+SKIP
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2120
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2121
+=pod
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2122
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2123
+=head1 NAME
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2124
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2125
+ppport.h - Perl/Pollution/Portability version 3.21
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2126
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2127
+=head1 SYNOPSIS
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2128
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2129
+  perl ppport.h [options] [source files]
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2130
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2131
+  Searches current directory for files if no [source files] are given
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2132
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2133
+  --help                      show short help
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2134
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2135
+  --version                   show version
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2136
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2137
+  --patch=file                write one patch file with changes
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2138
+  --copy=suffix               write changed copies with suffix
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2139
+  --diff=program              use diff program and options
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2140
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2141
+  --compat-version=version    provide compatibility with Perl version
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2142
+  --cplusplus                 accept C++ comments
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2143
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2144
+  --quiet                     don't output anything except fatal errors
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2145
+  --nodiag                    don't show diagnostics
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2146
+  --nohints                   don't show hints
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2147
+  --nochanges                 don't suggest changes
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2148
+  --nofilter                  don't filter input files
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2149
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2150
+  --strip                     strip all script and doc functionality from
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2151
+                              ppport.h
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2152
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2153
+  --list-provided             list provided API
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2154
+  --list-unsupported          list unsupported API
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2155
+  --api-info=name             show Perl API portability information
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2156
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2157
+=head1 COMPATIBILITY
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2158
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2159
+This version of F<ppport.h> is designed to support operation with Perl
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2160
+installations back to 5.003, and has been tested up to 5.11.5.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2161
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2162
+=head1 OPTIONS
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2163
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2164
+=head2 --help
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2165
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2166
+Display a brief usage summary.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2167
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2168
+=head2 --version
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2169
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2170
+Display the version of F<ppport.h>.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2171
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2172
+=head2 --patch=I<file>
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2173
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2174
+If this option is given, a single patch file will be created if
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2175
+any changes are suggested. This requires a working diff program
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2176
+to be installed on your system.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2177
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2178
+=head2 --copy=I<suffix>
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2179
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2180
+If this option is given, a copy of each file will be saved with
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2181
+the given suffix that contains the suggested changes. This does
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2182
+not require any external programs. Note that this does not
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2183
+automagially add a dot between the original filename and the
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2184
+suffix. If you want the dot, you have to include it in the option
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2185
+argument.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2186
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2187
+If neither C<--patch> or C<--copy> are given, the default is to
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2188
+simply print the diffs for each file. This requires either
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2189
+C<Text::Diff> or a C<diff> program to be installed.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2190
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2191
+=head2 --diff=I<program>
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2192
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2193
+Manually set the diff program and options to use. The default
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2194
+is to use C<Text::Diff>, when installed, and output unified
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2195
+context diffs.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2196
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2197
+=head2 --compat-version=I<version>
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2198
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2199
+Tell F<ppport.h> to check for compatibility with the given
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2200
+Perl version. The default is to check for compatibility with Perl
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2201
+version 5.003. You can use this option to reduce the output
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2202
+of F<ppport.h> if you intend to be backward compatible only
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2203
+down to a certain Perl version.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2204
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2205
+=head2 --cplusplus
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2206
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2207
+Usually, F<ppport.h> will detect C++ style comments and
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2208
+replace them with C style comments for portability reasons.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2209
+Using this option instructs F<ppport.h> to leave C++
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2210
+comments untouched.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2211
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2212
+=head2 --quiet
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2213
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2214
+Be quiet. Don't print anything except fatal errors.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2215
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2216
+=head2 --nodiag
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2217
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2218
+Don't output any diagnostic messages. Only portability
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2219
+alerts will be printed.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2220
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2221
+=head2 --nohints
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2222
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2223
+Don't output any hints. Hints often contain useful portability
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2224
+notes. Warnings will still be displayed.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2225
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2226
+=head2 --nochanges
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2227
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2228
+Don't suggest any changes. Only give diagnostic output and hints
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2229
+unless these are also deactivated.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2230
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2231
+=head2 --nofilter
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2232
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2233
+Don't filter the list of input files. By default, files not looking
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2234
+like source code (i.e. not *.xs, *.c, *.cc, *.cpp or *.h) are skipped.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2235
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2236
+=head2 --strip
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2237
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2238
+Strip all script and documentation functionality from F<ppport.h>.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2239
+This reduces the size of F<ppport.h> dramatically and may be useful
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2240
+if you want to include F<ppport.h> in smaller modules without
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2241
+increasing their distribution size too much.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2242
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2243
+The stripped F<ppport.h> will have a C<--unstrip> option that allows
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2244
+you to undo the stripping, but only if an appropriate C<Devel::PPPort>
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2245
+module is installed.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2246
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2247
+=head2 --list-provided
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2248
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2249
+Lists the API elements for which compatibility is provided by
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2250
+F<ppport.h>. Also lists if it must be explicitly requested,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2251
+if it has dependencies, and if there are hints or warnings for it.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2252
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2253
+=head2 --list-unsupported
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2254
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2255
+Lists the API elements that are known not to be supported by
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2256
+F<ppport.h> and below which version of Perl they probably
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2257
+won't be available or work.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2258
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2259
+=head2 --api-info=I<name>
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2260
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2261
+Show portability information for API elements matching I<name>.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2262
+If I<name> is surrounded by slashes, it is interpreted as a regular
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2263
+expression.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2264
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2265
+=head1 DESCRIPTION
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2266
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2267
+In order for a Perl extension (XS) module to be as portable as possible
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2268
+across differing versions of Perl itself, certain steps need to be taken.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2269
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2270
+=over 4
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2271
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2272
+=item *
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2273
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2274
+Including this header is the first major one. This alone will give you
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2275
+access to a large part of the Perl API that hasn't been available in
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2276
+earlier Perl releases. Use
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2277
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2278
+    perl ppport.h --list-provided
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2279
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2280
+to see which API elements are provided by ppport.h.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2281
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2282
+=item *
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2283
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2284
+You should avoid using deprecated parts of the API. For example, using
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2285
+global Perl variables without the C<PL_> prefix is deprecated. Also,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2286
+some API functions used to have a C<perl_> prefix. Using this form is
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2287
+also deprecated. You can safely use the supported API, as F<ppport.h>
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2288
+will provide wrappers for older Perl versions.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2289
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2290
+=item *
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2291
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2292
+If you use one of a few functions or variables that were not present in
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2293
+earlier versions of Perl, and that can't be provided using a macro, you
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2294
+have to explicitly request support for these functions by adding one or
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2295
+more C<#define>s in your source code before the inclusion of F<ppport.h>.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2296
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2297
+These functions or variables will be marked C<explicit> in the list shown
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2298
+by C<--list-provided>.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2299
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2300
+Depending on whether you module has a single or multiple files that
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2301
+use such functions or variables, you want either C<static> or global
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2302
+variants.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2303
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2304
+For a C<static> function or variable (used only in a single source
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2305
+file), use:
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2306
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2307
+    #define NEED_function
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2308
+    #define NEED_variable
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2309
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2310
+For a global function or variable (used in multiple source files),
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2311
+use:
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2312
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2313
+    #define NEED_function_GLOBAL
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2314
+    #define NEED_variable_GLOBAL
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2315
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2316
+Note that you mustn't have more than one global request for the
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2317
+same function or variable in your project.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2318
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2319
+    Function / Variable       Static Request               Global Request
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2320
+    -----------------------------------------------------------------------------------------
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2321
+    PL_parser                 NEED_PL_parser               NEED_PL_parser_GLOBAL
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2322
+    PL_signals                NEED_PL_signals              NEED_PL_signals_GLOBAL
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2323
+    eval_pv()                 NEED_eval_pv                 NEED_eval_pv_GLOBAL
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2324
+    grok_bin()                NEED_grok_bin                NEED_grok_bin_GLOBAL
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2325
+    grok_hex()                NEED_grok_hex                NEED_grok_hex_GLOBAL
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2326
+    grok_number()             NEED_grok_number             NEED_grok_number_GLOBAL
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2327
+    grok_numeric_radix()      NEED_grok_numeric_radix      NEED_grok_numeric_radix_GLOBAL
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2328
+    grok_oct()                NEED_grok_oct                NEED_grok_oct_GLOBAL
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2329
+    load_module()             NEED_load_module             NEED_load_module_GLOBAL
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2330
+    my_snprintf()             NEED_my_snprintf             NEED_my_snprintf_GLOBAL
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2331
+    my_sprintf()              NEED_my_sprintf              NEED_my_sprintf_GLOBAL
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2332
+    my_strlcat()              NEED_my_strlcat              NEED_my_strlcat_GLOBAL
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2333
+    my_strlcpy()              NEED_my_strlcpy              NEED_my_strlcpy_GLOBAL
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2334
+    newCONSTSUB()             NEED_newCONSTSUB             NEED_newCONSTSUB_GLOBAL
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2335
+    newRV_noinc()             NEED_newRV_noinc             NEED_newRV_noinc_GLOBAL
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2336
+    newSV_type()              NEED_newSV_type              NEED_newSV_type_GLOBAL
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2337
+    newSVpvn_flags()          NEED_newSVpvn_flags          NEED_newSVpvn_flags_GLOBAL
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2338
+    newSVpvn_share()          NEED_newSVpvn_share          NEED_newSVpvn_share_GLOBAL
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2339
+    pv_display()              NEED_pv_display              NEED_pv_display_GLOBAL
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2340
+    pv_escape()               NEED_pv_escape               NEED_pv_escape_GLOBAL
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2341
+    pv_pretty()               NEED_pv_pretty               NEED_pv_pretty_GLOBAL
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2342
+    sv_2pv_flags()            NEED_sv_2pv_flags            NEED_sv_2pv_flags_GLOBAL
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2343
+    sv_2pvbyte()              NEED_sv_2pvbyte              NEED_sv_2pvbyte_GLOBAL
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2344
+    sv_catpvf_mg()            NEED_sv_catpvf_mg            NEED_sv_catpvf_mg_GLOBAL
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2345
+    sv_catpvf_mg_nocontext()  NEED_sv_catpvf_mg_nocontext  NEED_sv_catpvf_mg_nocontext_GLOBAL
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2346
+    sv_pvn_force_flags()      NEED_sv_pvn_force_flags      NEED_sv_pvn_force_flags_GLOBAL
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2347
+    sv_setpvf_mg()            NEED_sv_setpvf_mg            NEED_sv_setpvf_mg_GLOBAL
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2348
+    sv_setpvf_mg_nocontext()  NEED_sv_setpvf_mg_nocontext  NEED_sv_setpvf_mg_nocontext_GLOBAL
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2349
+    vload_module()            NEED_vload_module            NEED_vload_module_GLOBAL
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2350
+    vnewSVpvf()               NEED_vnewSVpvf               NEED_vnewSVpvf_GLOBAL
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2351
+    warner()                  NEED_warner                  NEED_warner_GLOBAL
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2352
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2353
+To avoid namespace conflicts, you can change the namespace of the
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2354
+explicitly exported functions / variables using the C<DPPP_NAMESPACE>
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2355
+macro. Just C<#define> the macro before including C<ppport.h>:
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2356
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2357
+    #define DPPP_NAMESPACE MyOwnNamespace_
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2358
+    #include "ppport.h"
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2359
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2360
+The default namespace is C<DPPP_>.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2361
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2362
+=back
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2363
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2364
+The good thing is that most of the above can be checked by running
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2365
+F<ppport.h> on your source code. See the next section for
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2366
+details.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2367
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2368
+=head1 EXAMPLES
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2369
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2370
+To verify whether F<ppport.h> is needed for your module, whether you
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2371
+should make any changes to your code, and whether any special defines
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2372
+should be used, F<ppport.h> can be run as a Perl script to check your
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2373
+source code. Simply say:
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2374
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2375
+    perl ppport.h
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2376
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2377
+The result will usually be a list of patches suggesting changes
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2378
+that should at least be acceptable, if not necessarily the most
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2379
+efficient solution, or a fix for all possible problems.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2380
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2381
+If you know that your XS module uses features only available in
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2382
+newer Perl releases, if you're aware that it uses C++ comments,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2383
+and if you want all suggestions as a single patch file, you could
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2384
+use something like this:
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2385
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2386
+    perl ppport.h --compat-version=5.6.0 --cplusplus --patch=test.diff
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2387
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2388
+If you only want your code to be scanned without any suggestions
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2389
+for changes, use:
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2390
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2391
+    perl ppport.h --nochanges
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2392
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2393
+You can specify a different C<diff> program or options, using
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2394
+the C<--diff> option:
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2395
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2396
+    perl ppport.h --diff='diff -C 10'
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2397
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2398
+This would output context diffs with 10 lines of context.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2399
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2400
+If you want to create patched copies of your files instead, use:
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2401
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2402
+    perl ppport.h --copy=.new
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2403
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2404
+To display portability information for the C<newSVpvn> function,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2405
+use:
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2406
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2407
+    perl ppport.h --api-info=newSVpvn
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2408
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2409
+Since the argument to C<--api-info> can be a regular expression,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2410
+you can use
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2411
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2412
+    perl ppport.h --api-info=/_nomg$/
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2413
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2414
+to display portability information for all C<_nomg> functions or
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2415
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2416
+    perl ppport.h --api-info=/./
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2417
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2418
+to display information for all known API elements.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2419
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2420
+=head1 BUGS
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2421
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2422
+If this version of F<ppport.h> is causing failure during
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2423
+the compilation of this module, please check if newer versions
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2424
+of either this module or C<Devel::PPPort> are available on CPAN
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2425
+before sending a bug report.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2426
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2427
+If F<ppport.h> was generated using the latest version of
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2428
+C<Devel::PPPort> and is causing failure of this module, please
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2429
+file a bug report using the CPAN Request Tracker at L<http://rt.cpan.org/>.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2430
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2431
+Please include the following information:
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2432
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2433
+=over 4
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2434
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2435
+=item 1.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2436
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2437
+The complete output from running "perl -V"
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2438
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2439
+=item 2.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2440
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2441
+This file.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2442
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2443
+=item 3.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2444
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2445
+The name and version of the module you were trying to build.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2446
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2447
+=item 4.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2448
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2449
+A full log of the build that failed.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2450
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2451
+=item 5.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2452
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2453
+Any other information that you think could be relevant.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2454
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2455
+=back
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2456
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2457
+For the latest version of this code, please get the C<Devel::PPPort>
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2458
+module from CPAN.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2459
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2460
+=head1 COPYRIGHT
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2461
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2462
+Version 3.x, Copyright (c) 2004-2013, Marcus Holland-Moritz.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2463
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2464
+Version 2.x, Copyright (C) 2001, Paul Marquess.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2465
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2466
+Version 1.x, Copyright (C) 1999, Kenneth Albanowski.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2467
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2468
+This program is free software; you can redistribute it and/or
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2469
+modify it under the same terms as Perl itself.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2470
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2471
+=head1 SEE ALSO
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2472
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2473
+See L<Devel::PPPort>.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2474
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2475
+=cut
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2476
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2477
+use strict;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2478
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2479
+# Disable broken TRIE-optimization
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2480
+BEGIN { eval '${^RE_TRIE_MAXBUF} = -1' if $] >= 5.009004 && $] <= 5.009005 }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2481
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2482
+my $VERSION = 3.21;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2483
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2484
+my %opt = (
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2485
+  quiet     => 0,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2486
+  diag      => 1,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2487
+  hints     => 1,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2488
+  changes   => 1,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2489
+  cplusplus => 0,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2490
+  filter    => 1,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2491
+  strip     => 0,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2492
+  version   => 0,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2493
+);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2494
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2495
+my($ppport) = $0 =~ /([\w.]+)$/;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2496
+my $LF = '(?:\r\n|[\r\n])';   # line feed
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2497
+my $HS = "[ \t]";             # horizontal whitespace
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2498
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2499
+# Never use C comments in this file!
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2500
+my $ccs  = '/'.'*';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2501
+my $cce  = '*'.'/';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2502
+my $rccs = quotemeta $ccs;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2503
+my $rcce = quotemeta $cce;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2504
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2505
+eval {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2506
+  require Getopt::Long;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2507
+  Getopt::Long::GetOptions(\%opt, qw(
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2508
+    help quiet diag! filter! hints! changes! cplusplus strip version
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2509
+    patch=s copy=s diff=s compat-version=s
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2510
+    list-provided list-unsupported api-info=s
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2511
+  )) or usage();
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2512
+};
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2513
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2514
+if ($@ and grep /^-/, @ARGV) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2515
+  usage() if "@ARGV" =~ /^--?h(?:elp)?$/;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2516
+  die "Getopt::Long not found. Please don't use any options.\n";
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2517
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2518
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2519
+if ($opt{version}) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2520
+  print "This is $0 $VERSION.\n";
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2521
+  exit 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2522
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2523
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2524
+usage() if $opt{help};
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2525
+strip() if $opt{strip};
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2526
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2527
+if (exists $opt{'compat-version'}) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2528
+  my($r,$v,$s) = eval { parse_version($opt{'compat-version'}) };
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2529
+  if ($@) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2530
+    die "Invalid version number format: '$opt{'compat-version'}'\n";
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2531
+  }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2532
+  die "Only Perl 5 is supported\n" if $r != 5;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2533
+  die "Invalid version number: $opt{'compat-version'}\n" if $v >= 1000 || $s >= 1000;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2534
+  $opt{'compat-version'} = sprintf "%d.%03d%03d", $r, $v, $s;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2535
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2536
+else {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2537
+  $opt{'compat-version'} = 5;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2538
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2539
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2540
+my %API = map { /^(\w+)\|([^|]*)\|([^|]*)\|(\w*)$/
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2541
+                ? ( $1 => {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2542
+                      ($2                  ? ( base     => $2 ) : ()),
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2543
+                      ($3                  ? ( todo     => $3 ) : ()),
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2544
+                      (index($4, 'v') >= 0 ? ( varargs  => 1  ) : ()),
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2545
+                      (index($4, 'p') >= 0 ? ( provided => 1  ) : ()),
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2546
+                      (index($4, 'n') >= 0 ? ( nothxarg => 1  ) : ()),
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2547
+                    } )
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2548
+                : die "invalid spec: $_" } qw(
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2549
+AvFILLp|5.004050||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2550
+AvFILL|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2551
+BhkDISABLE||5.019003|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2552
+BhkENABLE||5.019003|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2553
+BhkENTRY_set||5.019003|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2554
+BhkENTRY|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2555
+BhkFLAGS|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2556
+CALL_BLOCK_HOOKS|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2557
+CLASS|||n
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2558
+CPERLscope|5.005000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2559
+CX_CURPAD_SAVE|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2560
+CX_CURPAD_SV|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2561
+CopFILEAV|5.006000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2562
+CopFILEGV_set|5.006000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2563
+CopFILEGV|5.006000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2564
+CopFILESV|5.006000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2565
+CopFILE_set|5.006000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2566
+CopFILE|5.006000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2567
+CopSTASHPV_set|5.006000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2568
+CopSTASHPV|5.006000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2569
+CopSTASH_eq|5.006000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2570
+CopSTASH_set|5.006000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2571
+CopSTASH|5.006000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2572
+CopyD|5.009002|5.004050|p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2573
+Copy||5.004050|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2574
+CvPADLIST||5.008001|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2575
+CvSTASH|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2576
+CvWEAKOUTSIDE|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2577
+DEFSV_set|5.010001||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2578
+DEFSV|5.004050||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2579
+END_EXTERN_C|5.005000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2580
+ENTER|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2581
+ERRSV|5.004050||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2582
+EXTEND|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2583
+EXTERN_C|5.005000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2584
+F0convert|||n
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2585
+FREETMPS|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2586
+GIMME_V||5.004000|n
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2587
+GIMME|||n
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2588
+GROK_NUMERIC_RADIX|5.007002||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2589
+G_ARRAY|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2590
+G_DISCARD|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2591
+G_EVAL|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2592
+G_METHOD|5.006001||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2593
+G_NOARGS|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2594
+G_SCALAR|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2595
+G_VOID||5.004000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2596
+GetVars|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2597
+GvAV|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2598
+GvCV|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2599
+GvHV|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2600
+GvSVn|5.009003||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2601
+GvSV|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2602
+Gv_AMupdate||5.011000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2603
+HEf_SVKEY||5.004000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2604
+HeHASH||5.004000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2605
+HeKEY||5.004000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2606
+HeKLEN||5.004000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2607
+HePV||5.004000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2608
+HeSVKEY_force||5.004000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2609
+HeSVKEY_set||5.004000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2610
+HeSVKEY||5.004000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2611
+HeUTF8||5.010001|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2612
+HeVAL||5.004000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2613
+HvENAMELEN||5.015004|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2614
+HvENAMEUTF8||5.015004|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2615
+HvENAME||5.013007|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2616
+HvNAMELEN_get|5.009003||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2617
+HvNAMELEN||5.015004|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2618
+HvNAMEUTF8||5.015004|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2619
+HvNAME_get|5.009003||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2620
+HvNAME|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2621
+INT2PTR|5.006000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2622
+IN_LOCALE_COMPILETIME|5.007002||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2623
+IN_LOCALE_RUNTIME|5.007002||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2624
+IN_LOCALE|5.007002||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2625
+IN_PERL_COMPILETIME|5.008001||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2626
+IS_NUMBER_GREATER_THAN_UV_MAX|5.007002||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2627
+IS_NUMBER_INFINITY|5.007002||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2628
+IS_NUMBER_IN_UV|5.007002||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2629
+IS_NUMBER_NAN|5.007003||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2630
+IS_NUMBER_NEG|5.007002||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2631
+IS_NUMBER_NOT_INT|5.007002||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2632
+IVSIZE|5.006000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2633
+IVTYPE|5.006000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2634
+IVdf|5.006000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2635
+LEAVE|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2636
+LINKLIST||5.013006|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2637
+LVRET|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2638
+MARK|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2639
+MULTICALL||5.019003|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2640
+MY_CXT_CLONE|5.009002||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2641
+MY_CXT_INIT|5.007003||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2642
+MY_CXT|5.007003||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2643
+MoveD|5.009002|5.004050|p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2644
+Move||5.004050|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2645
+NOOP|5.005000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2646
+NUM2PTR|5.006000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2647
+NVTYPE|5.006000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2648
+NVef|5.006001||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2649
+NVff|5.006001||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2650
+NVgf|5.006001||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2651
+Newxc|5.009003||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2652
+Newxz|5.009003||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2653
+Newx|5.009003||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2654
+Nullav|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2655
+Nullch|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2656
+Nullcv|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2657
+Nullhv|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2658
+Nullsv|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2659
+OP_CLASS||5.013007|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2660
+OP_DESC||5.007003|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2661
+OP_NAME||5.007003|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2662
+ORIGMARK|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2663
+PAD_BASE_SV|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2664
+PAD_CLONE_VARS|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2665
+PAD_COMPNAME_FLAGS|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2666
+PAD_COMPNAME_GEN_set|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2667
+PAD_COMPNAME_GEN|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2668
+PAD_COMPNAME_OURSTASH|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2669
+PAD_COMPNAME_PV|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2670
+PAD_COMPNAME_TYPE|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2671
+PAD_RESTORE_LOCAL|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2672
+PAD_SAVE_LOCAL|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2673
+PAD_SAVE_SETNULLPAD|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2674
+PAD_SETSV|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2675
+PAD_SET_CUR_NOSAVE|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2676
+PAD_SET_CUR|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2677
+PAD_SVl|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2678
+PAD_SV|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2679
+PERLIO_FUNCS_CAST|5.009003||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2680
+PERLIO_FUNCS_DECL|5.009003||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2681
+PERL_ABS|5.008001||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2682
+PERL_BCDVERSION|5.019002||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2683
+PERL_GCC_BRACE_GROUPS_FORBIDDEN|5.008001||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2684
+PERL_HASH|5.004000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2685
+PERL_INT_MAX|5.004000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2686
+PERL_INT_MIN|5.004000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2687
+PERL_LONG_MAX|5.004000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2688
+PERL_LONG_MIN|5.004000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2689
+PERL_MAGIC_arylen|5.007002||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2690
+PERL_MAGIC_backref|5.007002||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2691
+PERL_MAGIC_bm|5.007002||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2692
+PERL_MAGIC_collxfrm|5.007002||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2693
+PERL_MAGIC_dbfile|5.007002||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2694
+PERL_MAGIC_dbline|5.007002||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2695
+PERL_MAGIC_defelem|5.007002||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2696
+PERL_MAGIC_envelem|5.007002||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2697
+PERL_MAGIC_env|5.007002||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2698
+PERL_MAGIC_ext|5.007002||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2699
+PERL_MAGIC_fm|5.007002||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2700
+PERL_MAGIC_glob|5.019002||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2701
+PERL_MAGIC_isaelem|5.007002||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2702
+PERL_MAGIC_isa|5.007002||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2703
+PERL_MAGIC_mutex|5.019002||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2704
+PERL_MAGIC_nkeys|5.007002||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2705
+PERL_MAGIC_overload_elem|5.019002||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2706
+PERL_MAGIC_overload_table|5.007002||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2707
+PERL_MAGIC_overload|5.019002||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2708
+PERL_MAGIC_pos|5.007002||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2709
+PERL_MAGIC_qr|5.007002||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2710
+PERL_MAGIC_regdata|5.007002||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2711
+PERL_MAGIC_regdatum|5.007002||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2712
+PERL_MAGIC_regex_global|5.007002||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2713
+PERL_MAGIC_shared_scalar|5.007003||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2714
+PERL_MAGIC_shared|5.007003||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2715
+PERL_MAGIC_sigelem|5.007002||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2716
+PERL_MAGIC_sig|5.007002||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2717
+PERL_MAGIC_substr|5.007002||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2718
+PERL_MAGIC_sv|5.007002||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2719
+PERL_MAGIC_taint|5.007002||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2720
+PERL_MAGIC_tiedelem|5.007002||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2721
+PERL_MAGIC_tiedscalar|5.007002||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2722
+PERL_MAGIC_tied|5.007002||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2723
+PERL_MAGIC_utf8|5.008001||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2724
+PERL_MAGIC_uvar_elem|5.007003||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2725
+PERL_MAGIC_uvar|5.007002||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2726
+PERL_MAGIC_vec|5.007002||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2727
+PERL_MAGIC_vstring|5.008001||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2728
+PERL_PV_ESCAPE_ALL|5.009004||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2729
+PERL_PV_ESCAPE_FIRSTCHAR|5.009004||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2730
+PERL_PV_ESCAPE_NOBACKSLASH|5.009004||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2731
+PERL_PV_ESCAPE_NOCLEAR|5.009004||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2732
+PERL_PV_ESCAPE_QUOTE|5.009004||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2733
+PERL_PV_ESCAPE_RE|5.009005||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2734
+PERL_PV_ESCAPE_UNI_DETECT|5.009004||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2735
+PERL_PV_ESCAPE_UNI|5.009004||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2736
+PERL_PV_PRETTY_DUMP|5.009004||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2737
+PERL_PV_PRETTY_ELLIPSES|5.010000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2738
+PERL_PV_PRETTY_LTGT|5.009004||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2739
+PERL_PV_PRETTY_NOCLEAR|5.010000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2740
+PERL_PV_PRETTY_QUOTE|5.009004||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2741
+PERL_PV_PRETTY_REGPROP|5.009004||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2742
+PERL_QUAD_MAX|5.004000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2743
+PERL_QUAD_MIN|5.004000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2744
+PERL_REVISION|5.006000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2745
+PERL_SCAN_ALLOW_UNDERSCORES|5.007003||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2746
+PERL_SCAN_DISALLOW_PREFIX|5.007003||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2747
+PERL_SCAN_GREATER_THAN_UV_MAX|5.007003||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2748
+PERL_SCAN_SILENT_ILLDIGIT|5.008001||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2749
+PERL_SHORT_MAX|5.004000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2750
+PERL_SHORT_MIN|5.004000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2751
+PERL_SIGNALS_UNSAFE_FLAG|5.008001||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2752
+PERL_SUBVERSION|5.006000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2753
+PERL_SYS_INIT3||5.010000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2754
+PERL_SYS_INIT||5.010000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2755
+PERL_SYS_TERM||5.019003|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2756
+PERL_UCHAR_MAX|5.004000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2757
+PERL_UCHAR_MIN|5.004000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2758
+PERL_UINT_MAX|5.004000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2759
+PERL_UINT_MIN|5.004000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2760
+PERL_ULONG_MAX|5.004000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2761
+PERL_ULONG_MIN|5.004000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2762
+PERL_UNUSED_ARG|5.009003||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2763
+PERL_UNUSED_CONTEXT|5.009004||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2764
+PERL_UNUSED_DECL|5.007002||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2765
+PERL_UNUSED_VAR|5.007002||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2766
+PERL_UQUAD_MAX|5.004000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2767
+PERL_UQUAD_MIN|5.004000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2768
+PERL_USE_GCC_BRACE_GROUPS|5.009004||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2769
+PERL_USHORT_MAX|5.004000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2770
+PERL_USHORT_MIN|5.004000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2771
+PERL_VERSION|5.006000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2772
+PL_DBsignal|5.005000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2773
+PL_DBsingle|||pn
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2774
+PL_DBsub|||pn
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2775
+PL_DBtrace|||pn
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2776
+PL_Sv|5.005000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2777
+PL_bufend|5.019002||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2778
+PL_bufptr|5.019002||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2779
+PL_check||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2780
+PL_compiling|5.004050||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2781
+PL_comppad_name||5.017004|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2782
+PL_comppad||5.008001|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2783
+PL_copline|5.019002||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2784
+PL_curcop|5.004050||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2785
+PL_curpad||5.005000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2786
+PL_curstash|5.004050||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2787
+PL_debstash|5.004050||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2788
+PL_defgv|5.004050||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2789
+PL_diehook|5.004050||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2790
+PL_dirty|5.004050||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2791
+PL_dowarn|||pn
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2792
+PL_errgv|5.004050||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2793
+PL_error_count|5.019002||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2794
+PL_expect|5.019002||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2795
+PL_hexdigit|5.005000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2796
+PL_hints|5.005000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2797
+PL_in_my_stash|5.019002||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2798
+PL_in_my|5.019002||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2799
+PL_keyword_plugin||5.011002|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2800
+PL_last_in_gv|||n
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2801
+PL_laststatval|5.005000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2802
+PL_lex_state|5.019002||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2803
+PL_lex_stuff|5.019002||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2804
+PL_linestr|5.019002||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2805
+PL_modglobal||5.005000|n
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2806
+PL_na|5.004050||pn
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2807
+PL_no_modify|5.006000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2808
+PL_ofsgv|||n
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2809
+PL_opfreehook||5.011000|n
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2810
+PL_parser|5.009005|5.009005|p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2811
+PL_peepp||5.007003|n
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2812
+PL_perl_destruct_level|5.004050||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2813
+PL_perldb|5.004050||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2814
+PL_ppaddr|5.006000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2815
+PL_rpeepp||5.013005|n
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2816
+PL_rsfp_filters|5.019002||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2817
+PL_rsfp|5.019002||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2818
+PL_rs|||n
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2819
+PL_signals|5.008001||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2820
+PL_stack_base|5.004050||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2821
+PL_stack_sp|5.004050||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2822
+PL_statcache|5.005000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2823
+PL_stdingv|5.004050||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2824
+PL_sv_arenaroot|5.004050||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2825
+PL_sv_no|5.004050||pn
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2826
+PL_sv_undef|5.004050||pn
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2827
+PL_sv_yes|5.004050||pn
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2828
+PL_tainted|5.004050||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2829
+PL_tainting|5.004050||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2830
+PL_tokenbuf|5.019002||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2831
+POP_MULTICALL||5.019003|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2832
+POPi|||n
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2833
+POPl|||n
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2834
+POPn|||n
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2835
+POPpbytex||5.007001|n
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2836
+POPpx||5.005030|n
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2837
+POPp|||n
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2838
+POPs|||n
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2839
+PTR2IV|5.006000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2840
+PTR2NV|5.006000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2841
+PTR2UV|5.006000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2842
+PTR2nat|5.009003||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2843
+PTR2ul|5.007001||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2844
+PTRV|5.006000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2845
+PUSHMARK|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2846
+PUSH_MULTICALL||5.019003|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2847
+PUSHi|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2848
+PUSHmortal|5.009002||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2849
+PUSHn|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2850
+PUSHp|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2851
+PUSHs|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2852
+PUSHu|5.004000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2853
+PUTBACK|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2854
+PadARRAY||5.019003|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2855
+PadMAX||5.019003|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2856
+PadlistARRAY||5.019003|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2857
+PadlistMAX||5.019003|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2858
+PadlistNAMESARRAY||5.019003|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2859
+PadlistNAMESMAX||5.019003|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2860
+PadlistNAMES||5.019003|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2861
+PadlistREFCNT||5.017004|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2862
+PadnameIsOUR|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2863
+PadnameIsSTATE|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2864
+PadnameLEN||5.019003|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2865
+PadnameOURSTASH|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2866
+PadnameOUTER|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2867
+PadnamePV||5.019003|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2868
+PadnameSV||5.019003|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2869
+PadnameTYPE|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2870
+PadnameUTF8||5.019003|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2871
+PadnamelistARRAY||5.019003|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2872
+PadnamelistMAX||5.019003|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2873
+PerlIO_clearerr||5.007003|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2874
+PerlIO_close||5.007003|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2875
+PerlIO_context_layers||5.009004|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2876
+PerlIO_eof||5.007003|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2877
+PerlIO_error||5.007003|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2878
+PerlIO_fileno||5.007003|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2879
+PerlIO_fill||5.007003|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2880
+PerlIO_flush||5.007003|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2881
+PerlIO_get_base||5.007003|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2882
+PerlIO_get_bufsiz||5.007003|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2883
+PerlIO_get_cnt||5.007003|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2884
+PerlIO_get_ptr||5.007003|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2885
+PerlIO_read||5.007003|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2886
+PerlIO_seek||5.007003|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2887
+PerlIO_set_cnt||5.007003|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2888
+PerlIO_set_ptrcnt||5.007003|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2889
+PerlIO_setlinebuf||5.007003|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2890
+PerlIO_stderr||5.007003|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2891
+PerlIO_stdin||5.007003|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2892
+PerlIO_stdout||5.007003|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2893
+PerlIO_tell||5.007003|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2894
+PerlIO_unread||5.007003|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2895
+PerlIO_write||5.007003|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2896
+Perl_signbit||5.009005|n
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2897
+PoisonFree|5.009004||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2898
+PoisonNew|5.009004||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2899
+PoisonWith|5.009004||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2900
+Poison|5.008000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2901
+READ_XDIGIT||5.017006|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2902
+RETVAL|||n
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2903
+Renewc|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2904
+Renew|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2905
+SAVECLEARSV|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2906
+SAVECOMPPAD|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2907
+SAVEPADSV|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2908
+SAVETMPS|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2909
+SAVE_DEFSV|5.004050||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2910
+SPAGAIN|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2911
+SP|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2912
+START_EXTERN_C|5.005000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2913
+START_MY_CXT|5.007003||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2914
+STMT_END|||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2915
+STMT_START|||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2916
+STR_WITH_LEN|5.009003||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2917
+ST|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2918
+SV_CONST_RETURN|5.009003||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2919
+SV_COW_DROP_PV|5.008001||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2920
+SV_COW_SHARED_HASH_KEYS|5.009005||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2921
+SV_GMAGIC|5.007002||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2922
+SV_HAS_TRAILING_NUL|5.009004||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2923
+SV_IMMEDIATE_UNREF|5.007001||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2924
+SV_MUTABLE_RETURN|5.009003||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2925
+SV_NOSTEAL|5.009002||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2926
+SV_SMAGIC|5.009003||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2927
+SV_UTF8_NO_ENCODING|5.008001||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2928
+SVfARG|5.009005||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2929
+SVf_UTF8|5.006000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2930
+SVf|5.006000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2931
+SVt_INVLIST||5.019002|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2932
+SVt_IV|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2933
+SVt_NULL|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2934
+SVt_NV|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2935
+SVt_PVAV|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2936
+SVt_PVCV|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2937
+SVt_PVFM|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2938
+SVt_PVGV|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2939
+SVt_PVHV|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2940
+SVt_PVIO|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2941
+SVt_PVIV|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2942
+SVt_PVLV|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2943
+SVt_PVMG|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2944
+SVt_PVNV|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2945
+SVt_PV|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2946
+SVt_REGEXP||5.011000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2947
+Safefree|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2948
+Slab_Alloc|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2949
+Slab_Free|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2950
+Slab_to_ro|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2951
+Slab_to_rw|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2952
+StructCopy|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2953
+SvCUR_set|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2954
+SvCUR|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2955
+SvEND|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2956
+SvGAMAGIC||5.006001|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2957
+SvGETMAGIC|5.004050||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2958
+SvGROW|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2959
+SvIOK_UV||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2960
+SvIOK_notUV||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2961
+SvIOK_off|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2962
+SvIOK_only_UV||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2963
+SvIOK_only|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2964
+SvIOK_on|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2965
+SvIOKp|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2966
+SvIOK|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2967
+SvIVX|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2968
+SvIV_nomg|5.009001||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2969
+SvIV_set|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2970
+SvIVx|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2971
+SvIV|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2972
+SvIsCOW_shared_hash||5.008003|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2973
+SvIsCOW||5.008003|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2974
+SvLEN_set|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2975
+SvLEN|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2976
+SvLOCK||5.007003|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2977
+SvMAGIC_set|5.009003||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2978
+SvNIOK_off|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2979
+SvNIOKp|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2980
+SvNIOK|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2981
+SvNOK_off|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2982
+SvNOK_only|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2983
+SvNOK_on|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2984
+SvNOKp|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2985
+SvNOK|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2986
+SvNVX|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2987
+SvNV_nomg||5.013002|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2988
+SvNV_set|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2989
+SvNVx|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2990
+SvNV|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2991
+SvOK|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2992
+SvOOK_offset||5.011000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2993
+SvOOK|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2994
+SvPOK_off|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2995
+SvPOK_only_UTF8||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2996
+SvPOK_only|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2997
+SvPOK_on|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2998
+SvPOKp|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2999
+SvPOK|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3000
+SvPVX_const|5.009003||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3001
+SvPVX_mutable|5.009003||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3002
+SvPVX|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3003
+SvPV_const|5.009003||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3004
+SvPV_flags_const_nolen|5.009003||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3005
+SvPV_flags_const|5.009003||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3006
+SvPV_flags_mutable|5.009003||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3007
+SvPV_flags|5.007002||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3008
+SvPV_force_flags_mutable|5.009003||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3009
+SvPV_force_flags_nolen|5.009003||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3010
+SvPV_force_flags|5.007002||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3011
+SvPV_force_mutable|5.009003||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3012
+SvPV_force_nolen|5.009003||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3013
+SvPV_force_nomg_nolen|5.009003||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3014
+SvPV_force_nomg|5.007002||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3015
+SvPV_force|||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3016
+SvPV_mutable|5.009003||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3017
+SvPV_nolen_const|5.009003||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3018
+SvPV_nolen|5.006000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3019
+SvPV_nomg_const_nolen|5.009003||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3020
+SvPV_nomg_const|5.009003||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3021
+SvPV_nomg_nolen|5.013007||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3022
+SvPV_nomg|5.007002||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3023
+SvPV_renew|5.009003||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3024
+SvPV_set|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3025
+SvPVbyte_force||5.009002|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3026
+SvPVbyte_nolen||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3027
+SvPVbytex_force||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3028
+SvPVbytex||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3029
+SvPVbyte|5.006000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3030
+SvPVutf8_force||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3031
+SvPVutf8_nolen||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3032
+SvPVutf8x_force||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3033
+SvPVutf8x||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3034
+SvPVutf8||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3035
+SvPVx|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3036
+SvPV|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3037
+SvREFCNT_dec_NN||5.017007|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3038
+SvREFCNT_dec|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3039
+SvREFCNT_inc_NN|5.009004||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3040
+SvREFCNT_inc_simple_NN|5.009004||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3041
+SvREFCNT_inc_simple_void_NN|5.009004||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3042
+SvREFCNT_inc_simple_void|5.009004||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3043
+SvREFCNT_inc_simple|5.009004||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3044
+SvREFCNT_inc_void_NN|5.009004||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3045
+SvREFCNT_inc_void|5.009004||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3046
+SvREFCNT_inc|||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3047
+SvREFCNT|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3048
+SvROK_off|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3049
+SvROK_on|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3050
+SvROK|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3051
+SvRV_set|5.009003||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3052
+SvRV|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3053
+SvRXOK||5.009005|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3054
+SvRX||5.009005|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3055
+SvSETMAGIC|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3056
+SvSHARED_HASH|5.009003||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3057
+SvSHARE||5.007003|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3058
+SvSTASH_set|5.009003||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3059
+SvSTASH|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3060
+SvSetMagicSV_nosteal||5.004000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3061
+SvSetMagicSV||5.004000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3062
+SvSetSV_nosteal||5.004000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3063
+SvSetSV|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3064
+SvTAINTED_off||5.004000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3065
+SvTAINTED_on||5.004000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3066
+SvTAINTED||5.004000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3067
+SvTAINT|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3068
+SvTHINKFIRST|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3069
+SvTRUE_nomg||5.013006|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3070
+SvTRUE|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3071
+SvTYPE|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3072
+SvUNLOCK||5.007003|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3073
+SvUOK|5.007001|5.006000|p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3074
+SvUPGRADE|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3075
+SvUTF8_off||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3076
+SvUTF8_on||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3077
+SvUTF8||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3078
+SvUVXx|5.004000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3079
+SvUVX|5.004000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3080
+SvUV_nomg|5.009001||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3081
+SvUV_set|5.009003||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3082
+SvUVx|5.004000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3083
+SvUV|5.004000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3084
+SvVOK||5.008001|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3085
+SvVSTRING_mg|5.009004||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3086
+THIS|||n
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3087
+UNDERBAR|5.009002||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3088
+UTF8_MAXBYTES|5.009002||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3089
+UVSIZE|5.006000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3090
+UVTYPE|5.006000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3091
+UVXf|5.007001||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3092
+UVof|5.006000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3093
+UVuf|5.006000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3094
+UVxf|5.006000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3095
+WARN_ALL|5.006000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3096
+WARN_AMBIGUOUS|5.006000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3097
+WARN_ASSERTIONS|5.019002||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3098
+WARN_BAREWORD|5.006000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3099
+WARN_CLOSED|5.006000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3100
+WARN_CLOSURE|5.006000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3101
+WARN_DEBUGGING|5.006000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3102
+WARN_DEPRECATED|5.006000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3103
+WARN_DIGIT|5.006000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3104
+WARN_EXEC|5.006000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3105
+WARN_EXITING|5.006000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3106
+WARN_GLOB|5.006000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3107
+WARN_INPLACE|5.006000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3108
+WARN_INTERNAL|5.006000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3109
+WARN_IO|5.006000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3110
+WARN_LAYER|5.008000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3111
+WARN_MALLOC|5.006000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3112
+WARN_MISC|5.006000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3113
+WARN_NEWLINE|5.006000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3114
+WARN_NUMERIC|5.006000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3115
+WARN_ONCE|5.006000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3116
+WARN_OVERFLOW|5.006000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3117
+WARN_PACK|5.006000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3118
+WARN_PARENTHESIS|5.006000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3119
+WARN_PIPE|5.006000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3120
+WARN_PORTABLE|5.006000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3121
+WARN_PRECEDENCE|5.006000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3122
+WARN_PRINTF|5.006000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3123
+WARN_PROTOTYPE|5.006000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3124
+WARN_QW|5.006000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3125
+WARN_RECURSION|5.006000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3126
+WARN_REDEFINE|5.006000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3127
+WARN_REGEXP|5.006000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3128
+WARN_RESERVED|5.006000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3129
+WARN_SEMICOLON|5.006000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3130
+WARN_SEVERE|5.006000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3131
+WARN_SIGNAL|5.006000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3132
+WARN_SUBSTR|5.006000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3133
+WARN_SYNTAX|5.006000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3134
+WARN_TAINT|5.006000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3135
+WARN_THREADS|5.008000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3136
+WARN_UNINITIALIZED|5.006000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3137
+WARN_UNOPENED|5.006000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3138
+WARN_UNPACK|5.006000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3139
+WARN_UNTIE|5.006000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3140
+WARN_UTF8|5.006000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3141
+WARN_VOID|5.006000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3142
+WIDEST_UTYPE|5.015004||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3143
+XCPT_CATCH|5.009002||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3144
+XCPT_RETHROW|5.009002|5.007001|p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3145
+XCPT_TRY_END|5.009002|5.004000|p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3146
+XCPT_TRY_START|5.009002|5.004000|p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3147
+XPUSHi|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3148
+XPUSHmortal|5.009002||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3149
+XPUSHn|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3150
+XPUSHp|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3151
+XPUSHs|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3152
+XPUSHu|5.004000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3153
+XSPROTO|5.010000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3154
+XSRETURN_EMPTY|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3155
+XSRETURN_IV|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3156
+XSRETURN_NO|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3157
+XSRETURN_NV|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3158
+XSRETURN_PV|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3159
+XSRETURN_UNDEF|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3160
+XSRETURN_UV|5.008001||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3161
+XSRETURN_YES|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3162
+XSRETURN|||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3163
+XST_mIV|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3164
+XST_mNO|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3165
+XST_mNV|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3166
+XST_mPV|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3167
+XST_mUNDEF|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3168
+XST_mUV|5.008001||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3169
+XST_mYES|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3170
+XS_APIVERSION_BOOTCHECK||5.013004|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3171
+XS_EXTERNAL||5.019003|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3172
+XS_INTERNAL||5.019003|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3173
+XS_VERSION_BOOTCHECK|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3174
+XS_VERSION|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3175
+XSprePUSH|5.006000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3176
+XS|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3177
+XopDISABLE||5.019003|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3178
+XopENABLE||5.019003|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3179
+XopENTRY_set||5.019003|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3180
+XopENTRY||5.019003|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3181
+XopFLAGS||5.013007|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3182
+ZeroD|5.009002||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3183
+Zero|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3184
+_aMY_CXT|5.007003||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3185
+_add_range_to_invlist|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3186
+_append_range_to_invlist|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3187
+_core_swash_init|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3188
+_get_swash_invlist|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3189
+_invlist_array_init|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3190
+_invlist_contains_cp|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3191
+_invlist_contents|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3192
+_invlist_dump|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3193
+_invlist_intersection_maybe_complement_2nd|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3194
+_invlist_intersection|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3195
+_invlist_invert_prop|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3196
+_invlist_invert|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3197
+_invlist_len|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3198
+_invlist_populate_swatch|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3199
+_invlist_search|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3200
+_invlist_subtract|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3201
+_invlist_union_maybe_complement_2nd|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3202
+_invlist_union|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3203
+_is_uni_FOO||5.017008|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3204
+_is_uni_perl_idcont||5.017008|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3205
+_is_uni_perl_idstart||5.017007|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3206
+_is_utf8_FOO||5.017008|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3207
+_is_utf8_mark||5.017008|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3208
+_is_utf8_perl_idcont||5.017008|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3209
+_is_utf8_perl_idstart||5.017007|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3210
+_new_invlist_C_array|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3211
+_new_invlist|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3212
+_pMY_CXT|5.007003||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3213
+_swash_inversion_hash|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3214
+_swash_to_invlist|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3215
+_to_fold_latin1|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3216
+_to_uni_fold_flags||5.013011|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3217
+_to_upper_title_latin1|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3218
+_to_utf8_fold_flags||5.015006|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3219
+_to_utf8_lower_flags||5.015006|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3220
+_to_utf8_title_flags||5.015006|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3221
+_to_utf8_upper_flags||5.015006|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3222
+aMY_CXT_|5.007003||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3223
+aMY_CXT|5.007003||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3224
+aTHXR_|5.019002||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3225
+aTHXR|5.019002||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3226
+aTHX_|5.006000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3227
+aTHX|5.006000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3228
+aassign_common_vars|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3229
+add_cp_to_invlist|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3230
+add_data|||n
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3231
+add_utf16_textfilter|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3232
+addmad|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3233
+adjust_size_and_find_bucket|||n
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3234
+adjust_stack_on_leave|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3235
+alloc_maybe_populate_EXACT|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3236
+alloccopstash|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3237
+allocmy|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3238
+amagic_call|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3239
+amagic_cmp_locale|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3240
+amagic_cmp|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3241
+amagic_deref_call||5.013007|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3242
+amagic_i_ncmp|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3243
+amagic_is_enabled|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3244
+amagic_ncmp|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3245
+anonymise_cv_maybe|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3246
+any_dup|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3247
+ao|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3248
+append_madprops|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3249
+apply_attrs_my|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3250
+apply_attrs_string||5.006001|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3251
+apply_attrs|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3252
+apply|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3253
+assert_uft8_cache_coherent|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3254
+atfork_lock||5.007003|n
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3255
+atfork_unlock||5.007003|n
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3256
+av_arylen_p||5.009003|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3257
+av_clear|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3258
+av_create_and_push||5.009005|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3259
+av_create_and_unshift_one||5.009005|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3260
+av_delete||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3261
+av_exists||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3262
+av_extend_guts|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3263
+av_extend|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3264
+av_fetch|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3265
+av_fill|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3266
+av_iter_p||5.011000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3267
+av_len|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3268
+av_make|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3269
+av_pop|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3270
+av_push|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3271
+av_reify|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3272
+av_shift|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3273
+av_store|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3274
+av_tindex||5.017009|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3275
+av_top_index||5.017009|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3276
+av_undef|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3277
+av_unshift|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3278
+ax|||n
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3279
+bad_type_gv|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3280
+bad_type_pv|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3281
+bind_match|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3282
+block_end|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3283
+block_gimme||5.004000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3284
+block_start|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3285
+blockhook_register||5.013003|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3286
+boolSV|5.004000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3287
+boot_core_PerlIO|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3288
+boot_core_UNIVERSAL|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3289
+boot_core_mro|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3290
+bytes_cmp_utf8||5.013007|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3291
+bytes_from_utf8||5.007001|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3292
+bytes_to_uni|||n
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3293
+bytes_to_utf8||5.006001|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3294
+call_argv|5.006000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3295
+call_atexit||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3296
+call_list||5.004000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3297
+call_method|5.006000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3298
+call_pv|5.006000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3299
+call_sv|5.006000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3300
+caller_cx||5.013005|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3301
+calloc||5.007002|n
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3302
+cando|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3303
+cast_i32||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3304
+cast_iv||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3305
+cast_ulong||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3306
+cast_uv||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3307
+check_locale_boundary_crossing|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3308
+check_type_and_open|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3309
+check_uni|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3310
+check_utf8_print|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3311
+checkcomma|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3312
+ckWARN|5.006000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3313
+ck_entersub_args_core|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3314
+ck_entersub_args_list||5.013006|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3315
+ck_entersub_args_proto_or_list||5.013006|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3316
+ck_entersub_args_proto||5.013006|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3317
+ck_warner_d||5.011001|v
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3318
+ck_warner||5.011001|v
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3319
+ckwarn_common|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3320
+ckwarn_d||5.009003|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3321
+ckwarn||5.009003|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3322
+cl_and|||n
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3323
+cl_anything|||n
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3324
+cl_init|||n
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3325
+cl_is_anything|||n
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3326
+cl_or|||n
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3327
+clear_placeholders|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3328
+clone_params_del|||n
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3329
+clone_params_new|||n
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3330
+closest_cop|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3331
+compute_EXACTish|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3332
+convert|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3333
+cop_fetch_label||5.015001|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3334
+cop_free|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3335
+cop_hints_2hv||5.013007|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3336
+cop_hints_fetch_pvn||5.013007|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3337
+cop_hints_fetch_pvs||5.013007|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3338
+cop_hints_fetch_pv||5.013007|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3339
+cop_hints_fetch_sv||5.013007|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3340
+cop_store_label||5.015001|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3341
+cophh_2hv||5.013007|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3342
+cophh_copy||5.013007|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3343
+cophh_delete_pvn||5.013007|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3344
+cophh_delete_pvs||5.013007|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3345
+cophh_delete_pv||5.013007|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3346
+cophh_delete_sv||5.013007|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3347
+cophh_fetch_pvn||5.013007|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3348
+cophh_fetch_pvs||5.013007|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3349
+cophh_fetch_pv||5.013007|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3350
+cophh_fetch_sv||5.013007|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3351
+cophh_free||5.013007|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3352
+cophh_new_empty||5.019003|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3353
+cophh_store_pvn||5.013007|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3354
+cophh_store_pvs||5.013007|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3355
+cophh_store_pv||5.013007|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3356
+cophh_store_sv||5.013007|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3357
+core_prototype|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3358
+core_regclass_swash|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3359
+coresub_op|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3360
+could_it_be_a_POSIX_class|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3361
+cr_textfilter|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3362
+create_eval_scope|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3363
+croak_memory_wrap||5.019003|n
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3364
+croak_no_mem|||n
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3365
+croak_no_modify||5.013003|n
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3366
+croak_nocontext|||vn
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3367
+croak_popstack|||n
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3368
+croak_sv||5.013001|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3369
+croak_xs_usage||5.010001|n
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3370
+croak|||v
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3371
+csighandler||5.009003|n
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3372
+curmad|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3373
+current_re_engine|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3374
+curse|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3375
+custom_op_desc||5.007003|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3376
+custom_op_name||5.007003|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3377
+custom_op_register||5.013007|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3378
+custom_op_xop||5.013007|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3379
+cv_ckproto_len_flags|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3380
+cv_clone_into|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3381
+cv_clone|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3382
+cv_const_sv_or_av|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3383
+cv_const_sv||5.004000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3384
+cv_dump|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3385
+cv_forget_slab|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3386
+cv_get_call_checker||5.013006|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3387
+cv_set_call_checker||5.013006|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3388
+cv_undef|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3389
+cvgv_set|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3390
+cvstash_set|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3391
+cx_dump||5.005000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3392
+cx_dup|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3393
+cxinc|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3394
+dAXMARK|5.009003||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3395
+dAX|5.007002||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3396
+dITEMS|5.007002||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3397
+dMARK|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3398
+dMULTICALL||5.009003|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3399
+dMY_CXT_SV|5.007003||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3400
+dMY_CXT|5.007003||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3401
+dNOOP|5.006000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3402
+dORIGMARK|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3403
+dSP|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3404
+dTHR|5.004050||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3405
+dTHXR|5.019002||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3406
+dTHXa|5.006000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3407
+dTHXoa|5.006000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3408
+dTHX|5.006000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3409
+dUNDERBAR|5.009002||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3410
+dVAR|5.009003||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3411
+dXCPT|5.009002||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3412
+dXSARGS|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3413
+dXSI32|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3414
+dXSTARG|5.006000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3415
+deb_curcv|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3416
+deb_nocontext|||vn
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3417
+deb_stack_all|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3418
+deb_stack_n|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3419
+debop||5.005000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3420
+debprofdump||5.005000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3421
+debprof|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3422
+debstackptrs||5.007003|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3423
+debstack||5.007003|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3424
+debug_start_match|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3425
+deb||5.007003|v
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3426
+defelem_target|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3427
+del_sv|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3428
+delete_eval_scope|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3429
+delimcpy||5.004000|n
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3430
+deprecate_commaless_var_list|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3431
+despatch_signals||5.007001|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3432
+destroy_matcher|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3433
+die_nocontext|||vn
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3434
+die_sv||5.013001|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3435
+die_unwind|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3436
+die|||v
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3437
+dirp_dup|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3438
+div128|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3439
+djSP|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3440
+do_aexec5|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3441
+do_aexec|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3442
+do_aspawn|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3443
+do_binmode||5.004050|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3444
+do_chomp|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3445
+do_close|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3446
+do_delete_local|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3447
+do_dump_pad|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3448
+do_eof|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3449
+do_exec3|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3450
+do_execfree|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3451
+do_exec|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3452
+do_gv_dump||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3453
+do_gvgv_dump||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3454
+do_hv_dump||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3455
+do_ipcctl|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3456
+do_ipcget|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3457
+do_join|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3458
+do_magic_dump||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3459
+do_msgrcv|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3460
+do_msgsnd|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3461
+do_ncmp|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3462
+do_oddball|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3463
+do_op_dump||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3464
+do_op_xmldump|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3465
+do_open9||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3466
+do_openn||5.007001|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3467
+do_open||5.004000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3468
+do_pmop_dump||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3469
+do_pmop_xmldump|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3470
+do_print|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3471
+do_readline|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3472
+do_seek|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3473
+do_semop|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3474
+do_shmio|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3475
+do_smartmatch|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3476
+do_spawn_nowait|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3477
+do_spawn|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3478
+do_sprintf|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3479
+do_sv_dump||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3480
+do_sysseek|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3481
+do_tell|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3482
+do_trans_complex_utf8|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3483
+do_trans_complex|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3484
+do_trans_count_utf8|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3485
+do_trans_count|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3486
+do_trans_simple_utf8|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3487
+do_trans_simple|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3488
+do_trans|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3489
+do_vecget|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3490
+do_vecset|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3491
+do_vop|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3492
+docatch|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3493
+doeval|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3494
+dofile|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3495
+dofindlabel|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3496
+doform|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3497
+doing_taint||5.008001|n
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3498
+dooneliner|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3499
+doopen_pm|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3500
+doparseform|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3501
+dopoptoeval|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3502
+dopoptogiven|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3503
+dopoptolabel|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3504
+dopoptoloop|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3505
+dopoptosub_at|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3506
+dopoptowhen|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3507
+doref||5.009003|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3508
+dounwind|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3509
+dowantarray|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3510
+dump_all_perl|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3511
+dump_all||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3512
+dump_eval||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3513
+dump_exec_pos|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3514
+dump_fds|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3515
+dump_form||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3516
+dump_indent||5.006000|v
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3517
+dump_mstats|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3518
+dump_packsubs_perl|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3519
+dump_packsubs||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3520
+dump_sub_perl|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3521
+dump_sub||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3522
+dump_sv_child|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3523
+dump_trie_interim_list|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3524
+dump_trie_interim_table|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3525
+dump_trie|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3526
+dump_vindent||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3527
+dumpuntil|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3528
+dup_attrlist|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3529
+emulate_cop_io|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3530
+eval_pv|5.006000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3531
+eval_sv|5.006000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3532
+exec_failed|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3533
+expect_number|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3534
+fbm_compile||5.005000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3535
+fbm_instr||5.005000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3536
+feature_is_enabled|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3537
+filter_add|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3538
+filter_del|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3539
+filter_gets|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3540
+filter_read|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3541
+finalize_optree|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3542
+finalize_op|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3543
+find_and_forget_pmops|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3544
+find_array_subscript|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3545
+find_beginning|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3546
+find_byclass|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3547
+find_hash_subscript|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3548
+find_in_my_stash|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3549
+find_lexical_cv|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3550
+find_runcv_where|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3551
+find_runcv||5.008001|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3552
+find_rundefsv2|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3553
+find_rundefsvoffset||5.009002|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3554
+find_rundefsv||5.013002|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3555
+find_script|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3556
+find_uninit_var|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3557
+first_symbol|||n
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3558
+foldEQ_latin1||5.013008|n
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3559
+foldEQ_locale||5.013002|n
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3560
+foldEQ_utf8_flags||5.013010|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3561
+foldEQ_utf8||5.013002|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3562
+foldEQ||5.013002|n
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3563
+fold_constants|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3564
+forbid_setid|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3565
+force_ident_maybe_lex|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3566
+force_ident|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3567
+force_list|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3568
+force_next|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3569
+force_strict_version|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3570
+force_version|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3571
+force_word|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3572
+forget_pmop|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3573
+form_nocontext|||vn
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3574
+form_short_octal_warning|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3575
+form||5.004000|v
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3576
+fp_dup|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3577
+fprintf_nocontext|||vn
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3578
+free_global_struct|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3579
+free_tied_hv_pool|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3580
+free_tmps|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3581
+gen_constant_list|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3582
+get_and_check_backslash_N_name|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3583
+get_aux_mg|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3584
+get_av|5.006000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3585
+get_context||5.006000|n
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3586
+get_cvn_flags|5.009005||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3587
+get_cvs|5.011000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3588
+get_cv|5.006000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3589
+get_db_sub|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3590
+get_debug_opts|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3591
+get_hash_seed|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3592
+get_hv|5.006000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3593
+get_invlist_iter_addr|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3594
+get_invlist_offset_addr|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3595
+get_invlist_previous_index_addr|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3596
+get_mstats|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3597
+get_no_modify|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3598
+get_num|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3599
+get_op_descs||5.005000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3600
+get_op_names||5.005000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3601
+get_opargs|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3602
+get_ppaddr||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3603
+get_re_arg|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3604
+get_sv|5.006000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3605
+get_vtbl||5.005030|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3606
+getcwd_sv||5.007002|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3607
+getenv_len|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3608
+glob_2number|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3609
+glob_assign_glob|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3610
+glob_assign_ref|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3611
+gp_dup|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3612
+gp_free|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3613
+gp_ref|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3614
+grok_bin|5.007003||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3615
+grok_bslash_N|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3616
+grok_bslash_c|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3617
+grok_bslash_o|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3618
+grok_bslash_x|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3619
+grok_hex|5.007003||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3620
+grok_number|5.007002||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3621
+grok_numeric_radix|5.007002||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3622
+grok_oct|5.007003||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3623
+group_end|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3624
+gv_AVadd|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3625
+gv_HVadd|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3626
+gv_IOadd|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3627
+gv_SVadd|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3628
+gv_add_by_type||5.011000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3629
+gv_autoload4||5.004000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3630
+gv_autoload_pvn||5.015004|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3631
+gv_autoload_pv||5.015004|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3632
+gv_autoload_sv||5.015004|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3633
+gv_check|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3634
+gv_const_sv||5.009003|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3635
+gv_dump||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3636
+gv_efullname3||5.004000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3637
+gv_efullname4||5.006001|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3638
+gv_efullname|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3639
+gv_ename|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3640
+gv_fetchfile_flags||5.009005|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3641
+gv_fetchfile|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3642
+gv_fetchmeth_autoload||5.007003|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3643
+gv_fetchmeth_pv_autoload||5.015004|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3644
+gv_fetchmeth_pvn_autoload||5.015004|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3645
+gv_fetchmeth_pvn||5.015004|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3646
+gv_fetchmeth_pv||5.015004|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3647
+gv_fetchmeth_sv_autoload||5.015004|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3648
+gv_fetchmeth_sv||5.015004|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3649
+gv_fetchmethod_autoload||5.004000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3650
+gv_fetchmethod_pv_flags||5.015004|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3651
+gv_fetchmethod_pvn_flags||5.015004|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3652
+gv_fetchmethod_sv_flags||5.015004|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3653
+gv_fetchmethod|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3654
+gv_fetchmeth|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3655
+gv_fetchpvn_flags|5.009002||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3656
+gv_fetchpvs|5.009004||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3657
+gv_fetchpv|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3658
+gv_fetchsv|5.009002||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3659
+gv_fullname3||5.004000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3660
+gv_fullname4||5.006001|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3661
+gv_fullname|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3662
+gv_handler||5.007001|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3663
+gv_init_pvn||5.015004|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3664
+gv_init_pv||5.015004|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3665
+gv_init_svtype|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3666
+gv_init_sv||5.015004|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3667
+gv_init|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3668
+gv_magicalize_isa|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3669
+gv_name_set||5.009004|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3670
+gv_stashpvn|5.004000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3671
+gv_stashpvs|5.009003||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3672
+gv_stashpv|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3673
+gv_stashsv|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3674
+gv_try_downgrade|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3675
+handle_regex_sets|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3676
+he_dup|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3677
+hek_dup|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3678
+hfree_next_entry|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3679
+hfreeentries|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3680
+hsplit|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3681
+hv_assert|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3682
+hv_auxinit|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3683
+hv_backreferences_p|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3684
+hv_clear_placeholders||5.009001|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3685
+hv_clear|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3686
+hv_common_key_len||5.010000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3687
+hv_common||5.010000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3688
+hv_copy_hints_hv||5.009004|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3689
+hv_delayfree_ent||5.004000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3690
+hv_delete_common|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3691
+hv_delete_ent||5.004000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3692
+hv_delete|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3693
+hv_eiter_p||5.009003|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3694
+hv_eiter_set||5.009003|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3695
+hv_ename_add|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3696
+hv_ename_delete|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3697
+hv_exists_ent||5.004000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3698
+hv_exists|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3699
+hv_fetch_ent||5.004000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3700
+hv_fetchs|5.009003||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3701
+hv_fetch|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3702
+hv_fill||5.013002|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3703
+hv_free_ent_ret|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3704
+hv_free_ent||5.004000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3705
+hv_iterinit|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3706
+hv_iterkeysv||5.004000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3707
+hv_iterkey|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3708
+hv_iternext_flags||5.008000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3709
+hv_iternextsv|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3710
+hv_iternext|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3711
+hv_iterval|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3712
+hv_kill_backrefs|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3713
+hv_ksplit||5.004000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3714
+hv_magic_check|||n
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3715
+hv_magic|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3716
+hv_name_set||5.009003|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3717
+hv_notallowed|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3718
+hv_placeholders_get||5.009003|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3719
+hv_placeholders_p|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3720
+hv_placeholders_set||5.009003|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3721
+hv_rand_set||5.017011|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3722
+hv_riter_p||5.009003|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3723
+hv_riter_set||5.009003|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3724
+hv_scalar||5.009001|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3725
+hv_store_ent||5.004000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3726
+hv_store_flags||5.008000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3727
+hv_stores|5.009004||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3728
+hv_store|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3729
+hv_undef_flags|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3730
+hv_undef|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3731
+ibcmp_locale||5.004000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3732
+ibcmp_utf8||5.007003|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3733
+ibcmp|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3734
+incline|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3735
+incpush_if_exists|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3736
+incpush_use_sep|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3737
+incpush|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3738
+ingroup|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3739
+init_argv_symbols|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3740
+init_constants|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3741
+init_dbargs|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3742
+init_debugger|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3743
+init_global_struct|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3744
+init_i18nl10n||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3745
+init_i18nl14n||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3746
+init_ids|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3747
+init_interp|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3748
+init_main_stash|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3749
+init_perllib|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3750
+init_postdump_symbols|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3751
+init_predump_symbols|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3752
+init_stacks||5.005000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3753
+init_tm||5.007002|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3754
+inplace_aassign|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3755
+instr|||n
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3756
+intro_my|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3757
+intuit_method|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3758
+intuit_more|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3759
+invert|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3760
+invlist_array|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3761
+invlist_clone|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3762
+invlist_extend|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3763
+invlist_highest|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3764
+invlist_is_iterating|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3765
+invlist_iterfinish|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3766
+invlist_iterinit|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3767
+invlist_iternext|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3768
+invlist_max|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3769
+invlist_previous_index|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3770
+invlist_set_len|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3771
+invlist_set_previous_index|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3772
+invlist_trim|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3773
+invoke_exception_hook|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3774
+io_close|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3775
+isALNUMC|5.006000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3776
+isALNUM_lazy|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3777
+isALPHANUMERIC||5.017008|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3778
+isALPHA|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3779
+isASCII|5.006000|5.006000|p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3780
+isBLANK|5.006001||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3781
+isCNTRL|5.006000|5.006000|p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3782
+isDIGIT|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3783
+isFOO_lc|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3784
+isFOO_utf8_lc|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3785
+isGRAPH|5.006000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3786
+isGV_with_GP|5.009004||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3787
+isIDCONT||5.017008|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3788
+isIDFIRST_lazy|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3789
+isIDFIRST|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3790
+isLOWER|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3791
+isOCTAL||5.013005|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3792
+isPRINT|5.004000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3793
+isPSXSPC|5.006001||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3794
+isPUNCT|5.006000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3795
+isSPACE|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3796
+isUPPER|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3797
+isWORDCHAR||5.013006|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3798
+isXDIGIT|5.006000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3799
+is_an_int|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3800
+is_ascii_string||5.011000|n
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3801
+is_cur_LC_category_utf8|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3802
+is_handle_constructor|||n
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3803
+is_list_assignment|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3804
+is_lvalue_sub||5.007001|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3805
+is_uni_alnum_lc||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3806
+is_uni_alnumc_lc||5.017007|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3807
+is_uni_alnumc||5.017007|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3808
+is_uni_alnum||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3809
+is_uni_alpha_lc||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3810
+is_uni_alpha||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3811
+is_uni_ascii_lc||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3812
+is_uni_ascii||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3813
+is_uni_blank_lc||5.017002|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3814
+is_uni_blank||5.017002|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3815
+is_uni_cntrl_lc||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3816
+is_uni_cntrl||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3817
+is_uni_digit_lc||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3818
+is_uni_digit||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3819
+is_uni_graph_lc||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3820
+is_uni_graph||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3821
+is_uni_idfirst_lc||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3822
+is_uni_idfirst||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3823
+is_uni_lower_lc||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3824
+is_uni_lower||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3825
+is_uni_print_lc||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3826
+is_uni_print||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3827
+is_uni_punct_lc||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3828
+is_uni_punct||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3829
+is_uni_space_lc||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3830
+is_uni_space||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3831
+is_uni_upper_lc||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3832
+is_uni_upper||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3833
+is_uni_xdigit_lc||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3834
+is_uni_xdigit||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3835
+is_utf8_alnumc||5.017007|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3836
+is_utf8_alnum||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3837
+is_utf8_alpha||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3838
+is_utf8_ascii||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3839
+is_utf8_blank||5.017002|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3840
+is_utf8_char_buf||5.015008|n
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3841
+is_utf8_char_slow|||n
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3842
+is_utf8_char||5.006000|n
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3843
+is_utf8_cntrl||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3844
+is_utf8_common|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3845
+is_utf8_digit||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3846
+is_utf8_graph||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3847
+is_utf8_idcont||5.008000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3848
+is_utf8_idfirst||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3849
+is_utf8_lower||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3850
+is_utf8_mark||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3851
+is_utf8_perl_space||5.011001|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3852
+is_utf8_perl_word||5.011001|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3853
+is_utf8_posix_digit||5.011001|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3854
+is_utf8_print||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3855
+is_utf8_punct||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3856
+is_utf8_space||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3857
+is_utf8_string_loclen||5.009003|n
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3858
+is_utf8_string_loc||5.008001|n
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3859
+is_utf8_string||5.006001|n
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3860
+is_utf8_upper||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3861
+is_utf8_xdigit||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3862
+is_utf8_xidcont||5.013010|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3863
+is_utf8_xidfirst||5.013010|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3864
+isa_lookup|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3865
+items|||n
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3866
+ix|||n
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3867
+jmaybe|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3868
+join_exact|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3869
+keyword_plugin_standard|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3870
+keyword|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3871
+leave_scope|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3872
+lex_bufutf8||5.011002|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3873
+lex_discard_to||5.011002|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3874
+lex_grow_linestr||5.011002|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3875
+lex_next_chunk||5.011002|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3876
+lex_peek_unichar||5.011002|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3877
+lex_read_space||5.011002|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3878
+lex_read_to||5.011002|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3879
+lex_read_unichar||5.011002|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3880
+lex_start||5.009005|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3881
+lex_stuff_pvn||5.011002|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3882
+lex_stuff_pvs||5.013005|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3883
+lex_stuff_pv||5.013006|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3884
+lex_stuff_sv||5.011002|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3885
+lex_unstuff||5.011002|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3886
+listkids|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3887
+list|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3888
+load_module_nocontext|||vn
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3889
+load_module|5.006000||pv
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3890
+localize|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3891
+looks_like_bool|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3892
+looks_like_number|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3893
+lop|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3894
+mPUSHi|5.009002||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3895
+mPUSHn|5.009002||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3896
+mPUSHp|5.009002||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3897
+mPUSHs|5.010001||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3898
+mPUSHu|5.009002||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3899
+mXPUSHi|5.009002||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3900
+mXPUSHn|5.009002||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3901
+mXPUSHp|5.009002||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3902
+mXPUSHs|5.010001||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3903
+mXPUSHu|5.009002||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3904
+mad_free|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3905
+madlex|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3906
+madparse|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3907
+magic_clear_all_env|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3908
+magic_cleararylen_p|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3909
+magic_clearenv|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3910
+magic_clearhints|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3911
+magic_clearhint|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3912
+magic_clearisa|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3913
+magic_clearpack|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3914
+magic_clearsig|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3915
+magic_copycallchecker|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3916
+magic_dump||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3917
+magic_existspack|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3918
+magic_freearylen_p|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3919
+magic_freeovrld|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3920
+magic_getarylen|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3921
+magic_getdefelem|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3922
+magic_getnkeys|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3923
+magic_getpack|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3924
+magic_getpos|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3925
+magic_getsig|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3926
+magic_getsubstr|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3927
+magic_gettaint|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3928
+magic_getuvar|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3929
+magic_getvec|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3930
+magic_get|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3931
+magic_killbackrefs|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3932
+magic_methcall1|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3933
+magic_methcall|||v
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3934
+magic_methpack|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3935
+magic_nextpack|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3936
+magic_regdata_cnt|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3937
+magic_regdatum_get|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3938
+magic_regdatum_set|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3939
+magic_scalarpack|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3940
+magic_set_all_env|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3941
+magic_setarylen|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3942
+magic_setcollxfrm|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3943
+magic_setdbline|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3944
+magic_setdefelem|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3945
+magic_setenv|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3946
+magic_sethint|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3947
+magic_setisa|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3948
+magic_setmglob|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3949
+magic_setnkeys|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3950
+magic_setpack|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3951
+magic_setpos|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3952
+magic_setregexp|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3953
+magic_setsig|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3954
+magic_setsubstr|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3955
+magic_settaint|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3956
+magic_setutf8|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3957
+magic_setuvar|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3958
+magic_setvec|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3959
+magic_set|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3960
+magic_sizepack|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3961
+magic_wipepack|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3962
+make_matcher|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3963
+make_trie_failtable|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3964
+make_trie|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3965
+malloc_good_size|||n
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3966
+malloced_size|||n
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3967
+malloc||5.007002|n
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3968
+markstack_grow|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3969
+matcher_matches_sv|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3970
+mayberelocate|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3971
+measure_struct|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3972
+memEQs|5.009005||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3973
+memEQ|5.004000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3974
+memNEs|5.009005||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3975
+memNE|5.004000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3976
+mem_collxfrm|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3977
+mem_log_common|||n
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3978
+mess_alloc|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3979
+mess_nocontext|||vn
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3980
+mess_sv||5.013001|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3981
+mess||5.006000|v
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3982
+method_common|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3983
+mfree||5.007002|n
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3984
+mg_clear|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3985
+mg_copy|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3986
+mg_dup|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3987
+mg_find_mglob|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3988
+mg_findext||5.013008|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3989
+mg_find|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3990
+mg_free_type||5.013006|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3991
+mg_free|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3992
+mg_get|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3993
+mg_length||5.005000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3994
+mg_localize|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3995
+mg_magical|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3996
+mg_set|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3997
+mg_size||5.005000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3998
+mini_mktime||5.007002|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3999
+minus_v|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4000
+missingterm|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4001
+mode_from_discipline|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4002
+modkids|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4003
+more_bodies|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4004
+more_sv|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4005
+moreswitches|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4006
+mro_clean_isarev|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4007
+mro_gather_and_rename|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4008
+mro_get_from_name||5.010001|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4009
+mro_get_linear_isa_dfs|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4010
+mro_get_linear_isa||5.009005|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4011
+mro_get_private_data||5.010001|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4012
+mro_isa_changed_in|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4013
+mro_meta_dup|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4014
+mro_meta_init|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4015
+mro_method_changed_in||5.009005|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4016
+mro_package_moved|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4017
+mro_register||5.010001|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4018
+mro_set_mro||5.010001|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4019
+mro_set_private_data||5.010001|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4020
+mul128|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4021
+mulexp10|||n
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4022
+my_atof2||5.007002|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4023
+my_atof||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4024
+my_attrs|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4025
+my_bcopy|||n
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4026
+my_bzero|||n
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4027
+my_chsize|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4028
+my_clearenv|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4029
+my_cxt_index|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4030
+my_cxt_init|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4031
+my_dirfd||5.009005|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4032
+my_exit_jump|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4033
+my_exit|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4034
+my_failure_exit||5.004000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4035
+my_fflush_all||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4036
+my_fork||5.007003|n
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4037
+my_kid|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4038
+my_lstat_flags|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4039
+my_lstat||5.019003|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4040
+my_memcmp|||n
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4041
+my_memset||5.004000|n
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4042
+my_pclose||5.004000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4043
+my_popen_list||5.007001|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4044
+my_popen||5.004000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4045
+my_setenv|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4046
+my_snprintf|5.009004||pvn
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4047
+my_socketpair||5.007003|n
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4048
+my_sprintf|5.009003||pvn
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4049
+my_stat_flags|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4050
+my_stat||5.019003|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4051
+my_strftime||5.007002|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4052
+my_strlcat|5.009004||pn
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4053
+my_strlcpy|5.009004||pn
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4054
+my_unexec|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4055
+my_vsnprintf||5.009004|n
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4056
+need_utf8|||n
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4057
+newANONATTRSUB||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4058
+newANONHASH|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4059
+newANONLIST|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4060
+newANONSUB|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4061
+newASSIGNOP|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4062
+newATTRSUB_flags|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4063
+newATTRSUB||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4064
+newAVREF|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4065
+newAV|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4066
+newBINOP|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4067
+newCONDOP|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4068
+newCONSTSUB_flags||5.015006|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4069
+newCONSTSUB|5.004050||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4070
+newCVREF|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4071
+newDEFSVOP|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4072
+newFORM|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4073
+newFOROP||5.013007|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4074
+newGIVENOP||5.009003|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4075
+newGIVWHENOP|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4076
+newGP|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4077
+newGVOP|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4078
+newGVREF|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4079
+newGVgen_flags||5.015004|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4080
+newGVgen|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4081
+newHVREF|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4082
+newHVhv||5.005000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4083
+newHV|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4084
+newIO|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4085
+newLISTOP|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4086
+newLOGOP|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4087
+newLOOPEX|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4088
+newLOOPOP|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4089
+newMADPROP|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4090
+newMADsv|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4091
+newMYSUB||5.017004|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4092
+newNULLLIST|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4093
+newOP|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4094
+newPADOP|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4095
+newPMOP|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4096
+newPROG|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4097
+newPVOP|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4098
+newRANGE|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4099
+newRV_inc|5.004000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4100
+newRV_noinc|5.004000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4101
+newRV|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4102
+newSLICEOP|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4103
+newSTATEOP|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4104
+newSTUB|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4105
+newSUB|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4106
+newSVOP|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4107
+newSVREF|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4108
+newSV_type|5.009005||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4109
+newSVhek||5.009003|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4110
+newSViv|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4111
+newSVnv|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4112
+newSVpadname||5.017004|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4113
+newSVpv_share||5.013006|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4114
+newSVpvf_nocontext|||vn
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4115
+newSVpvf||5.004000|v
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4116
+newSVpvn_flags|5.010001||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4117
+newSVpvn_share|5.007001||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4118
+newSVpvn_utf8|5.010001||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4119
+newSVpvn|5.004050||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4120
+newSVpvs_flags|5.010001||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4121
+newSVpvs_share|5.009003||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4122
+newSVpvs|5.009003||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4123
+newSVpv|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4124
+newSVrv|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4125
+newSVsv|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4126
+newSVuv|5.006000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4127
+newSV|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4128
+newTOKEN|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4129
+newUNOP|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4130
+newWHENOP||5.009003|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4131
+newWHILEOP||5.013007|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4132
+newXS_flags||5.009004|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4133
+newXS_len_flags|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4134
+newXSproto||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4135
+newXS||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4136
+new_collate||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4137
+new_constant|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4138
+new_ctype||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4139
+new_he|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4140
+new_logop|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4141
+new_numeric||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4142
+new_stackinfo||5.005000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4143
+new_version||5.009000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4144
+new_warnings_bitfield|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4145
+next_symbol|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4146
+nextargv|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4147
+nextchar|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4148
+ninstr|||n
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4149
+no_bareword_allowed|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4150
+no_fh_allowed|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4151
+no_op|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4152
+not_a_number|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4153
+not_incrementable|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4154
+nothreadhook||5.008000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4155
+nuke_stacks|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4156
+num_overflow|||n
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4157
+oopsAV|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4158
+oopsHV|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4159
+op_append_elem||5.013006|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4160
+op_append_list||5.013006|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4161
+op_clear|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4162
+op_const_sv|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4163
+op_contextualize||5.013006|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4164
+op_dump||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4165
+op_free|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4166
+op_getmad_weak|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4167
+op_getmad|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4168
+op_integerize|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4169
+op_linklist||5.013006|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4170
+op_lvalue_flags|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4171
+op_lvalue||5.013007|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4172
+op_null||5.007002|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4173
+op_prepend_elem||5.013006|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4174
+op_refcnt_dec|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4175
+op_refcnt_inc|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4176
+op_refcnt_lock||5.009002|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4177
+op_refcnt_unlock||5.009002|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4178
+op_scope||5.013007|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4179
+op_std_init|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4180
+op_unscope|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4181
+op_xmldump|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4182
+open_script|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4183
+opslab_force_free|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4184
+opslab_free_nopad|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4185
+opslab_free|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4186
+pMY_CXT_|5.007003||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4187
+pMY_CXT|5.007003||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4188
+pTHX_|5.006000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4189
+pTHX|5.006000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4190
+packWARN|5.007003||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4191
+pack_cat||5.007003|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4192
+pack_rec|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4193
+package_version|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4194
+package|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4195
+packlist||5.008001|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4196
+pad_add_anon||5.008001|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4197
+pad_add_name_pvn||5.015001|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4198
+pad_add_name_pvs||5.015001|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4199
+pad_add_name_pv||5.015001|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4200
+pad_add_name_sv||5.015001|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4201
+pad_alloc_name|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4202
+pad_alloc|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4203
+pad_block_start|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4204
+pad_check_dup|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4205
+pad_compname_type||5.009003|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4206
+pad_findlex|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4207
+pad_findmy_pvn||5.015001|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4208
+pad_findmy_pvs||5.015001|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4209
+pad_findmy_pv||5.015001|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4210
+pad_findmy_sv||5.015001|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4211
+pad_fixup_inner_anons|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4212
+pad_free|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4213
+pad_leavemy|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4214
+pad_new||5.008001|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4215
+pad_peg|||n
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4216
+pad_push|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4217
+pad_reset|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4218
+pad_setsv|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4219
+pad_sv|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4220
+pad_swipe|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4221
+pad_tidy||5.008001|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4222
+padlist_dup|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4223
+padlist_store|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4224
+parse_arithexpr||5.013008|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4225
+parse_barestmt||5.013007|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4226
+parse_block||5.013007|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4227
+parse_body|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4228
+parse_fullexpr||5.013008|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4229
+parse_fullstmt||5.013005|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4230
+parse_ident|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4231
+parse_label||5.013007|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4232
+parse_listexpr||5.013008|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4233
+parse_lparen_question_flags|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4234
+parse_stmtseq||5.013006|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4235
+parse_termexpr||5.013008|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4236
+parse_unicode_opts|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4237
+parser_dup|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4238
+parser_free_nexttoke_ops|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4239
+parser_free|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4240
+path_is_searchable|||n
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4241
+peep|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4242
+pending_ident|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4243
+perl_alloc_using|||n
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4244
+perl_alloc|||n
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4245
+perl_clone_using|||n
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4246
+perl_clone|||n
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4247
+perl_construct|||n
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4248
+perl_destruct||5.007003|n
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4249
+perl_free|||n
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4250
+perl_parse||5.006000|n
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4251
+perl_run|||n
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4252
+pidgone|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4253
+pm_description|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4254
+pmop_dump||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4255
+pmop_xmldump|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4256
+pmruntime|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4257
+pmtrans|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4258
+pop_scope|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4259
+populate_isa|||v
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4260
+pregcomp||5.009005|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4261
+pregexec|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4262
+pregfree2||5.011000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4263
+pregfree|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4264
+prepend_madprops|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4265
+prescan_version||5.011004|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4266
+printbuf|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4267
+printf_nocontext|||vn
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4268
+process_special_blocks|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4269
+ptr_hash|||n
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4270
+ptr_table_clear||5.009005|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4271
+ptr_table_fetch||5.009005|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4272
+ptr_table_find|||n
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4273
+ptr_table_free||5.009005|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4274
+ptr_table_new||5.009005|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4275
+ptr_table_split||5.009005|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4276
+ptr_table_store||5.009005|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4277
+push_scope|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4278
+put_byte|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4279
+put_latin1_charclass_innards|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4280
+pv_display|5.006000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4281
+pv_escape|5.009004||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4282
+pv_pretty|5.009004||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4283
+pv_uni_display||5.007003|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4284
+qerror|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4285
+qsortsvu|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4286
+re_compile||5.009005|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4287
+re_croak2|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4288
+re_dup_guts|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4289
+re_intuit_start||5.019001|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4290
+re_intuit_string||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4291
+re_op_compile|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4292
+readpipe_override|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4293
+realloc||5.007002|n
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4294
+reentrant_free||5.019003|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4295
+reentrant_init||5.019003|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4296
+reentrant_retry||5.019003|vn
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4297
+reentrant_size||5.019003|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4298
+ref_array_or_hash|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4299
+refcounted_he_chain_2hv|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4300
+refcounted_he_fetch_pvn|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4301
+refcounted_he_fetch_pvs|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4302
+refcounted_he_fetch_pv|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4303
+refcounted_he_fetch_sv|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4304
+refcounted_he_free|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4305
+refcounted_he_inc|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4306
+refcounted_he_new_pvn|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4307
+refcounted_he_new_pvs|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4308
+refcounted_he_new_pv|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4309
+refcounted_he_new_sv|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4310
+refcounted_he_value|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4311
+refkids|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4312
+refto|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4313
+ref||5.019003|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4314
+reg_check_named_buff_matched|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4315
+reg_named_buff_all||5.009005|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4316
+reg_named_buff_exists||5.009005|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4317
+reg_named_buff_fetch||5.009005|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4318
+reg_named_buff_firstkey||5.009005|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4319
+reg_named_buff_iter|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4320
+reg_named_buff_nextkey||5.009005|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4321
+reg_named_buff_scalar||5.009005|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4322
+reg_named_buff|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4323
+reg_node|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4324
+reg_numbered_buff_fetch|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4325
+reg_numbered_buff_length|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4326
+reg_numbered_buff_store|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4327
+reg_qr_package|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4328
+reg_recode|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4329
+reg_scan_name|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4330
+reg_skipcomment|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4331
+reg_temp_copy|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4332
+reganode|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4333
+regatom|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4334
+regbranch|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4335
+regclass_swash||5.009004|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4336
+regclass|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4337
+regcppop|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4338
+regcppush|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4339
+regcurly|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4340
+regdump_extflags|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4341
+regdump_intflags|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4342
+regdump||5.005000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4343
+regdupe_internal|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4344
+regexec_flags||5.005000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4345
+regfree_internal||5.009005|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4346
+reghop3|||n
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4347
+reghop4|||n
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4348
+reghopmaybe3|||n
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4349
+reginclass|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4350
+reginitcolors||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4351
+reginsert|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4352
+regmatch|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4353
+regnext||5.005000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4354
+regpatws|||n
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4355
+regpiece|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4356
+regpposixcc|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4357
+regprop|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4358
+regrepeat|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4359
+regtail_study|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4360
+regtail|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4361
+regtry|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4362
+reguni|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4363
+regwhite|||n
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4364
+reg|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4365
+repeatcpy|||n
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4366
+report_evil_fh|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4367
+report_redefined_cv|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4368
+report_uninit|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4369
+report_wrongway_fh|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4370
+require_pv||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4371
+require_tie_mod|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4372
+restore_magic|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4373
+rninstr|||n
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4374
+rpeep|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4375
+rsignal_restore|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4376
+rsignal_save|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4377
+rsignal_state||5.004000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4378
+rsignal||5.004000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4379
+run_body|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4380
+run_user_filter|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4381
+runops_debug||5.005000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4382
+runops_standard||5.005000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4383
+rv2cv_op_cv||5.013006|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4384
+rvpv_dup|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4385
+rxres_free|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4386
+rxres_restore|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4387
+rxres_save|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4388
+safesyscalloc||5.006000|n
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4389
+safesysfree||5.006000|n
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4390
+safesysmalloc||5.006000|n
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4391
+safesysrealloc||5.006000|n
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4392
+same_dirent|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4393
+save_I16||5.004000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4394
+save_I32|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4395
+save_I8||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4396
+save_adelete||5.011000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4397
+save_aelem_flags||5.011000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4398
+save_aelem||5.004050|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4399
+save_alloc||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4400
+save_aptr|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4401
+save_ary|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4402
+save_bool||5.008001|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4403
+save_clearsv|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4404
+save_delete|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4405
+save_destructor_x||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4406
+save_destructor||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4407
+save_freeop|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4408
+save_freepv|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4409
+save_freesv|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4410
+save_generic_pvref||5.006001|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4411
+save_generic_svref||5.005030|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4412
+save_gp||5.004000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4413
+save_hash|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4414
+save_hdelete||5.011000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4415
+save_hek_flags|||n
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4416
+save_helem_flags||5.011000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4417
+save_helem||5.004050|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4418
+save_hints||5.010001|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4419
+save_hptr|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4420
+save_int|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4421
+save_item|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4422
+save_iv||5.005000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4423
+save_lines|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4424
+save_list|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4425
+save_long|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4426
+save_magic_flags|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4427
+save_mortalizesv||5.007001|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4428
+save_nogv|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4429
+save_op||5.005000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4430
+save_padsv_and_mortalize||5.010001|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4431
+save_pptr|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4432
+save_pushi32ptr||5.010001|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4433
+save_pushptri32ptr|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4434
+save_pushptrptr||5.010001|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4435
+save_pushptr||5.010001|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4436
+save_re_context||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4437
+save_scalar_at|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4438
+save_scalar|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4439
+save_set_svflags||5.009000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4440
+save_shared_pvref||5.007003|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4441
+save_sptr|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4442
+save_svref|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4443
+save_vptr||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4444
+savepvn|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4445
+savepvs||5.009003|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4446
+savepv|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4447
+savesharedpvn||5.009005|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4448
+savesharedpvs||5.013006|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4449
+savesharedpv||5.007003|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4450
+savesharedsvpv||5.013006|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4451
+savestack_grow_cnt||5.008001|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4452
+savestack_grow|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4453
+savesvpv||5.009002|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4454
+sawparens|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4455
+scalar_mod_type|||n
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4456
+scalarboolean|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4457
+scalarkids|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4458
+scalarseq|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4459
+scalarvoid|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4460
+scalar|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4461
+scan_bin||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4462
+scan_commit|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4463
+scan_const|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4464
+scan_formline|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4465
+scan_heredoc|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4466
+scan_hex|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4467
+scan_ident|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4468
+scan_inputsymbol|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4469
+scan_num||5.007001|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4470
+scan_oct|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4471
+scan_pat|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4472
+scan_str|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4473
+scan_subst|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4474
+scan_trans|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4475
+scan_version||5.009001|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4476
+scan_vstring||5.009005|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4477
+scan_word|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4478
+screaminstr||5.005000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4479
+search_const|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4480
+seed||5.008001|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4481
+sequence_num|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4482
+set_context||5.006000|n
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4483
+set_numeric_local||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4484
+set_numeric_radix||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4485
+set_numeric_standard||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4486
+setdefout|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4487
+share_hek_flags|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4488
+share_hek||5.004000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4489
+si_dup|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4490
+sighandler|||n
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4491
+simplify_sort|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4492
+skipspace0|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4493
+skipspace1|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4494
+skipspace2|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4495
+skipspace_flags|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4496
+softref2xv|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4497
+sortcv_stacked|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4498
+sortcv_xsub|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4499
+sortcv|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4500
+sortsv_flags||5.009003|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4501
+sortsv||5.007003|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4502
+space_join_names_mortal|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4503
+ss_dup|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4504
+stack_grow|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4505
+start_force|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4506
+start_glob|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4507
+start_subparse||5.004000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4508
+stdize_locale|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4509
+strEQ|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4510
+strGE|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4511
+strGT|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4512
+strLE|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4513
+strLT|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4514
+strNE|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4515
+str_to_version||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4516
+strip_return|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4517
+strnEQ|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4518
+strnNE|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4519
+study_chunk|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4520
+sub_crush_depth|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4521
+sublex_done|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4522
+sublex_push|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4523
+sublex_start|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4524
+sv_2bool_flags||5.013006|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4525
+sv_2bool|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4526
+sv_2cv|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4527
+sv_2io|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4528
+sv_2iuv_common|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4529
+sv_2iuv_non_preserve|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4530
+sv_2iv_flags||5.009001|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4531
+sv_2iv|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4532
+sv_2mortal|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4533
+sv_2num|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4534
+sv_2nv_flags||5.013001|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4535
+sv_2pv_flags|5.007002||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4536
+sv_2pv_nolen|5.006000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4537
+sv_2pvbyte_nolen|5.006000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4538
+sv_2pvbyte|5.006000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4539
+sv_2pvutf8_nolen||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4540
+sv_2pvutf8||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4541
+sv_2pv|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4542
+sv_2uv_flags||5.009001|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4543
+sv_2uv|5.004000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4544
+sv_add_arena|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4545
+sv_add_backref|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4546
+sv_backoff|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4547
+sv_bless|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4548
+sv_cat_decode||5.008001|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4549
+sv_catpv_flags||5.013006|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4550
+sv_catpv_mg|5.004050||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4551
+sv_catpv_nomg||5.013006|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4552
+sv_catpvf_mg_nocontext|||pvn
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4553
+sv_catpvf_mg|5.006000|5.004000|pv
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4554
+sv_catpvf_nocontext|||vn
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4555
+sv_catpvf||5.004000|v
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4556
+sv_catpvn_flags||5.007002|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4557
+sv_catpvn_mg|5.004050||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4558
+sv_catpvn_nomg|5.007002||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4559
+sv_catpvn|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4560
+sv_catpvs_flags||5.013006|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4561
+sv_catpvs_mg||5.013006|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4562
+sv_catpvs_nomg||5.013006|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4563
+sv_catpvs|5.009003||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4564
+sv_catpv|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4565
+sv_catsv_flags||5.007002|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4566
+sv_catsv_mg|5.004050||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4567
+sv_catsv_nomg|5.007002||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4568
+sv_catsv|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4569
+sv_catxmlpvn|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4570
+sv_catxmlpv|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4571
+sv_catxmlsv|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4572
+sv_chop|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4573
+sv_clean_all|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4574
+sv_clean_objs|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4575
+sv_clear|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4576
+sv_cmp_flags||5.013006|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4577
+sv_cmp_locale_flags||5.013006|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4578
+sv_cmp_locale||5.004000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4579
+sv_cmp|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4580
+sv_collxfrm_flags||5.013006|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4581
+sv_collxfrm|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4582
+sv_copypv_flags||5.017002|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4583
+sv_copypv_nomg||5.017002|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4584
+sv_copypv|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4585
+sv_dec_nomg||5.013002|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4586
+sv_dec|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4587
+sv_del_backref|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4588
+sv_derived_from_pvn||5.015004|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4589
+sv_derived_from_pv||5.015004|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4590
+sv_derived_from_sv||5.015004|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4591
+sv_derived_from||5.004000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4592
+sv_destroyable||5.010000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4593
+sv_display|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4594
+sv_does_pvn||5.015004|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4595
+sv_does_pv||5.015004|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4596
+sv_does_sv||5.015004|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4597
+sv_does||5.009004|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4598
+sv_dump|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4599
+sv_dup_common|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4600
+sv_dup_inc_multiple|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4601
+sv_dup_inc|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4602
+sv_dup|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4603
+sv_eq_flags||5.013006|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4604
+sv_eq|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4605
+sv_exp_grow|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4606
+sv_force_normal_flags||5.007001|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4607
+sv_force_normal||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4608
+sv_free2|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4609
+sv_free_arenas|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4610
+sv_free|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4611
+sv_gets||5.004000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4612
+sv_grow|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4613
+sv_i_ncmp|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4614
+sv_inc_nomg||5.013002|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4615
+sv_inc|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4616
+sv_insert_flags||5.010001|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4617
+sv_insert|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4618
+sv_isa|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4619
+sv_isobject|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4620
+sv_iv||5.005000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4621
+sv_kill_backrefs|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4622
+sv_len_utf8_nomg|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4623
+sv_len_utf8||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4624
+sv_len|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4625
+sv_magic_portable|5.019003|5.004000|p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4626
+sv_magicext_mglob|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4627
+sv_magicext||5.007003|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4628
+sv_magic|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4629
+sv_mortalcopy_flags|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4630
+sv_mortalcopy|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4631
+sv_ncmp|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4632
+sv_newmortal|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4633
+sv_newref|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4634
+sv_nolocking||5.007003|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4635
+sv_nosharing||5.007003|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4636
+sv_nounlocking|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4637
+sv_nv||5.005000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4638
+sv_peek||5.005000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4639
+sv_pos_b2u_flags||5.019003|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4640
+sv_pos_b2u_midway|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4641
+sv_pos_b2u||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4642
+sv_pos_u2b_cached|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4643
+sv_pos_u2b_flags||5.011005|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4644
+sv_pos_u2b_forwards|||n
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4645
+sv_pos_u2b_midway|||n
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4646
+sv_pos_u2b||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4647
+sv_pvbyten_force||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4648
+sv_pvbyten||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4649
+sv_pvbyte||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4650
+sv_pvn_force_flags|5.007002||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4651
+sv_pvn_force|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4652
+sv_pvn_nomg|5.007003|5.005000|p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4653
+sv_pvn||5.005000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4654
+sv_pvutf8n_force||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4655
+sv_pvutf8n||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4656
+sv_pvutf8||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4657
+sv_pv||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4658
+sv_recode_to_utf8||5.007003|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4659
+sv_reftype|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4660
+sv_ref|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4661
+sv_release_COW|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4662
+sv_replace|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4663
+sv_report_used|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4664
+sv_resetpvn|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4665
+sv_reset|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4666
+sv_rvweaken||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4667
+sv_sethek|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4668
+sv_setiv_mg|5.004050||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4669
+sv_setiv|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4670
+sv_setnv_mg|5.006000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4671
+sv_setnv|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4672
+sv_setpv_mg|5.004050||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4673
+sv_setpvf_mg_nocontext|||pvn
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4674
+sv_setpvf_mg|5.006000|5.004000|pv
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4675
+sv_setpvf_nocontext|||vn
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4676
+sv_setpvf||5.004000|v
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4677
+sv_setpviv_mg||5.008001|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4678
+sv_setpviv||5.008001|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4679
+sv_setpvn_mg|5.004050||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4680
+sv_setpvn|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4681
+sv_setpvs_mg||5.013006|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4682
+sv_setpvs|5.009004||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4683
+sv_setpv|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4684
+sv_setref_iv|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4685
+sv_setref_nv|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4686
+sv_setref_pvn|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4687
+sv_setref_pvs||5.019003|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4688
+sv_setref_pv|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4689
+sv_setref_uv||5.007001|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4690
+sv_setsv_cow|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4691
+sv_setsv_flags||5.007002|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4692
+sv_setsv_mg|5.004050||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4693
+sv_setsv_nomg|5.007002||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4694
+sv_setsv|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4695
+sv_setuv_mg|5.004050||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4696
+sv_setuv|5.004000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4697
+sv_tainted||5.004000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4698
+sv_taint||5.004000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4699
+sv_true||5.005000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4700
+sv_unglob|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4701
+sv_uni_display||5.007003|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4702
+sv_unmagicext||5.013008|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4703
+sv_unmagic|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4704
+sv_unref_flags||5.007001|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4705
+sv_unref|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4706
+sv_untaint||5.004000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4707
+sv_upgrade|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4708
+sv_usepvn_flags||5.009004|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4709
+sv_usepvn_mg|5.004050||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4710
+sv_usepvn|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4711
+sv_utf8_decode||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4712
+sv_utf8_downgrade||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4713
+sv_utf8_encode||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4714
+sv_utf8_upgrade_flags_grow||5.011000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4715
+sv_utf8_upgrade_flags||5.007002|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4716
+sv_utf8_upgrade_nomg||5.007002|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4717
+sv_utf8_upgrade||5.007001|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4718
+sv_uv|5.005000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4719
+sv_vcatpvf_mg|5.006000|5.004000|p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4720
+sv_vcatpvfn_flags||5.017002|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4721
+sv_vcatpvfn||5.004000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4722
+sv_vcatpvf|5.006000|5.004000|p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4723
+sv_vsetpvf_mg|5.006000|5.004000|p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4724
+sv_vsetpvfn||5.004000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4725
+sv_vsetpvf|5.006000|5.004000|p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4726
+sv_xmlpeek|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4727
+svtype|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4728
+swallow_bom|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4729
+swash_fetch||5.007002|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4730
+swash_init||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4731
+swatch_get|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4732
+sys_init3||5.010000|n
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4733
+sys_init||5.010000|n
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4734
+sys_intern_clear|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4735
+sys_intern_dup|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4736
+sys_intern_init|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4737
+sys_term||5.010000|n
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4738
+taint_env|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4739
+taint_proper|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4740
+tied_method|||v
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4741
+tmps_grow||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4742
+toFOLD_uni||5.007003|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4743
+toFOLD_utf8||5.019001|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4744
+toFOLD||5.019001|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4745
+toLOWER_L1||5.019001|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4746
+toLOWER_LC||5.004000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4747
+toLOWER_uni||5.007003|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4748
+toLOWER_utf8||5.015007|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4749
+toLOWER|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4750
+toTITLE_uni||5.007003|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4751
+toTITLE_utf8||5.015007|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4752
+toTITLE||5.019001|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4753
+toUPPER_uni||5.007003|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4754
+toUPPER_utf8||5.015007|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4755
+toUPPER||5.004000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4756
+to_byte_substr|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4757
+to_lower_latin1|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4758
+to_uni_fold||5.007003|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4759
+to_uni_lower_lc||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4760
+to_uni_lower||5.007003|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4761
+to_uni_title_lc||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4762
+to_uni_title||5.007003|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4763
+to_uni_upper_lc||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4764
+to_uni_upper||5.007003|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4765
+to_utf8_case||5.007003|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4766
+to_utf8_fold||5.015007|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4767
+to_utf8_lower||5.015007|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4768
+to_utf8_substr|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4769
+to_utf8_title||5.015007|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4770
+to_utf8_upper||5.015007|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4771
+token_free|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4772
+token_getmad|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4773
+tokenize_use|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4774
+tokeq|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4775
+tokereport|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4776
+too_few_arguments_pv|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4777
+too_few_arguments_sv|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4778
+too_many_arguments_pv|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4779
+too_many_arguments_sv|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4780
+translate_substr_offsets|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4781
+try_amagic_bin|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4782
+try_amagic_un|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4783
+uiv_2buf|||n
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4784
+unlnk|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4785
+unpack_rec|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4786
+unpack_str||5.007003|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4787
+unpackstring||5.008001|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4788
+unreferenced_to_tmp_stack|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4789
+unshare_hek_or_pvn|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4790
+unshare_hek|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4791
+unsharepvn||5.004000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4792
+unwind_handler_stack|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4793
+update_debugger_info|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4794
+upg_version||5.009005|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4795
+usage|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4796
+utf16_textfilter|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4797
+utf16_to_utf8_reversed||5.006001|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4798
+utf16_to_utf8||5.006001|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4799
+utf8_distance||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4800
+utf8_hop||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4801
+utf8_length||5.007001|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4802
+utf8_mg_len_cache_update|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4803
+utf8_mg_pos_cache_update|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4804
+utf8_to_bytes||5.006001|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4805
+utf8_to_uvchr_buf||5.015009|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4806
+utf8_to_uvchr||5.007001|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4807
+utf8_to_uvuni_buf||5.015009|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4808
+utf8_to_uvuni||5.007001|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4809
+utf8n_to_uvchr|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4810
+utf8n_to_uvuni||5.007001|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4811
+utilize|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4812
+uvchr_to_utf8_flags||5.007003|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4813
+uvchr_to_utf8|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4814
+uvuni_to_utf8_flags||5.007003|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4815
+uvuni_to_utf8||5.007001|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4816
+valid_utf8_to_uvchr|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4817
+valid_utf8_to_uvuni||5.015009|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4818
+validate_proto|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4819
+validate_suid|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4820
+varname|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4821
+vcmp||5.009000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4822
+vcroak||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4823
+vdeb||5.007003|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4824
+vform||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4825
+visit|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4826
+vivify_defelem|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4827
+vivify_ref|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4828
+vload_module|5.006000||p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4829
+vmess||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4830
+vnewSVpvf|5.006000|5.004000|p
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4831
+vnormal||5.009002|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4832
+vnumify||5.009000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4833
+vstringify||5.009000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4834
+vverify||5.009003|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4835
+vwarner||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4836
+vwarn||5.006000|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4837
+wait4pid|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4838
+warn_nocontext|||vn
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4839
+warn_sv||5.013001|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4840
+warner_nocontext|||vn
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4841
+warner|5.006000|5.004000|pv
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4842
+warn|||v
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4843
+was_lvalue_sub|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4844
+watch|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4845
+whichsig_pvn||5.015004|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4846
+whichsig_pv||5.015004|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4847
+whichsig_sv||5.015004|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4848
+whichsig|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4849
+win32_croak_not_implemented|||n
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4850
+with_queued_errors|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4851
+wrap_op_checker||5.015008|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4852
+write_to_stderr|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4853
+xmldump_all_perl|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4854
+xmldump_all|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4855
+xmldump_attr|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4856
+xmldump_eval|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4857
+xmldump_form|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4858
+xmldump_indent|||v
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4859
+xmldump_packsubs_perl|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4860
+xmldump_packsubs|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4861
+xmldump_sub_perl|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4862
+xmldump_sub|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4863
+xmldump_vindent|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4864
+xs_apiversion_bootcheck|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4865
+xs_version_bootcheck|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4866
+yyerror_pvn|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4867
+yyerror_pv|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4868
+yyerror|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4869
+yylex|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4870
+yyparse|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4871
+yyunlex|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4872
+yywarn|||
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4873
+);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4874
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4875
+if (exists $opt{'list-unsupported'}) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4876
+  my $f;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4877
+  for $f (sort { lc $a cmp lc $b } keys %API) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4878
+    next unless $API{$f}{todo};
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4879
+    print "$f ", '.'x(40-length($f)), " ", format_version($API{$f}{todo}), "\n";
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4880
+  }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4881
+  exit 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4882
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4883
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4884
+# Scan for possible replacement candidates
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4885
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4886
+my(%replace, %need, %hints, %warnings, %depends);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4887
+my $replace = 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4888
+my($hint, $define, $function);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4889
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4890
+sub find_api
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4891
+{
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4892
+  my $code = shift;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4893
+  $code =~ s{
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4894
+    / (?: \*[^*]*\*+(?:[^$ccs][^*]*\*+)* / | /[^\r\n]*)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4895
+  | "[^"\\]*(?:\\.[^"\\]*)*"
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4896
+  | '[^'\\]*(?:\\.[^'\\]*)*' }{}egsx;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4897
+  grep { exists $API{$_} } $code =~ /(\w+)/mg;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4898
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4899
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4900
+while (<DATA>) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4901
+  if ($hint) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4902
+    my $h = $hint->[0] eq 'Hint' ? \%hints : \%warnings;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4903
+    if (m{^\s*\*\s(.*?)\s*$}) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4904
+      for (@{$hint->[1]}) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4905
+        $h->{$_} ||= '';  # suppress warning with older perls
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4906
+        $h->{$_} .= "$1\n";
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4907
+      }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4908
+    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4909
+    else { undef $hint }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4910
+  }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4911
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4912
+  $hint = [$1, [split /,?\s+/, $2]]
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4913
+      if m{^\s*$rccs\s+(Hint|Warning):\s+(\w+(?:,?\s+\w+)*)\s*$};
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4914
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4915
+  if ($define) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4916
+    if ($define->[1] =~ /\\$/) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4917
+      $define->[1] .= $_;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4918
+    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4919
+    else {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4920
+      if (exists $API{$define->[0]} && $define->[1] !~ /^DPPP_\(/) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4921
+        my @n = find_api($define->[1]);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4922
+        push @{$depends{$define->[0]}}, @n if @n
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4923
+      }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4924
+      undef $define;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4925
+    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4926
+  }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4927
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4928
+  $define = [$1, $2] if m{^\s*#\s*define\s+(\w+)(?:\([^)]*\))?\s+(.*)};
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4929
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4930
+  if ($function) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4931
+    if (/^}/) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4932
+      if (exists $API{$function->[0]}) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4933
+        my @n = find_api($function->[1]);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4934
+        push @{$depends{$function->[0]}}, @n if @n
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4935
+      }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4936
+      undef $function;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4937
+    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4938
+    else {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4939
+      $function->[1] .= $_;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4940
+    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4941
+  }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4942
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4943
+  $function = [$1, ''] if m{^DPPP_\(my_(\w+)\)};
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4944
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4945
+  $replace     = $1 if m{^\s*$rccs\s+Replace:\s+(\d+)\s+$rcce\s*$};
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4946
+  $replace{$2} = $1 if $replace and m{^\s*#\s*define\s+(\w+)(?:\([^)]*\))?\s+(\w+)};
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4947
+  $replace{$2} = $1 if m{^\s*#\s*define\s+(\w+)(?:\([^)]*\))?\s+(\w+).*$rccs\s+Replace\s+$rcce};
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4948
+  $replace{$1} = $2 if m{^\s*$rccs\s+Replace (\w+) with (\w+)\s+$rcce\s*$};
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4949
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4950
+  if (m{^\s*$rccs\s+(\w+(\s*,\s*\w+)*)\s+depends\s+on\s+(\w+(\s*,\s*\w+)*)\s+$rcce\s*$}) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4951
+    my @deps = map { s/\s+//g; $_ } split /,/, $3;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4952
+    my $d;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4953
+    for $d (map { s/\s+//g; $_ } split /,/, $1) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4954
+      push @{$depends{$d}}, @deps;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4955
+    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4956
+  }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4957
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4958
+  $need{$1} = 1 if m{^#if\s+defined\(NEED_(\w+)(?:_GLOBAL)?\)};
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4959
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4960
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4961
+for (values %depends) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4962
+  my %s;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4963
+  $_ = [sort grep !$s{$_}++, @$_];
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4964
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4965
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4966
+if (exists $opt{'api-info'}) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4967
+  my $f;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4968
+  my $count = 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4969
+  my $match = $opt{'api-info'} =~ m!^/(.*)/$! ? $1 : "^\Q$opt{'api-info'}\E\$";
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4970
+  for $f (sort { lc $a cmp lc $b } keys %API) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4971
+    next unless $f =~ /$match/;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4972
+    print "\n=== $f ===\n\n";
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4973
+    my $info = 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4974
+    if ($API{$f}{base} || $API{$f}{todo}) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4975
+      my $base = format_version($API{$f}{base} || $API{$f}{todo});
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4976
+      print "Supported at least starting from perl-$base.\n";
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4977
+      $info++;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4978
+    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4979
+    if ($API{$f}{provided}) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4980
+      my $todo = $API{$f}{todo} ? format_version($API{$f}{todo}) : "5.003";
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4981
+      print "Support by $ppport provided back to perl-$todo.\n";
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4982
+      print "Support needs to be explicitly requested by NEED_$f.\n" if exists $need{$f};
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4983
+      print "Depends on: ", join(', ', @{$depends{$f}}), ".\n" if exists $depends{$f};
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4984
+      print "\n$hints{$f}" if exists $hints{$f};
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4985
+      print "\nWARNING:\n$warnings{$f}" if exists $warnings{$f};
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4986
+      $info++;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4987
+    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4988
+    print "No portability information available.\n" unless $info;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4989
+    $count++;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4990
+  }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4991
+  $count or print "Found no API matching '$opt{'api-info'}'.";
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4992
+  print "\n";
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4993
+  exit 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4994
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4995
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4996
+if (exists $opt{'list-provided'}) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4997
+  my $f;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4998
+  for $f (sort { lc $a cmp lc $b } keys %API) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4999
+    next unless $API{$f}{provided};
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5000
+    my @flags;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5001
+    push @flags, 'explicit' if exists $need{$f};
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5002
+    push @flags, 'depend'   if exists $depends{$f};
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5003
+    push @flags, 'hint'     if exists $hints{$f};
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5004
+    push @flags, 'warning'  if exists $warnings{$f};
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5005
+    my $flags = @flags ? '  ['.join(', ', @flags).']' : '';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5006
+    print "$f$flags\n";
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5007
+  }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5008
+  exit 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5009
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5010
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5011
+my @files;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5012
+my @srcext = qw( .xs .c .h .cc .cpp -c.inc -xs.inc );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5013
+my $srcext = join '|', map { quotemeta $_ } @srcext;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5014
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5015
+if (@ARGV) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5016
+  my %seen;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5017
+  for (@ARGV) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5018
+    if (-e) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5019
+      if (-f) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5020
+        push @files, $_ unless $seen{$_}++;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5021
+      }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5022
+      else { warn "'$_' is not a file.\n" }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5023
+    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5024
+    else {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5025
+      my @new = grep { -f } glob $_
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5026
+          or warn "'$_' does not exist.\n";
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5027
+      push @files, grep { !$seen{$_}++ } @new;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5028
+    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5029
+  }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5030
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5031
+else {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5032
+  eval {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5033
+    require File::Find;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5034
+    File::Find::find(sub {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5035
+      $File::Find::name =~ /($srcext)$/i
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5036
+          and push @files, $File::Find::name;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5037
+    }, '.');
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5038
+  };
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5039
+  if ($@) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5040
+    @files = map { glob "*$_" } @srcext;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5041
+  }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5042
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5043
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5044
+if (!@ARGV || $opt{filter}) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5045
+  my(@in, @out);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5046
+  my %xsc = map { /(.*)\.xs$/ ? ("$1.c" => 1, "$1.cc" => 1) : () } @files;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5047
+  for (@files) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5048
+    my $out = exists $xsc{$_} || /\b\Q$ppport\E$/i || !/($srcext)$/i;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5049
+    push @{ $out ? \@out : \@in }, $_;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5050
+  }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5051
+  if (@ARGV && @out) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5052
+    warning("Skipping the following files (use --nofilter to avoid this):\n| ", join "\n| ", @out);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5053
+  }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5054
+  @files = @in;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5055
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5056
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5057
+die "No input files given!\n" unless @files;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5058
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5059
+my(%files, %global, %revreplace);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5060
+%revreplace = reverse %replace;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5061
+my $filename;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5062
+my $patch_opened = 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5063
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5064
+for $filename (@files) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5065
+  unless (open IN, "<$filename") {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5066
+    warn "Unable to read from $filename: $!\n";
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5067
+    next;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5068
+  }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5069
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5070
+  info("Scanning $filename ...");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5071
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5072
+  my $c = do { local $/; <IN> };
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5073
+  close IN;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5074
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5075
+  my %file = (orig => $c, changes => 0);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5076
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5077
+  # Temporarily remove C/XS comments and strings from the code
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5078
+  my @ccom;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5079
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5080
+  $c =~ s{
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5081
+    ( ^$HS*\#$HS*include\b[^\r\n]+\b(?:\Q$ppport\E|XSUB\.h)\b[^\r\n]*
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5082
+    | ^$HS*\#$HS*(?:define|elif|if(?:def)?)\b[^\r\n]* )
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5083
+  | ( ^$HS*\#[^\r\n]*
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5084
+    | "[^"\\]*(?:\\.[^"\\]*)*"
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5085
+    | '[^'\\]*(?:\\.[^'\\]*)*'
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5086
+    | / (?: \*[^*]*\*+(?:[^$ccs][^*]*\*+)* / | /[^\r\n]* ) )
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5087
+  }{ defined $2 and push @ccom, $2;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5088
+     defined $1 ? $1 : "$ccs$#ccom$cce" }mgsex;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5089
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5090
+  $file{ccom} = \@ccom;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5091
+  $file{code} = $c;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5092
+  $file{has_inc_ppport} = $c =~ /^$HS*#$HS*include[^\r\n]+\b\Q$ppport\E\b/m;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5093
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5094
+  my $func;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5095
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5096
+  for $func (keys %API) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5097
+    my $match = $func;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5098
+    $match .= "|$revreplace{$func}" if exists $revreplace{$func};
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5099
+    if ($c =~ /\b(?:Perl_)?($match)\b/) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5100
+      $file{uses_replace}{$1}++ if exists $revreplace{$func} && $1 eq $revreplace{$func};
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5101
+      $file{uses_Perl}{$func}++ if $c =~ /\bPerl_$func\b/;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5102
+      if (exists $API{$func}{provided}) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5103
+        $file{uses_provided}{$func}++;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5104
+        if (!exists $API{$func}{base} || $API{$func}{base} > $opt{'compat-version'}) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5105
+          $file{uses}{$func}++;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5106
+          my @deps = rec_depend($func);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5107
+          if (@deps) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5108
+            $file{uses_deps}{$func} = \@deps;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5109
+            for (@deps) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5110
+              $file{uses}{$_} = 0 unless exists $file{uses}{$_};
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5111
+            }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5112
+          }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5113
+          for ($func, @deps) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5114
+            $file{needs}{$_} = 'static' if exists $need{$_};
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5115
+          }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5116
+        }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5117
+      }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5118
+      if (exists $API{$func}{todo} && $API{$func}{todo} > $opt{'compat-version'}) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5119
+        if ($c =~ /\b$func\b/) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5120
+          $file{uses_todo}{$func}++;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5121
+        }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5122
+      }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5123
+    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5124
+  }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5125
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5126
+  while ($c =~ /^$HS*#$HS*define$HS+(NEED_(\w+?)(_GLOBAL)?)\b/mg) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5127
+    if (exists $need{$2}) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5128
+      $file{defined $3 ? 'needed_global' : 'needed_static'}{$2}++;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5129
+    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5130
+    else { warning("Possibly wrong #define $1 in $filename") }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5131
+  }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5132
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5133
+  for (qw(uses needs uses_todo needed_global needed_static)) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5134
+    for $func (keys %{$file{$_}}) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5135
+      push @{$global{$_}{$func}}, $filename;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5136
+    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5137
+  }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5138
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5139
+  $files{$filename} = \%file;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5140
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5141
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5142
+# Globally resolve NEED_'s
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5143
+my $need;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5144
+for $need (keys %{$global{needs}}) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5145
+  if (@{$global{needs}{$need}} > 1) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5146
+    my @targets = @{$global{needs}{$need}};
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5147
+    my @t = grep $files{$_}{needed_global}{$need}, @targets;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5148
+    @targets = @t if @t;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5149
+    @t = grep /\.xs$/i, @targets;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5150
+    @targets = @t if @t;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5151
+    my $target = shift @targets;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5152
+    $files{$target}{needs}{$need} = 'global';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5153
+    for (@{$global{needs}{$need}}) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5154
+      $files{$_}{needs}{$need} = 'extern' if $_ ne $target;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5155
+    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5156
+  }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5157
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5158
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5159
+for $filename (@files) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5160
+  exists $files{$filename} or next;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5161
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5162
+  info("=== Analyzing $filename ===");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5163
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5164
+  my %file = %{$files{$filename}};
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5165
+  my $func;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5166
+  my $c = $file{code};
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5167
+  my $warnings = 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5168
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5169
+  for $func (sort keys %{$file{uses_Perl}}) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5170
+    if ($API{$func}{varargs}) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5171
+      unless ($API{$func}{nothxarg}) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5172
+        my $changes = ($c =~ s{\b(Perl_$func\s*\(\s*)(?!aTHX_?)(\)|[^\s)]*\))}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5173
+                              { $1 . ($2 eq ')' ? 'aTHX' : 'aTHX_ ') . $2 }ge);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5174
+        if ($changes) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5175
+          warning("Doesn't pass interpreter argument aTHX to Perl_$func");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5176
+          $file{changes} += $changes;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5177
+        }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5178
+      }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5179
+    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5180
+    else {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5181
+      warning("Uses Perl_$func instead of $func");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5182
+      $file{changes} += ($c =~ s{\bPerl_$func(\s*)\((\s*aTHX_?)?\s*}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5183
+                                {$func$1(}g);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5184
+    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5185
+  }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5186
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5187
+  for $func (sort keys %{$file{uses_replace}}) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5188
+    warning("Uses $func instead of $replace{$func}");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5189
+    $file{changes} += ($c =~ s/\b$func\b/$replace{$func}/g);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5190
+  }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5191
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5192
+  for $func (sort keys %{$file{uses_provided}}) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5193
+    if ($file{uses}{$func}) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5194
+      if (exists $file{uses_deps}{$func}) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5195
+        diag("Uses $func, which depends on ", join(', ', @{$file{uses_deps}{$func}}));
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5196
+      }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5197
+      else {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5198
+        diag("Uses $func");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5199
+      }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5200
+    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5201
+    $warnings += hint($func);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5202
+  }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5203
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5204
+  unless ($opt{quiet}) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5205
+    for $func (sort keys %{$file{uses_todo}}) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5206
+      print "*** WARNING: Uses $func, which may not be portable below perl ",
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5207
+            format_version($API{$func}{todo}), ", even with '$ppport'\n";
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5208
+      $warnings++;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5209
+    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5210
+  }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5211
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5212
+  for $func (sort keys %{$file{needed_static}}) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5213
+    my $message = '';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5214
+    if (not exists $file{uses}{$func}) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5215
+      $message = "No need to define NEED_$func if $func is never used";
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5216
+    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5217
+    elsif (exists $file{needs}{$func} && $file{needs}{$func} ne 'static') {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5218
+      $message = "No need to define NEED_$func when already needed globally";
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5219
+    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5220
+    if ($message) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5221
+      diag($message);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5222
+      $file{changes} += ($c =~ s/^$HS*#$HS*define$HS+NEED_$func\b.*$LF//mg);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5223
+    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5224
+  }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5225
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5226
+  for $func (sort keys %{$file{needed_global}}) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5227
+    my $message = '';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5228
+    if (not exists $global{uses}{$func}) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5229
+      $message = "No need to define NEED_${func}_GLOBAL if $func is never used";
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5230
+    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5231
+    elsif (exists $file{needs}{$func}) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5232
+      if ($file{needs}{$func} eq 'extern') {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5233
+        $message = "No need to define NEED_${func}_GLOBAL when already needed globally";
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5234
+      }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5235
+      elsif ($file{needs}{$func} eq 'static') {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5236
+        $message = "No need to define NEED_${func}_GLOBAL when only used in this file";
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5237
+      }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5238
+    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5239
+    if ($message) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5240
+      diag($message);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5241
+      $file{changes} += ($c =~ s/^$HS*#$HS*define$HS+NEED_${func}_GLOBAL\b.*$LF//mg);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5242
+    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5243
+  }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5244
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5245
+  $file{needs_inc_ppport} = keys %{$file{uses}};
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5246
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5247
+  if ($file{needs_inc_ppport}) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5248
+    my $pp = '';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5249
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5250
+    for $func (sort keys %{$file{needs}}) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5251
+      my $type = $file{needs}{$func};
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5252
+      next if $type eq 'extern';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5253
+      my $suffix = $type eq 'global' ? '_GLOBAL' : '';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5254
+      unless (exists $file{"needed_$type"}{$func}) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5255
+        if ($type eq 'global') {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5256
+          diag("Files [@{$global{needs}{$func}}] need $func, adding global request");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5257
+        }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5258
+        else {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5259
+          diag("File needs $func, adding static request");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5260
+        }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5261
+        $pp .= "#define NEED_$func$suffix\n";
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5262
+      }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5263
+    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5264
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5265
+    if ($pp && ($c =~ s/^(?=$HS*#$HS*define$HS+NEED_\w+)/$pp/m)) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5266
+      $pp = '';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5267
+      $file{changes}++;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5268
+    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5269
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5270
+    unless ($file{has_inc_ppport}) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5271
+      diag("Needs to include '$ppport'");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5272
+      $pp .= qq(#include "$ppport"\n)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5273
+    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5274
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5275
+    if ($pp) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5276
+      $file{changes} += ($c =~ s/^($HS*#$HS*define$HS+NEED_\w+.*?)^/$1$pp/ms)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5277
+                     || ($c =~ s/^(?=$HS*#$HS*include.*\Q$ppport\E)/$pp/m)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5278
+                     || ($c =~ s/^($HS*#$HS*include.*XSUB.*\s*?)^/$1$pp/m)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5279
+                     || ($c =~ s/^/$pp/);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5280
+    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5281
+  }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5282
+  else {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5283
+    if ($file{has_inc_ppport}) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5284
+      diag("No need to include '$ppport'");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5285
+      $file{changes} += ($c =~ s/^$HS*?#$HS*include.*\Q$ppport\E.*?$LF//m);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5286
+    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5287
+  }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5288
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5289
+  # put back in our C comments
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5290
+  my $ix;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5291
+  my $cppc = 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5292
+  my @ccom = @{$file{ccom}};
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5293
+  for $ix (0 .. $#ccom) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5294
+    if (!$opt{cplusplus} && $ccom[$ix] =~ s!^//!!) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5295
+      $cppc++;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5296
+      $file{changes} += $c =~ s/$rccs$ix$rcce/$ccs$ccom[$ix] $cce/;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5297
+    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5298
+    else {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5299
+      $c =~ s/$rccs$ix$rcce/$ccom[$ix]/;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5300
+    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5301
+  }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5302
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5303
+  if ($cppc) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5304
+    my $s = $cppc != 1 ? 's' : '';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5305
+    warning("Uses $cppc C++ style comment$s, which is not portable");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5306
+  }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5307
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5308
+  my $s = $warnings != 1 ? 's' : '';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5309
+  my $warn = $warnings ? " ($warnings warning$s)" : '';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5310
+  info("Analysis completed$warn");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5311
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5312
+  if ($file{changes}) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5313
+    if (exists $opt{copy}) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5314
+      my $newfile = "$filename$opt{copy}";
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5315
+      if (-e $newfile) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5316
+        error("'$newfile' already exists, refusing to write copy of '$filename'");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5317
+      }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5318
+      else {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5319
+        local *F;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5320
+        if (open F, ">$newfile") {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5321
+          info("Writing copy of '$filename' with changes to '$newfile'");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5322
+          print F $c;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5323
+          close F;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5324
+        }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5325
+        else {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5326
+          error("Cannot open '$newfile' for writing: $!");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5327
+        }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5328
+      }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5329
+    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5330
+    elsif (exists $opt{patch} || $opt{changes}) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5331
+      if (exists $opt{patch}) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5332
+        unless ($patch_opened) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5333
+          if (open PATCH, ">$opt{patch}") {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5334
+            $patch_opened = 1;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5335
+          }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5336
+          else {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5337
+            error("Cannot open '$opt{patch}' for writing: $!");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5338
+            delete $opt{patch};
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5339
+            $opt{changes} = 1;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5340
+            goto fallback;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5341
+          }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5342
+        }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5343
+        mydiff(\*PATCH, $filename, $c);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5344
+      }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5345
+      else {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5346
+fallback:
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5347
+        info("Suggested changes:");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5348
+        mydiff(\*STDOUT, $filename, $c);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5349
+      }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5350
+    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5351
+    else {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5352
+      my $s = $file{changes} == 1 ? '' : 's';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5353
+      info("$file{changes} potentially required change$s detected");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5354
+    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5355
+  }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5356
+  else {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5357
+    info("Looks good");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5358
+  }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5359
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5360
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5361
+close PATCH if $patch_opened;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5362
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5363
+exit 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5364
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5365
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5366
+sub try_use { eval "use @_;"; return $@ eq '' }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5367
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5368
+sub mydiff
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5369
+{
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5370
+  local *F = shift;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5371
+  my($file, $str) = @_;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5372
+  my $diff;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5373
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5374
+  if (exists $opt{diff}) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5375
+    $diff = run_diff($opt{diff}, $file, $str);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5376
+  }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5377
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5378
+  if (!defined $diff and try_use('Text::Diff')) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5379
+    $diff = Text::Diff::diff($file, \$str, { STYLE => 'Unified' });
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5380
+    $diff = <<HEADER . $diff;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5381
+--- $file
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5382
++++ $file.patched
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5383
+HEADER
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5384
+  }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5385
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5386
+  if (!defined $diff) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5387
+    $diff = run_diff('diff -u', $file, $str);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5388
+  }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5389
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5390
+  if (!defined $diff) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5391
+    $diff = run_diff('diff', $file, $str);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5392
+  }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5393
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5394
+  if (!defined $diff) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5395
+    error("Cannot generate a diff. Please install Text::Diff or use --copy.");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5396
+    return;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5397
+  }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5398
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5399
+  print F $diff;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5400
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5401
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5402
+sub run_diff
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5403
+{
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5404
+  my($prog, $file, $str) = @_;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5405
+  my $tmp = 'dppptemp';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5406
+  my $suf = 'aaa';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5407
+  my $diff = '';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5408
+  local *F;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5409
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5410
+  while (-e "$tmp.$suf") { $suf++ }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5411
+  $tmp = "$tmp.$suf";
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5412
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5413
+  if (open F, ">$tmp") {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5414
+    print F $str;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5415
+    close F;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5416
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5417
+    if (open F, "$prog $file $tmp |") {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5418
+      while (<F>) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5419
+        s/\Q$tmp\E/$file.patched/;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5420
+        $diff .= $_;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5421
+      }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5422
+      close F;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5423
+      unlink $tmp;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5424
+      return $diff;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5425
+    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5426
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5427
+    unlink $tmp;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5428
+  }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5429
+  else {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5430
+    error("Cannot open '$tmp' for writing: $!");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5431
+  }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5432
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5433
+  return undef;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5434
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5435
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5436
+sub rec_depend
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5437
+{
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5438
+  my($func, $seen) = @_;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5439
+  return () unless exists $depends{$func};
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5440
+  $seen = {%{$seen||{}}};
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5441
+  return () if $seen->{$func}++;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5442
+  my %s;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5443
+  grep !$s{$_}++, map { ($_, rec_depend($_, $seen)) } @{$depends{$func}};
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5444
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5445
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5446
+sub parse_version
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5447
+{
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5448
+  my $ver = shift;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5449
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5450
+  if ($ver =~ /^(\d+)\.(\d+)\.(\d+)$/) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5451
+    return ($1, $2, $3);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5452
+  }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5453
+  elsif ($ver !~ /^\d+\.[\d_]+$/) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5454
+    die "cannot parse version '$ver'\n";
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5455
+  }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5456
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5457
+  $ver =~ s/_//g;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5458
+  $ver =~ s/$/000000/;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5459
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5460
+  my($r,$v,$s) = $ver =~ /(\d+)\.(\d{3})(\d{3})/;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5461
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5462
+  $v = int $v;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5463
+  $s = int $s;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5464
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5465
+  if ($r < 5 || ($r == 5 && $v < 6)) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5466
+    if ($s % 10) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5467
+      die "cannot parse version '$ver'\n";
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5468
+    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5469
+  }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5470
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5471
+  return ($r, $v, $s);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5472
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5473
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5474
+sub format_version
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5475
+{
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5476
+  my $ver = shift;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5477
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5478
+  $ver =~ s/$/000000/;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5479
+  my($r,$v,$s) = $ver =~ /(\d+)\.(\d{3})(\d{3})/;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5480
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5481
+  $v = int $v;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5482
+  $s = int $s;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5483
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5484
+  if ($r < 5 || ($r == 5 && $v < 6)) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5485
+    if ($s % 10) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5486
+      die "invalid version '$ver'\n";
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5487
+    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5488
+    $s /= 10;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5489
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5490
+    $ver = sprintf "%d.%03d", $r, $v;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5491
+    $s > 0 and $ver .= sprintf "_%02d", $s;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5492
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5493
+    return $ver;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5494
+  }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5495
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5496
+  return sprintf "%d.%d.%d", $r, $v, $s;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5497
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5498
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5499
+sub info
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5500
+{
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5501
+  $opt{quiet} and return;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5502
+  print @_, "\n";
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5503
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5504
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5505
+sub diag
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5506
+{
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5507
+  $opt{quiet} and return;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5508
+  $opt{diag} and print @_, "\n";
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5509
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5510
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5511
+sub warning
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5512
+{
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5513
+  $opt{quiet} and return;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5514
+  print "*** ", @_, "\n";
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5515
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5516
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5517
+sub error
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5518
+{
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5519
+  print "*** ERROR: ", @_, "\n";
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5520
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5521
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5522
+my %given_hints;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5523
+my %given_warnings;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5524
+sub hint
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5525
+{
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5526
+  $opt{quiet} and return;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5527
+  my $func = shift;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5528
+  my $rv = 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5529
+  if (exists $warnings{$func} && !$given_warnings{$func}++) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5530
+    my $warn = $warnings{$func};
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5531
+    $warn =~ s!^!*** !mg;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5532
+    print "*** WARNING: $func\n", $warn;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5533
+    $rv++;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5534
+  }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5535
+  if ($opt{hints} && exists $hints{$func} && !$given_hints{$func}++) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5536
+    my $hint = $hints{$func};
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5537
+    $hint =~ s/^/   /mg;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5538
+    print "   --- hint for $func ---\n", $hint;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5539
+  }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5540
+  $rv;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5541
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5542
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5543
+sub usage
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5544
+{
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5545
+  my($usage) = do { local(@ARGV,$/)=($0); <> } =~ /^=head\d$HS+SYNOPSIS\s*^(.*?)\s*^=/ms;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5546
+  my %M = ( 'I' => '*' );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5547
+  $usage =~ s/^\s*perl\s+\S+/$^X $0/;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5548
+  $usage =~ s/([A-Z])<([^>]+)>/$M{$1}$2$M{$1}/g;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5549
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5550
+  print <<ENDUSAGE;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5551
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5552
+Usage: $usage
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5553
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5554
+See perldoc $0 for details.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5555
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5556
+ENDUSAGE
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5557
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5558
+  exit 2;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5559
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5560
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5561
+sub strip
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5562
+{
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5563
+  my $self = do { local(@ARGV,$/)=($0); <> };
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5564
+  my($copy) = $self =~ /^=head\d\s+COPYRIGHT\s*^(.*?)^=\w+/ms;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5565
+  $copy =~ s/^(?=\S+)/    /gms;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5566
+  $self =~ s/^$HS+Do NOT edit.*?(?=^-)/$copy/ms;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5567
+  $self =~ s/^SKIP.*(?=^__DATA__)/SKIP
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5568
+if (\@ARGV && \$ARGV[0] eq '--unstrip') {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5569
+  eval { require Devel::PPPort };
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5570
+  \$@ and die "Cannot require Devel::PPPort, please install.\\n";
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5571
+  if (eval \$Devel::PPPort::VERSION < $VERSION) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5572
+    die "$0 was originally generated with Devel::PPPort $VERSION.\\n"
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5573
+      . "Your Devel::PPPort is only version \$Devel::PPPort::VERSION.\\n"
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5574
+      . "Please install a newer version, or --unstrip will not work.\\n";
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5575
+  }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5576
+  Devel::PPPort::WriteFile(\$0);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5577
+  exit 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5578
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5579
+print <<END;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5580
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5581
+Sorry, but this is a stripped version of \$0.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5582
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5583
+To be able to use its original script and doc functionality,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5584
+please try to regenerate this file using:
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5585
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5586
+  \$^X \$0 --unstrip
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5587
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5588
+END
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5589
+/ms;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5590
+  my($pl, $c) = $self =~ /(.*^__DATA__)(.*)/ms;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5591
+  $c =~ s{
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5592
+    / (?: \*[^*]*\*+(?:[^$ccs][^*]*\*+)* / | /[^\r\n]*)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5593
+  | ( "[^"\\]*(?:\\.[^"\\]*)*"
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5594
+    | '[^'\\]*(?:\\.[^'\\]*)*' )
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5595
+  | ($HS+) }{ defined $2 ? ' ' : ($1 || '') }gsex;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5596
+  $c =~ s!\s+$!!mg;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5597
+  $c =~ s!^$LF!!mg;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5598
+  $c =~ s!^\s*#\s*!#!mg;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5599
+  $c =~ s!^\s+!!mg;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5600
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5601
+  open OUT, ">$0" or die "cannot strip $0: $!\n";
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5602
+  print OUT "$pl$c\n";
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5603
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5604
+  exit 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5605
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5606
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5607
+__DATA__
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5608
+*/
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5609
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5610
+#ifndef _P_P_PORTABILITY_H_
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5611
+#define _P_P_PORTABILITY_H_
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5612
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5613
+#ifndef DPPP_NAMESPACE
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5614
+#  define DPPP_NAMESPACE DPPP_
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5615
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5616
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5617
+#define DPPP_CAT2(x,y) CAT2(x,y)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5618
+#define DPPP_(name) DPPP_CAT2(DPPP_NAMESPACE, name)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5619
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5620
+#ifndef PERL_REVISION
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5621
+#  if !defined(__PATCHLEVEL_H_INCLUDED__) && !(defined(PATCHLEVEL) && defined(SUBVERSION))
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5622
+#    define PERL_PATCHLEVEL_H_IMPLICIT
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5623
+#    include <patchlevel.h>
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5624
+#  endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5625
+#  if !(defined(PERL_VERSION) || (defined(SUBVERSION) && defined(PATCHLEVEL)))
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5626
+#    include <could_not_find_Perl_patchlevel.h>
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5627
+#  endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5628
+#  ifndef PERL_REVISION
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5629
+#    define PERL_REVISION       (5)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5630
+     /* Replace: 1 */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5631
+#    define PERL_VERSION        PATCHLEVEL
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5632
+#    define PERL_SUBVERSION     SUBVERSION
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5633
+     /* Replace PERL_PATCHLEVEL with PERL_VERSION */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5634
+     /* Replace: 0 */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5635
+#  endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5636
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5637
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5638
+#define _dpppDEC2BCD(dec) ((((dec)/100)<<8)|((((dec)%100)/10)<<4)|((dec)%10))
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5639
+#define PERL_BCDVERSION ((_dpppDEC2BCD(PERL_REVISION)<<24)|(_dpppDEC2BCD(PERL_VERSION)<<12)|_dpppDEC2BCD(PERL_SUBVERSION))
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5640
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5641
+/* It is very unlikely that anyone will try to use this with Perl 6
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5642
+   (or greater), but who knows.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5643
+ */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5644
+#if PERL_REVISION != 5
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5645
+#  error ppport.h only works with Perl version 5
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5646
+#endif /* PERL_REVISION != 5 */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5647
+#ifndef dTHR
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5648
+#  define dTHR                           dNOOP
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5649
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5650
+#ifndef dTHX
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5651
+#  define dTHX                           dNOOP
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5652
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5653
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5654
+#ifndef dTHXa
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5655
+#  define dTHXa(x)                       dNOOP
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5656
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5657
+#ifndef pTHX
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5658
+#  define pTHX                           void
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5659
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5660
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5661
+#ifndef pTHX_
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5662
+#  define pTHX_
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5663
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5664
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5665
+#ifndef aTHX
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5666
+#  define aTHX
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5667
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5668
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5669
+#ifndef aTHX_
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5670
+#  define aTHX_
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5671
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5672
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5673
+#if (PERL_BCDVERSION < 0x5006000)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5674
+#  ifdef USE_THREADS
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5675
+#    define aTHXR  thr
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5676
+#    define aTHXR_ thr,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5677
+#  else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5678
+#    define aTHXR
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5679
+#    define aTHXR_
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5680
+#  endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5681
+#  define dTHXR  dTHR
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5682
+#else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5683
+#  define aTHXR  aTHX
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5684
+#  define aTHXR_ aTHX_
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5685
+#  define dTHXR  dTHX
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5686
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5687
+#ifndef dTHXoa
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5688
+#  define dTHXoa(x)                      dTHXa(x)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5689
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5690
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5691
+#ifdef I_LIMITS
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5692
+#  include <limits.h>
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5693
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5694
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5695
+#ifndef PERL_UCHAR_MIN
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5696
+#  define PERL_UCHAR_MIN ((unsigned char)0)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5697
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5698
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5699
+#ifndef PERL_UCHAR_MAX
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5700
+#  ifdef UCHAR_MAX
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5701
+#    define PERL_UCHAR_MAX ((unsigned char)UCHAR_MAX)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5702
+#  else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5703
+#    ifdef MAXUCHAR
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5704
+#      define PERL_UCHAR_MAX ((unsigned char)MAXUCHAR)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5705
+#    else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5706
+#      define PERL_UCHAR_MAX ((unsigned char)~(unsigned)0)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5707
+#    endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5708
+#  endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5709
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5710
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5711
+#ifndef PERL_USHORT_MIN
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5712
+#  define PERL_USHORT_MIN ((unsigned short)0)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5713
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5714
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5715
+#ifndef PERL_USHORT_MAX
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5716
+#  ifdef USHORT_MAX
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5717
+#    define PERL_USHORT_MAX ((unsigned short)USHORT_MAX)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5718
+#  else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5719
+#    ifdef MAXUSHORT
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5720
+#      define PERL_USHORT_MAX ((unsigned short)MAXUSHORT)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5721
+#    else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5722
+#      ifdef USHRT_MAX
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5723
+#        define PERL_USHORT_MAX ((unsigned short)USHRT_MAX)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5724
+#      else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5725
+#        define PERL_USHORT_MAX ((unsigned short)~(unsigned)0)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5726
+#      endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5727
+#    endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5728
+#  endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5729
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5730
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5731
+#ifndef PERL_SHORT_MAX
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5732
+#  ifdef SHORT_MAX
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5733
+#    define PERL_SHORT_MAX ((short)SHORT_MAX)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5734
+#  else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5735
+#    ifdef MAXSHORT    /* Often used in <values.h> */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5736
+#      define PERL_SHORT_MAX ((short)MAXSHORT)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5737
+#    else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5738
+#      ifdef SHRT_MAX
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5739
+#        define PERL_SHORT_MAX ((short)SHRT_MAX)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5740
+#      else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5741
+#        define PERL_SHORT_MAX ((short) (PERL_USHORT_MAX >> 1))
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5742
+#      endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5743
+#    endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5744
+#  endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5745
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5746
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5747
+#ifndef PERL_SHORT_MIN
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5748
+#  ifdef SHORT_MIN
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5749
+#    define PERL_SHORT_MIN ((short)SHORT_MIN)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5750
+#  else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5751
+#    ifdef MINSHORT
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5752
+#      define PERL_SHORT_MIN ((short)MINSHORT)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5753
+#    else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5754
+#      ifdef SHRT_MIN
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5755
+#        define PERL_SHORT_MIN ((short)SHRT_MIN)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5756
+#      else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5757
+#        define PERL_SHORT_MIN (-PERL_SHORT_MAX - ((3 & -1) == 3))
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5758
+#      endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5759
+#    endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5760
+#  endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5761
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5762
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5763
+#ifndef PERL_UINT_MAX
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5764
+#  ifdef UINT_MAX
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5765
+#    define PERL_UINT_MAX ((unsigned int)UINT_MAX)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5766
+#  else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5767
+#    ifdef MAXUINT
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5768
+#      define PERL_UINT_MAX ((unsigned int)MAXUINT)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5769
+#    else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5770
+#      define PERL_UINT_MAX (~(unsigned int)0)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5771
+#    endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5772
+#  endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5773
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5774
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5775
+#ifndef PERL_UINT_MIN
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5776
+#  define PERL_UINT_MIN ((unsigned int)0)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5777
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5778
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5779
+#ifndef PERL_INT_MAX
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5780
+#  ifdef INT_MAX
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5781
+#    define PERL_INT_MAX ((int)INT_MAX)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5782
+#  else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5783
+#    ifdef MAXINT    /* Often used in <values.h> */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5784
+#      define PERL_INT_MAX ((int)MAXINT)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5785
+#    else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5786
+#      define PERL_INT_MAX ((int)(PERL_UINT_MAX >> 1))
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5787
+#    endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5788
+#  endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5789
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5790
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5791
+#ifndef PERL_INT_MIN
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5792
+#  ifdef INT_MIN
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5793
+#    define PERL_INT_MIN ((int)INT_MIN)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5794
+#  else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5795
+#    ifdef MININT
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5796
+#      define PERL_INT_MIN ((int)MININT)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5797
+#    else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5798
+#      define PERL_INT_MIN (-PERL_INT_MAX - ((3 & -1) == 3))
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5799
+#    endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5800
+#  endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5801
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5802
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5803
+#ifndef PERL_ULONG_MAX
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5804
+#  ifdef ULONG_MAX
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5805
+#    define PERL_ULONG_MAX ((unsigned long)ULONG_MAX)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5806
+#  else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5807
+#    ifdef MAXULONG
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5808
+#      define PERL_ULONG_MAX ((unsigned long)MAXULONG)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5809
+#    else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5810
+#      define PERL_ULONG_MAX (~(unsigned long)0)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5811
+#    endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5812
+#  endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5813
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5814
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5815
+#ifndef PERL_ULONG_MIN
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5816
+#  define PERL_ULONG_MIN ((unsigned long)0L)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5817
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5818
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5819
+#ifndef PERL_LONG_MAX
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5820
+#  ifdef LONG_MAX
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5821
+#    define PERL_LONG_MAX ((long)LONG_MAX)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5822
+#  else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5823
+#    ifdef MAXLONG
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5824
+#      define PERL_LONG_MAX ((long)MAXLONG)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5825
+#    else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5826
+#      define PERL_LONG_MAX ((long) (PERL_ULONG_MAX >> 1))
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5827
+#    endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5828
+#  endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5829
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5830
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5831
+#ifndef PERL_LONG_MIN
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5832
+#  ifdef LONG_MIN
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5833
+#    define PERL_LONG_MIN ((long)LONG_MIN)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5834
+#  else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5835
+#    ifdef MINLONG
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5836
+#      define PERL_LONG_MIN ((long)MINLONG)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5837
+#    else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5838
+#      define PERL_LONG_MIN (-PERL_LONG_MAX - ((3 & -1) == 3))
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5839
+#    endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5840
+#  endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5841
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5842
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5843
+#if defined(HAS_QUAD) && (defined(convex) || defined(uts))
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5844
+#  ifndef PERL_UQUAD_MAX
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5845
+#    ifdef ULONGLONG_MAX
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5846
+#      define PERL_UQUAD_MAX ((unsigned long long)ULONGLONG_MAX)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5847
+#    else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5848
+#      ifdef MAXULONGLONG
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5849
+#        define PERL_UQUAD_MAX ((unsigned long long)MAXULONGLONG)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5850
+#      else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5851
+#        define PERL_UQUAD_MAX (~(unsigned long long)0)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5852
+#      endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5853
+#    endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5854
+#  endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5855
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5856
+#  ifndef PERL_UQUAD_MIN
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5857
+#    define PERL_UQUAD_MIN ((unsigned long long)0L)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5858
+#  endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5859
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5860
+#  ifndef PERL_QUAD_MAX
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5861
+#    ifdef LONGLONG_MAX
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5862
+#      define PERL_QUAD_MAX ((long long)LONGLONG_MAX)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5863
+#    else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5864
+#      ifdef MAXLONGLONG
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5865
+#        define PERL_QUAD_MAX ((long long)MAXLONGLONG)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5866
+#      else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5867
+#        define PERL_QUAD_MAX ((long long) (PERL_UQUAD_MAX >> 1))
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5868
+#      endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5869
+#    endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5870
+#  endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5871
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5872
+#  ifndef PERL_QUAD_MIN
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5873
+#    ifdef LONGLONG_MIN
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5874
+#      define PERL_QUAD_MIN ((long long)LONGLONG_MIN)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5875
+#    else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5876
+#      ifdef MINLONGLONG
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5877
+#        define PERL_QUAD_MIN ((long long)MINLONGLONG)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5878
+#      else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5879
+#        define PERL_QUAD_MIN (-PERL_QUAD_MAX - ((3 & -1) == 3))
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5880
+#      endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5881
+#    endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5882
+#  endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5883
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5884
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5885
+/* This is based on code from 5.003 perl.h */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5886
+#ifdef HAS_QUAD
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5887
+#  ifdef cray
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5888
+#ifndef IVTYPE
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5889
+#  define IVTYPE                         int
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5890
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5891
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5892
+#ifndef IV_MIN
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5893
+#  define IV_MIN                         PERL_INT_MIN
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5894
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5895
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5896
+#ifndef IV_MAX
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5897
+#  define IV_MAX                         PERL_INT_MAX
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5898
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5899
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5900
+#ifndef UV_MIN
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5901
+#  define UV_MIN                         PERL_UINT_MIN
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5902
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5903
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5904
+#ifndef UV_MAX
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5905
+#  define UV_MAX                         PERL_UINT_MAX
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5906
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5907
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5908
+#    ifdef INTSIZE
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5909
+#ifndef IVSIZE
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5910
+#  define IVSIZE                         INTSIZE
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5911
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5912
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5913
+#    endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5914
+#  else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5915
+#    if defined(convex) || defined(uts)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5916
+#ifndef IVTYPE
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5917
+#  define IVTYPE                         long long
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5918
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5919
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5920
+#ifndef IV_MIN
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5921
+#  define IV_MIN                         PERL_QUAD_MIN
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5922
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5923
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5924
+#ifndef IV_MAX
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5925
+#  define IV_MAX                         PERL_QUAD_MAX
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5926
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5927
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5928
+#ifndef UV_MIN
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5929
+#  define UV_MIN                         PERL_UQUAD_MIN
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5930
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5931
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5932
+#ifndef UV_MAX
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5933
+#  define UV_MAX                         PERL_UQUAD_MAX
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5934
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5935
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5936
+#      ifdef LONGLONGSIZE
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5937
+#ifndef IVSIZE
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5938
+#  define IVSIZE                         LONGLONGSIZE
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5939
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5940
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5941
+#      endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5942
+#    else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5943
+#ifndef IVTYPE
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5944
+#  define IVTYPE                         long
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5945
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5946
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5947
+#ifndef IV_MIN
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5948
+#  define IV_MIN                         PERL_LONG_MIN
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5949
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5950
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5951
+#ifndef IV_MAX
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5952
+#  define IV_MAX                         PERL_LONG_MAX
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5953
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5954
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5955
+#ifndef UV_MIN
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5956
+#  define UV_MIN                         PERL_ULONG_MIN
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5957
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5958
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5959
+#ifndef UV_MAX
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5960
+#  define UV_MAX                         PERL_ULONG_MAX
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5961
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5962
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5963
+#      ifdef LONGSIZE
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5964
+#ifndef IVSIZE
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5965
+#  define IVSIZE                         LONGSIZE
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5966
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5967
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5968
+#      endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5969
+#    endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5970
+#  endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5971
+#ifndef IVSIZE
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5972
+#  define IVSIZE                         8
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5973
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5974
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5975
+#ifndef LONGSIZE
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5976
+#  define LONGSIZE                       8
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5977
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5978
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5979
+#ifndef PERL_QUAD_MIN
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5980
+#  define PERL_QUAD_MIN                  IV_MIN
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5981
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5982
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5983
+#ifndef PERL_QUAD_MAX
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5984
+#  define PERL_QUAD_MAX                  IV_MAX
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5985
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5986
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5987
+#ifndef PERL_UQUAD_MIN
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5988
+#  define PERL_UQUAD_MIN                 UV_MIN
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5989
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5990
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5991
+#ifndef PERL_UQUAD_MAX
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5992
+#  define PERL_UQUAD_MAX                 UV_MAX
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5993
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5994
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5995
+#else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5996
+#ifndef IVTYPE
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5997
+#  define IVTYPE                         long
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5998
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5999
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6000
+#ifndef LONGSIZE
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6001
+#  define LONGSIZE                       4
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6002
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6003
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6004
+#ifndef IV_MIN
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6005
+#  define IV_MIN                         PERL_LONG_MIN
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6006
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6007
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6008
+#ifndef IV_MAX
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6009
+#  define IV_MAX                         PERL_LONG_MAX
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6010
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6011
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6012
+#ifndef UV_MIN
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6013
+#  define UV_MIN                         PERL_ULONG_MIN
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6014
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6015
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6016
+#ifndef UV_MAX
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6017
+#  define UV_MAX                         PERL_ULONG_MAX
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6018
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6019
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6020
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6021
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6022
+#ifndef IVSIZE
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6023
+#  ifdef LONGSIZE
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6024
+#    define IVSIZE LONGSIZE
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6025
+#  else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6026
+#    define IVSIZE 4 /* A bold guess, but the best we can make. */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6027
+#  endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6028
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6029
+#ifndef UVTYPE
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6030
+#  define UVTYPE                         unsigned IVTYPE
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6031
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6032
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6033
+#ifndef UVSIZE
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6034
+#  define UVSIZE                         IVSIZE
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6035
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6036
+#ifndef sv_setuv
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6037
+#  define sv_setuv(sv, uv)               \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6038
+               STMT_START {                         \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6039
+                 UV TeMpUv = uv;                    \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6040
+                 if (TeMpUv <= IV_MAX)              \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6041
+                   sv_setiv(sv, TeMpUv);            \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6042
+                 else                               \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6043
+                   sv_setnv(sv, (double)TeMpUv);    \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6044
+               } STMT_END
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6045
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6046
+#ifndef newSVuv
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6047
+#  define newSVuv(uv)                    ((uv) <= IV_MAX ? newSViv((IV)uv) : newSVnv((NV)uv))
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6048
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6049
+#ifndef sv_2uv
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6050
+#  define sv_2uv(sv)                     ((PL_Sv = (sv)), (UV) (SvNOK(PL_Sv) ? SvNV(PL_Sv) : sv_2nv(PL_Sv)))
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6051
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6052
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6053
+#ifndef SvUVX
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6054
+#  define SvUVX(sv)                      ((UV)SvIVX(sv))
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6055
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6056
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6057
+#ifndef SvUVXx
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6058
+#  define SvUVXx(sv)                     SvUVX(sv)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6059
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6060
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6061
+#ifndef SvUV
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6062
+#  define SvUV(sv)                       (SvIOK(sv) ? SvUVX(sv) : sv_2uv(sv))
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6063
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6064
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6065
+#ifndef SvUVx
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6066
+#  define SvUVx(sv)                      ((PL_Sv = (sv)), SvUV(PL_Sv))
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6067
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6068
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6069
+/* Hint: sv_uv
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6070
+ * Always use the SvUVx() macro instead of sv_uv().
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6071
+ */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6072
+#ifndef sv_uv
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6073
+#  define sv_uv(sv)                      SvUVx(sv)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6074
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6075
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6076
+#if !defined(SvUOK) && defined(SvIOK_UV)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6077
+#  define SvUOK(sv) SvIOK_UV(sv)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6078
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6079
+#ifndef XST_mUV
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6080
+#  define XST_mUV(i,v)                   (ST(i) = sv_2mortal(newSVuv(v))  )
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6081
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6082
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6083
+#ifndef XSRETURN_UV
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6084
+#  define XSRETURN_UV(v)                 STMT_START { XST_mUV(0,v);  XSRETURN(1); } STMT_END
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6085
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6086
+#ifndef PUSHu
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6087
+#  define PUSHu(u)                       STMT_START { sv_setuv(TARG, (UV)(u)); PUSHTARG;  } STMT_END
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6088
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6089
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6090
+#ifndef XPUSHu
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6091
+#  define XPUSHu(u)                      STMT_START { sv_setuv(TARG, (UV)(u)); XPUSHTARG; } STMT_END
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6092
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6093
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6094
+#ifdef HAS_MEMCMP
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6095
+#ifndef memNE
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6096
+#  define memNE(s1,s2,l)                 (memcmp(s1,s2,l))
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6097
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6098
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6099
+#ifndef memEQ
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6100
+#  define memEQ(s1,s2,l)                 (!memcmp(s1,s2,l))
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6101
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6102
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6103
+#else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6104
+#ifndef memNE
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6105
+#  define memNE(s1,s2,l)                 (bcmp(s1,s2,l))
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6106
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6107
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6108
+#ifndef memEQ
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6109
+#  define memEQ(s1,s2,l)                 (!bcmp(s1,s2,l))
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6110
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6111
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6112
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6113
+#ifndef memEQs
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6114
+#  define memEQs(s1, l, s2)              \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6115
+                   (sizeof(s2)-1 == l && memEQ(s1, (s2 ""), (sizeof(s2)-1)))
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6116
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6117
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6118
+#ifndef memNEs
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6119
+#  define memNEs(s1, l, s2)              !memEQs(s1, l, s2)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6120
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6121
+#ifndef MoveD
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6122
+#  define MoveD(s,d,n,t)                 memmove((char*)(d),(char*)(s), (n) * sizeof(t))
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6123
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6124
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6125
+#ifndef CopyD
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6126
+#  define CopyD(s,d,n,t)                 memcpy((char*)(d),(char*)(s), (n) * sizeof(t))
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6127
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6128
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6129
+#ifdef HAS_MEMSET
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6130
+#ifndef ZeroD
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6131
+#  define ZeroD(d,n,t)                   memzero((char*)(d), (n) * sizeof(t))
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6132
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6133
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6134
+#else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6135
+#ifndef ZeroD
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6136
+#  define ZeroD(d,n,t)                   ((void)memzero((char*)(d), (n) * sizeof(t)), d)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6137
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6138
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6139
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6140
+#ifndef PoisonWith
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6141
+#  define PoisonWith(d,n,t,b)            (void)memset((char*)(d), (U8)(b), (n) * sizeof(t))
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6142
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6143
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6144
+#ifndef PoisonNew
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6145
+#  define PoisonNew(d,n,t)               PoisonWith(d,n,t,0xAB)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6146
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6147
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6148
+#ifndef PoisonFree
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6149
+#  define PoisonFree(d,n,t)              PoisonWith(d,n,t,0xEF)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6150
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6151
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6152
+#ifndef Poison
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6153
+#  define Poison(d,n,t)                  PoisonFree(d,n,t)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6154
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6155
+#ifndef Newx
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6156
+#  define Newx(v,n,t)                    New(0,v,n,t)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6157
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6158
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6159
+#ifndef Newxc
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6160
+#  define Newxc(v,n,t,c)                 Newc(0,v,n,t,c)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6161
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6162
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6163
+#ifndef Newxz
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6164
+#  define Newxz(v,n,t)                   Newz(0,v,n,t)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6165
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6166
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6167
+#ifndef PERL_UNUSED_DECL
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6168
+#  ifdef HASATTRIBUTE
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6169
+#    if (defined(__GNUC__) && defined(__cplusplus)) || defined(__INTEL_COMPILER)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6170
+#      define PERL_UNUSED_DECL
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6171
+#    else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6172
+#      define PERL_UNUSED_DECL __attribute__((unused))
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6173
+#    endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6174
+#  else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6175
+#    define PERL_UNUSED_DECL
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6176
+#  endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6177
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6178
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6179
+#ifndef PERL_UNUSED_ARG
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6180
+#  if defined(lint) && defined(S_SPLINT_S) /* www.splint.org */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6181
+#    include <note.h>
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6182
+#    define PERL_UNUSED_ARG(x) NOTE(ARGUNUSED(x))
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6183
+#  else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6184
+#    define PERL_UNUSED_ARG(x) ((void)x)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6185
+#  endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6186
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6187
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6188
+#ifndef PERL_UNUSED_VAR
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6189
+#  define PERL_UNUSED_VAR(x) ((void)x)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6190
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6191
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6192
+#ifndef PERL_UNUSED_CONTEXT
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6193
+#  ifdef USE_ITHREADS
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6194
+#    define PERL_UNUSED_CONTEXT PERL_UNUSED_ARG(my_perl)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6195
+#  else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6196
+#    define PERL_UNUSED_CONTEXT
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6197
+#  endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6198
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6199
+#ifndef NOOP
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6200
+#  define NOOP                           /*EMPTY*/(void)0
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6201
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6202
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6203
+#ifndef dNOOP
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6204
+#  define dNOOP                          extern int /*@unused@*/ Perl___notused PERL_UNUSED_DECL
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6205
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6206
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6207
+#ifndef NVTYPE
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6208
+#  if defined(USE_LONG_DOUBLE) && defined(HAS_LONG_DOUBLE)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6209
+#    define NVTYPE long double
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6210
+#  else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6211
+#    define NVTYPE double
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6212
+#  endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6213
+typedef NVTYPE NV;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6214
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6215
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6216
+#ifndef INT2PTR
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6217
+#  if (IVSIZE == PTRSIZE) && (UVSIZE == PTRSIZE)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6218
+#    define PTRV                  UV
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6219
+#    define INT2PTR(any,d)        (any)(d)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6220
+#  else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6221
+#    if PTRSIZE == LONGSIZE
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6222
+#      define PTRV                unsigned long
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6223
+#    else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6224
+#      define PTRV                unsigned
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6225
+#    endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6226
+#    define INT2PTR(any,d)        (any)(PTRV)(d)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6227
+#  endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6228
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6229
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6230
+#ifndef PTR2ul
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6231
+#  if PTRSIZE == LONGSIZE
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6232
+#    define PTR2ul(p)     (unsigned long)(p)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6233
+#  else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6234
+#    define PTR2ul(p)     INT2PTR(unsigned long,p)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6235
+#  endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6236
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6237
+#ifndef PTR2nat
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6238
+#  define PTR2nat(p)                     (PTRV)(p)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6239
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6240
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6241
+#ifndef NUM2PTR
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6242
+#  define NUM2PTR(any,d)                 (any)PTR2nat(d)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6243
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6244
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6245
+#ifndef PTR2IV
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6246
+#  define PTR2IV(p)                      INT2PTR(IV,p)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6247
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6248
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6249
+#ifndef PTR2UV
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6250
+#  define PTR2UV(p)                      INT2PTR(UV,p)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6251
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6252
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6253
+#ifndef PTR2NV
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6254
+#  define PTR2NV(p)                      NUM2PTR(NV,p)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6255
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6256
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6257
+#undef START_EXTERN_C
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6258
+#undef END_EXTERN_C
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6259
+#undef EXTERN_C
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6260
+#ifdef __cplusplus
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6261
+#  define START_EXTERN_C extern "C" {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6262
+#  define END_EXTERN_C }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6263
+#  define EXTERN_C extern "C"
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6264
+#else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6265
+#  define START_EXTERN_C
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6266
+#  define END_EXTERN_C
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6267
+#  define EXTERN_C extern
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6268
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6269
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6270
+#if defined(PERL_GCC_PEDANTIC)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6271
+#  ifndef PERL_GCC_BRACE_GROUPS_FORBIDDEN
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6272
+#    define PERL_GCC_BRACE_GROUPS_FORBIDDEN
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6273
+#  endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6274
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6275
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6276
+#if defined(__GNUC__) && !defined(PERL_GCC_BRACE_GROUPS_FORBIDDEN) && !defined(__cplusplus)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6277
+#  ifndef PERL_USE_GCC_BRACE_GROUPS
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6278
+#    define PERL_USE_GCC_BRACE_GROUPS
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6279
+#  endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6280
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6281
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6282
+#undef STMT_START
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6283
+#undef STMT_END
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6284
+#ifdef PERL_USE_GCC_BRACE_GROUPS
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6285
+#  define STMT_START    (void)( /* gcc supports ``({ STATEMENTS; })'' */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6286
+#  define STMT_END      )
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6287
+#else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6288
+#  if defined(VOIDFLAGS) && (VOIDFLAGS) && (defined(sun) || defined(__sun__)) && !defined(__GNUC__)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6289
+#    define STMT_START  if (1)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6290
+#    define STMT_END    else (void)0
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6291
+#  else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6292
+#    define STMT_START  do
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6293
+#    define STMT_END    while (0)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6294
+#  endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6295
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6296
+#ifndef boolSV
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6297
+#  define boolSV(b)                      ((b) ? &PL_sv_yes : &PL_sv_no)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6298
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6299
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6300
+/* DEFSV appears first in 5.004_56 */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6301
+#ifndef DEFSV
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6302
+#  define DEFSV                          GvSV(PL_defgv)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6303
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6304
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6305
+#ifndef SAVE_DEFSV
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6306
+#  define SAVE_DEFSV                     SAVESPTR(GvSV(PL_defgv))
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6307
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6308
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6309
+#ifndef DEFSV_set
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6310
+#  define DEFSV_set(sv)                  (DEFSV = (sv))
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6311
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6312
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6313
+/* Older perls (<=5.003) lack AvFILLp */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6314
+#ifndef AvFILLp
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6315
+#  define AvFILLp                        AvFILL
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6316
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6317
+#ifndef ERRSV
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6318
+#  define ERRSV                          get_sv("@",FALSE)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6319
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6320
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6321
+/* Hint: gv_stashpvn
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6322
+ * This function's backport doesn't support the length parameter, but
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6323
+ * rather ignores it. Portability can only be ensured if the length
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6324
+ * parameter is used for speed reasons, but the length can always be
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6325
+ * correctly computed from the string argument.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6326
+ */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6327
+#ifndef gv_stashpvn
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6328
+#  define gv_stashpvn(str,len,create)    gv_stashpv(str,create)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6329
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6330
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6331
+/* Replace: 1 */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6332
+#ifndef get_cv
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6333
+#  define get_cv                         perl_get_cv
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6334
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6335
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6336
+#ifndef get_sv
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6337
+#  define get_sv                         perl_get_sv
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6338
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6339
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6340
+#ifndef get_av
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6341
+#  define get_av                         perl_get_av
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6342
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6343
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6344
+#ifndef get_hv
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6345
+#  define get_hv                         perl_get_hv
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6346
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6347
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6348
+/* Replace: 0 */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6349
+#ifndef dUNDERBAR
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6350
+#  define dUNDERBAR                      dNOOP
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6351
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6352
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6353
+#ifndef UNDERBAR
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6354
+#  define UNDERBAR                       DEFSV
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6355
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6356
+#ifndef dAX
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6357
+#  define dAX                            I32 ax = MARK - PL_stack_base + 1
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6358
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6359
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6360
+#ifndef dITEMS
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6361
+#  define dITEMS                         I32 items = SP - MARK
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6362
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6363
+#ifndef dXSTARG
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6364
+#  define dXSTARG                        SV * targ = sv_newmortal()
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6365
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6366
+#ifndef dAXMARK
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6367
+#  define dAXMARK                        I32 ax = POPMARK; \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6368
+                               register SV ** const mark = PL_stack_base + ax++
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6369
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6370
+#ifndef XSprePUSH
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6371
+#  define XSprePUSH                      (sp = PL_stack_base + ax - 1)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6372
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6373
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6374
+#if (PERL_BCDVERSION < 0x5005000)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6375
+#  undef XSRETURN
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6376
+#  define XSRETURN(off)                                   \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6377
+      STMT_START {                                        \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6378
+          PL_stack_sp = PL_stack_base + ax + ((off) - 1); \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6379
+          return;                                         \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6380
+      } STMT_END
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6381
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6382
+#ifndef XSPROTO
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6383
+#  define XSPROTO(name)                  void name(pTHX_ CV* cv)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6384
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6385
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6386
+#ifndef SVfARG
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6387
+#  define SVfARG(p)                      ((void*)(p))
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6388
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6389
+#ifndef PERL_ABS
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6390
+#  define PERL_ABS(x)                    ((x) < 0 ? -(x) : (x))
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6391
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6392
+#ifndef dVAR
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6393
+#  define dVAR                           dNOOP
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6394
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6395
+#ifndef SVf
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6396
+#  define SVf                            "_"
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6397
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6398
+#ifndef UTF8_MAXBYTES
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6399
+#  define UTF8_MAXBYTES                  UTF8_MAXLEN
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6400
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6401
+#ifndef CPERLscope
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6402
+#  define CPERLscope(x)                  x
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6403
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6404
+#ifndef PERL_HASH
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6405
+#  define PERL_HASH(hash,str,len)        \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6406
+     STMT_START { \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6407
+        const char *s_PeRlHaSh = str; \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6408
+        I32 i_PeRlHaSh = len; \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6409
+        U32 hash_PeRlHaSh = 0; \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6410
+        while (i_PeRlHaSh--) \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6411
+            hash_PeRlHaSh = hash_PeRlHaSh * 33 + *s_PeRlHaSh++; \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6412
+        (hash) = hash_PeRlHaSh; \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6413
+    } STMT_END
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6414
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6415
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6416
+#ifndef PERLIO_FUNCS_DECL
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6417
+# ifdef PERLIO_FUNCS_CONST
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6418
+#  define PERLIO_FUNCS_DECL(funcs) const PerlIO_funcs funcs
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6419
+#  define PERLIO_FUNCS_CAST(funcs) (PerlIO_funcs*)(funcs)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6420
+# else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6421
+#  define PERLIO_FUNCS_DECL(funcs) PerlIO_funcs funcs
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6422
+#  define PERLIO_FUNCS_CAST(funcs) (funcs)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6423
+# endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6424
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6425
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6426
+/* provide these typedefs for older perls */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6427
+#if (PERL_BCDVERSION < 0x5009003)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6428
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6429
+# ifdef ARGSproto
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6430
+typedef OP* (CPERLscope(*Perl_ppaddr_t))(ARGSproto);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6431
+# else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6432
+typedef OP* (CPERLscope(*Perl_ppaddr_t))(pTHX);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6433
+# endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6434
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6435
+typedef OP* (CPERLscope(*Perl_check_t)) (pTHX_ OP*);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6436
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6437
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6438
+#ifndef isPSXSPC
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6439
+#  define isPSXSPC(c)                    (isSPACE(c) || (c) == '\v')
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6440
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6441
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6442
+#ifndef isBLANK
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6443
+#  define isBLANK(c)                     ((c) == ' ' || (c) == '\t')
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6444
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6445
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6446
+#ifdef EBCDIC
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6447
+#ifndef isALNUMC
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6448
+#  define isALNUMC(c)                    isalnum(c)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6449
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6450
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6451
+#ifndef isASCII
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6452
+#  define isASCII(c)                     isascii(c)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6453
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6454
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6455
+#ifndef isCNTRL
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6456
+#  define isCNTRL(c)                     iscntrl(c)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6457
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6458
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6459
+#ifndef isGRAPH
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6460
+#  define isGRAPH(c)                     isgraph(c)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6461
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6462
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6463
+#ifndef isPRINT
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6464
+#  define isPRINT(c)                     isprint(c)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6465
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6466
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6467
+#ifndef isPUNCT
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6468
+#  define isPUNCT(c)                     ispunct(c)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6469
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6470
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6471
+#ifndef isXDIGIT
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6472
+#  define isXDIGIT(c)                    isxdigit(c)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6473
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6474
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6475
+#else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6476
+# if (PERL_BCDVERSION < 0x5010000)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6477
+/* Hint: isPRINT
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6478
+ * The implementation in older perl versions includes all of the
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6479
+ * isSPACE() characters, which is wrong. The version provided by
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6480
+ * Devel::PPPort always overrides a present buggy version.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6481
+ */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6482
+#  undef isPRINT
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6483
+# endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6484
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6485
+#ifdef HAS_QUAD
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6486
+# define WIDEST_UTYPE U64TYPE
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6487
+#else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6488
+# define WIDEST_UTYPE U32
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6489
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6490
+#ifndef isALNUMC
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6491
+#  define isALNUMC(c)                    (isALPHA(c) || isDIGIT(c))
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6492
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6493
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6494
+#ifndef isASCII
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6495
+#  define isASCII(c)                     ((WIDEST_UTYPE) (c) <= 127)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6496
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6497
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6498
+#ifndef isCNTRL
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6499
+#  define isCNTRL(c)                     ((WIDEST_UTYPE) (c) < ' ' || (c) == 127)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6500
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6501
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6502
+#ifndef isGRAPH
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6503
+#  define isGRAPH(c)                     (isALNUM(c) || isPUNCT(c))
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6504
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6505
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6506
+#ifndef isPRINT
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6507
+#  define isPRINT(c)                     (((c) >= 32 && (c) < 127))
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6508
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6509
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6510
+#ifndef isPUNCT
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6511
+#  define isPUNCT(c)                     (((c) >= 33 && (c) <= 47) || ((c) >= 58 && (c) <= 64)  || ((c) >= 91 && (c) <= 96) || ((c) >= 123 && (c) <= 126))
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6512
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6513
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6514
+#ifndef isXDIGIT
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6515
+#  define isXDIGIT(c)                    (isDIGIT(c) || ((c) >= 'a' && (c) <= 'f') || ((c) >= 'A' && (c) <= 'F'))
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6516
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6517
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6518
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6519
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6520
+#ifndef PERL_SIGNALS_UNSAFE_FLAG
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6521
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6522
+#define PERL_SIGNALS_UNSAFE_FLAG 0x0001
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6523
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6524
+#if (PERL_BCDVERSION < 0x5008000)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6525
+#  define D_PPP_PERL_SIGNALS_INIT   PERL_SIGNALS_UNSAFE_FLAG
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6526
+#else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6527
+#  define D_PPP_PERL_SIGNALS_INIT   0
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6528
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6529
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6530
+#if defined(NEED_PL_signals)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6531
+static U32 DPPP_(my_PL_signals) = D_PPP_PERL_SIGNALS_INIT;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6532
+#elif defined(NEED_PL_signals_GLOBAL)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6533
+U32 DPPP_(my_PL_signals) = D_PPP_PERL_SIGNALS_INIT;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6534
+#else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6535
+extern U32 DPPP_(my_PL_signals);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6536
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6537
+#define PL_signals DPPP_(my_PL_signals)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6538
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6539
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6540
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6541
+/* Hint: PL_ppaddr
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6542
+ * Calling an op via PL_ppaddr requires passing a context argument
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6543
+ * for threaded builds. Since the context argument is different for
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6544
+ * 5.005 perls, you can use aTHXR (supplied by ppport.h), which will
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6545
+ * automatically be defined as the correct argument.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6546
+ */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6547
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6548
+#if (PERL_BCDVERSION <= 0x5005005)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6549
+/* Replace: 1 */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6550
+#  define PL_ppaddr                 ppaddr
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6551
+#  define PL_no_modify              no_modify
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6552
+/* Replace: 0 */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6553
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6554
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6555
+#if (PERL_BCDVERSION <= 0x5004005)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6556
+/* Replace: 1 */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6557
+#  define PL_DBsignal               DBsignal
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6558
+#  define PL_DBsingle               DBsingle
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6559
+#  define PL_DBsub                  DBsub
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6560
+#  define PL_DBtrace                DBtrace
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6561
+#  define PL_Sv                     Sv
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6562
+#  define PL_bufend                 bufend
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6563
+#  define PL_bufptr                 bufptr
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6564
+#  define PL_compiling              compiling
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6565
+#  define PL_copline                copline
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6566
+#  define PL_curcop                 curcop
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6567
+#  define PL_curstash               curstash
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6568
+#  define PL_debstash               debstash
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6569
+#  define PL_defgv                  defgv
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6570
+#  define PL_diehook                diehook
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6571
+#  define PL_dirty                  dirty
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6572
+#  define PL_dowarn                 dowarn
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6573
+#  define PL_errgv                  errgv
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6574
+#  define PL_error_count            error_count
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6575
+#  define PL_expect                 expect
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6576
+#  define PL_hexdigit               hexdigit
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6577
+#  define PL_hints                  hints
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6578
+#  define PL_in_my                  in_my
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6579
+#  define PL_laststatval            laststatval
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6580
+#  define PL_lex_state              lex_state
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6581
+#  define PL_lex_stuff              lex_stuff
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6582
+#  define PL_linestr                linestr
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6583
+#  define PL_na                     na
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6584
+#  define PL_perl_destruct_level    perl_destruct_level
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6585
+#  define PL_perldb                 perldb
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6586
+#  define PL_rsfp_filters           rsfp_filters
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6587
+#  define PL_rsfp                   rsfp
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6588
+#  define PL_stack_base             stack_base
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6589
+#  define PL_stack_sp               stack_sp
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6590
+#  define PL_statcache              statcache
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6591
+#  define PL_stdingv                stdingv
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6592
+#  define PL_sv_arenaroot           sv_arenaroot
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6593
+#  define PL_sv_no                  sv_no
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6594
+#  define PL_sv_undef               sv_undef
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6595
+#  define PL_sv_yes                 sv_yes
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6596
+#  define PL_tainted                tainted
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6597
+#  define PL_tainting               tainting
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6598
+#  define PL_tokenbuf               tokenbuf
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6599
+/* Replace: 0 */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6600
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6601
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6602
+/* Warning: PL_parser
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6603
+ * For perl versions earlier than 5.9.5, this is an always
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6604
+ * non-NULL dummy. Also, it cannot be dereferenced. Don't
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6605
+ * use it if you can avoid is and unless you absolutely know
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6606
+ * what you're doing.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6607
+ * If you always check that PL_parser is non-NULL, you can
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6608
+ * define DPPP_PL_parser_NO_DUMMY to avoid the creation of
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6609
+ * a dummy parser structure.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6610
+ */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6611
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6612
+#if (PERL_BCDVERSION >= 0x5009005)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6613
+# ifdef DPPP_PL_parser_NO_DUMMY
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6614
+#  define D_PPP_my_PL_parser_var(var) ((PL_parser ? PL_parser : \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6615
+                (croak("panic: PL_parser == NULL in %s:%d", \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6616
+                       __FILE__, __LINE__), (yy_parser *) NULL))->var)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6617
+# else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6618
+#  ifdef DPPP_PL_parser_NO_DUMMY_WARNING
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6619
+#   define D_PPP_parser_dummy_warning(var)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6620
+#  else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6621
+#   define D_PPP_parser_dummy_warning(var) \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6622
+             warn("warning: dummy PL_" #var " used in %s:%d", __FILE__, __LINE__),
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6623
+#  endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6624
+#  define D_PPP_my_PL_parser_var(var) ((PL_parser ? PL_parser : \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6625
+                (D_PPP_parser_dummy_warning(var) &DPPP_(dummy_PL_parser)))->var)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6626
+#if defined(NEED_PL_parser)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6627
+static yy_parser DPPP_(dummy_PL_parser);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6628
+#elif defined(NEED_PL_parser_GLOBAL)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6629
+yy_parser DPPP_(dummy_PL_parser);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6630
+#else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6631
+extern yy_parser DPPP_(dummy_PL_parser);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6632
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6633
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6634
+# endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6635
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6636
+/* PL_expect, PL_copline, PL_rsfp, PL_rsfp_filters, PL_linestr, PL_bufptr, PL_bufend, PL_lex_state, PL_lex_stuff, PL_tokenbuf depends on PL_parser */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6637
+/* Warning: PL_expect, PL_copline, PL_rsfp, PL_rsfp_filters, PL_linestr, PL_bufptr, PL_bufend, PL_lex_state, PL_lex_stuff, PL_tokenbuf
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6638
+ * Do not use this variable unless you know exactly what you're
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6639
+ * doint. It is internal to the perl parser and may change or even
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6640
+ * be removed in the future. As of perl 5.9.5, you have to check
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6641
+ * for (PL_parser != NULL) for this variable to have any effect.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6642
+ * An always non-NULL PL_parser dummy is provided for earlier
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6643
+ * perl versions.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6644
+ * If PL_parser is NULL when you try to access this variable, a
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6645
+ * dummy is being accessed instead and a warning is issued unless
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6646
+ * you define DPPP_PL_parser_NO_DUMMY_WARNING.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6647
+ * If DPPP_PL_parser_NO_DUMMY is defined, the code trying to access
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6648
+ * this variable will croak with a panic message.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6649
+ */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6650
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6651
+# define PL_expect         D_PPP_my_PL_parser_var(expect)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6652
+# define PL_copline        D_PPP_my_PL_parser_var(copline)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6653
+# define PL_rsfp           D_PPP_my_PL_parser_var(rsfp)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6654
+# define PL_rsfp_filters   D_PPP_my_PL_parser_var(rsfp_filters)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6655
+# define PL_linestr        D_PPP_my_PL_parser_var(linestr)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6656
+# define PL_bufptr         D_PPP_my_PL_parser_var(bufptr)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6657
+# define PL_bufend         D_PPP_my_PL_parser_var(bufend)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6658
+# define PL_lex_state      D_PPP_my_PL_parser_var(lex_state)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6659
+# define PL_lex_stuff      D_PPP_my_PL_parser_var(lex_stuff)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6660
+# define PL_tokenbuf       D_PPP_my_PL_parser_var(tokenbuf)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6661
+# define PL_in_my          D_PPP_my_PL_parser_var(in_my)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6662
+# define PL_in_my_stash    D_PPP_my_PL_parser_var(in_my_stash)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6663
+# define PL_error_count    D_PPP_my_PL_parser_var(error_count)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6664
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6665
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6666
+#else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6667
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6668
+/* ensure that PL_parser != NULL and cannot be dereferenced */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6669
+# define PL_parser         ((void *) 1)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6670
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6671
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6672
+#ifndef mPUSHs
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6673
+#  define mPUSHs(s)                      PUSHs(sv_2mortal(s))
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6674
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6675
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6676
+#ifndef PUSHmortal
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6677
+#  define PUSHmortal                     PUSHs(sv_newmortal())
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6678
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6679
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6680
+#ifndef mPUSHp
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6681
+#  define mPUSHp(p,l)                    sv_setpvn(PUSHmortal, (p), (l))
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6682
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6683
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6684
+#ifndef mPUSHn
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6685
+#  define mPUSHn(n)                      sv_setnv(PUSHmortal, (NV)(n))
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6686
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6687
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6688
+#ifndef mPUSHi
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6689
+#  define mPUSHi(i)                      sv_setiv(PUSHmortal, (IV)(i))
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6690
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6691
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6692
+#ifndef mPUSHu
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6693
+#  define mPUSHu(u)                      sv_setuv(PUSHmortal, (UV)(u))
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6694
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6695
+#ifndef mXPUSHs
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6696
+#  define mXPUSHs(s)                     XPUSHs(sv_2mortal(s))
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6697
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6698
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6699
+#ifndef XPUSHmortal
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6700
+#  define XPUSHmortal                    XPUSHs(sv_newmortal())
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6701
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6702
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6703
+#ifndef mXPUSHp
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6704
+#  define mXPUSHp(p,l)                   STMT_START { EXTEND(sp,1); sv_setpvn(PUSHmortal, (p), (l)); } STMT_END
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6705
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6706
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6707
+#ifndef mXPUSHn
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6708
+#  define mXPUSHn(n)                     STMT_START { EXTEND(sp,1); sv_setnv(PUSHmortal, (NV)(n)); } STMT_END
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6709
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6710
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6711
+#ifndef mXPUSHi
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6712
+#  define mXPUSHi(i)                     STMT_START { EXTEND(sp,1); sv_setiv(PUSHmortal, (IV)(i)); } STMT_END
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6713
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6714
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6715
+#ifndef mXPUSHu
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6716
+#  define mXPUSHu(u)                     STMT_START { EXTEND(sp,1); sv_setuv(PUSHmortal, (UV)(u)); } STMT_END
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6717
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6718
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6719
+/* Replace: 1 */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6720
+#ifndef call_sv
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6721
+#  define call_sv                        perl_call_sv
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6722
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6723
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6724
+#ifndef call_pv
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6725
+#  define call_pv                        perl_call_pv
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6726
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6727
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6728
+#ifndef call_argv
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6729
+#  define call_argv                      perl_call_argv
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6730
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6731
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6732
+#ifndef call_method
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6733
+#  define call_method                    perl_call_method
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6734
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6735
+#ifndef eval_sv
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6736
+#  define eval_sv                        perl_eval_sv
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6737
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6738
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6739
+/* Replace: 0 */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6740
+#ifndef PERL_LOADMOD_DENY
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6741
+#  define PERL_LOADMOD_DENY              0x1
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6742
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6743
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6744
+#ifndef PERL_LOADMOD_NOIMPORT
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6745
+#  define PERL_LOADMOD_NOIMPORT          0x2
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6746
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6747
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6748
+#ifndef PERL_LOADMOD_IMPORT_OPS
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6749
+#  define PERL_LOADMOD_IMPORT_OPS        0x4
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6750
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6751
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6752
+#ifndef G_METHOD
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6753
+# define G_METHOD               64
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6754
+# ifdef call_sv
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6755
+#  undef call_sv
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6756
+# endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6757
+# if (PERL_BCDVERSION < 0x5006000)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6758
+#  define call_sv(sv, flags)  ((flags) & G_METHOD ? perl_call_method((char *) SvPV_nolen_const(sv), \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6759
+                                (flags) & ~G_METHOD) : perl_call_sv(sv, flags))
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6760
+# else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6761
+#  define call_sv(sv, flags)  ((flags) & G_METHOD ? Perl_call_method(aTHX_ (char *) SvPV_nolen_const(sv), \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6762
+                                (flags) & ~G_METHOD) : Perl_call_sv(aTHX_ sv, flags))
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6763
+# endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6764
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6765
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6766
+/* Replace perl_eval_pv with eval_pv */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6767
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6768
+#ifndef eval_pv
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6769
+#if defined(NEED_eval_pv)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6770
+static SV* DPPP_(my_eval_pv)(char *p, I32 croak_on_error);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6771
+static
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6772
+#else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6773
+extern SV* DPPP_(my_eval_pv)(char *p, I32 croak_on_error);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6774
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6775
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6776
+#ifdef eval_pv
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6777
+#  undef eval_pv
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6778
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6779
+#define eval_pv(a,b) DPPP_(my_eval_pv)(aTHX_ a,b)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6780
+#define Perl_eval_pv DPPP_(my_eval_pv)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6781
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6782
+#if defined(NEED_eval_pv) || defined(NEED_eval_pv_GLOBAL)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6783
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6784
+SV*
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6785
+DPPP_(my_eval_pv)(char *p, I32 croak_on_error)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6786
+{
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6787
+    dSP;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6788
+    SV* sv = newSVpv(p, 0);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6789
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6790
+    PUSHMARK(sp);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6791
+    eval_sv(sv, G_SCALAR);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6792
+    SvREFCNT_dec(sv);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6793
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6794
+    SPAGAIN;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6795
+    sv = POPs;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6796
+    PUTBACK;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6797
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6798
+    if (croak_on_error && SvTRUE(GvSV(errgv)))
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6799
+        croak(SvPVx(GvSV(errgv), na));
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6800
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6801
+    return sv;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6802
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6803
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6804
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6805
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6806
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6807
+#ifndef vload_module
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6808
+#if defined(NEED_vload_module)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6809
+static void DPPP_(my_vload_module)(U32 flags, SV *name, SV *ver, va_list *args);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6810
+static
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6811
+#else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6812
+extern void DPPP_(my_vload_module)(U32 flags, SV *name, SV *ver, va_list *args);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6813
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6814
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6815
+#ifdef vload_module
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6816
+#  undef vload_module
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6817
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6818
+#define vload_module(a,b,c,d) DPPP_(my_vload_module)(aTHX_ a,b,c,d)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6819
+#define Perl_vload_module DPPP_(my_vload_module)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6820
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6821
+#if defined(NEED_vload_module) || defined(NEED_vload_module_GLOBAL)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6822
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6823
+void
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6824
+DPPP_(my_vload_module)(U32 flags, SV *name, SV *ver, va_list *args)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6825
+{
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6826
+    dTHR;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6827
+    dVAR;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6828
+    OP *veop, *imop;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6829
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6830
+    OP * const modname = newSVOP(OP_CONST, 0, name);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6831
+    /* 5.005 has a somewhat hacky force_normal that doesn't croak on
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6832
+       SvREADONLY() if PL_compling is true. Current perls take care in
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6833
+       ck_require() to correctly turn off SvREADONLY before calling
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6834
+       force_normal_flags(). This seems a better fix than fudging PL_compling
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6835
+     */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6836
+    SvREADONLY_off(((SVOP*)modname)->op_sv);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6837
+    modname->op_private |= OPpCONST_BARE;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6838
+    if (ver) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6839
+        veop = newSVOP(OP_CONST, 0, ver);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6840
+    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6841
+    else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6842
+        veop = NULL;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6843
+    if (flags & PERL_LOADMOD_NOIMPORT) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6844
+        imop = sawparens(newNULLLIST());
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6845
+    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6846
+    else if (flags & PERL_LOADMOD_IMPORT_OPS) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6847
+        imop = va_arg(*args, OP*);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6848
+    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6849
+    else {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6850
+        SV *sv;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6851
+        imop = NULL;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6852
+        sv = va_arg(*args, SV*);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6853
+        while (sv) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6854
+            imop = append_elem(OP_LIST, imop, newSVOP(OP_CONST, 0, sv));
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6855
+            sv = va_arg(*args, SV*);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6856
+        }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6857
+    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6858
+    {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6859
+        const line_t ocopline = PL_copline;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6860
+        COP * const ocurcop = PL_curcop;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6861
+        const int oexpect = PL_expect;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6862
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6863
+#if (PERL_BCDVERSION >= 0x5004000)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6864
+        utilize(!(flags & PERL_LOADMOD_DENY), start_subparse(FALSE, 0),
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6865
+                veop, modname, imop);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6866
+#else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6867
+        utilize(!(flags & PERL_LOADMOD_DENY), start_subparse(),
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6868
+                modname, imop);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6869
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6870
+        PL_expect = oexpect;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6871
+        PL_copline = ocopline;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6872
+        PL_curcop = ocurcop;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6873
+    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6874
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6875
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6876
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6877
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6878
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6879
+#ifndef load_module
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6880
+#if defined(NEED_load_module)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6881
+static void DPPP_(my_load_module)(U32 flags, SV *name, SV *ver, ...);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6882
+static
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6883
+#else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6884
+extern void DPPP_(my_load_module)(U32 flags, SV *name, SV *ver, ...);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6885
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6886
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6887
+#ifdef load_module
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6888
+#  undef load_module
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6889
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6890
+#define load_module DPPP_(my_load_module)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6891
+#define Perl_load_module DPPP_(my_load_module)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6892
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6893
+#if defined(NEED_load_module) || defined(NEED_load_module_GLOBAL)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6894
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6895
+void
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6896
+DPPP_(my_load_module)(U32 flags, SV *name, SV *ver, ...)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6897
+{
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6898
+    va_list args;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6899
+    va_start(args, ver);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6900
+    vload_module(flags, name, ver, &args);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6901
+    va_end(args);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6902
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6903
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6904
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6905
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6906
+#ifndef newRV_inc
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6907
+#  define newRV_inc(sv)                  newRV(sv)   /* Replace */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6908
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6909
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6910
+#ifndef newRV_noinc
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6911
+#if defined(NEED_newRV_noinc)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6912
+static SV * DPPP_(my_newRV_noinc)(SV *sv);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6913
+static
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6914
+#else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6915
+extern SV * DPPP_(my_newRV_noinc)(SV *sv);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6916
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6917
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6918
+#ifdef newRV_noinc
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6919
+#  undef newRV_noinc
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6920
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6921
+#define newRV_noinc(a) DPPP_(my_newRV_noinc)(aTHX_ a)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6922
+#define Perl_newRV_noinc DPPP_(my_newRV_noinc)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6923
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6924
+#if defined(NEED_newRV_noinc) || defined(NEED_newRV_noinc_GLOBAL)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6925
+SV *
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6926
+DPPP_(my_newRV_noinc)(SV *sv)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6927
+{
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6928
+  SV *rv = (SV *)newRV(sv);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6929
+  SvREFCNT_dec(sv);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6930
+  return rv;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6931
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6932
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6933
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6934
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6935
+/* Hint: newCONSTSUB
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6936
+ * Returns a CV* as of perl-5.7.1. This return value is not supported
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6937
+ * by Devel::PPPort.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6938
+ */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6939
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6940
+/* newCONSTSUB from IO.xs is in the core starting with 5.004_63 */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6941
+#if (PERL_BCDVERSION < 0x5004063) && (PERL_BCDVERSION != 0x5004005)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6942
+#if defined(NEED_newCONSTSUB)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6943
+static void DPPP_(my_newCONSTSUB)(HV *stash, const char *name, SV *sv);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6944
+static
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6945
+#else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6946
+extern void DPPP_(my_newCONSTSUB)(HV *stash, const char *name, SV *sv);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6947
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6948
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6949
+#ifdef newCONSTSUB
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6950
+#  undef newCONSTSUB
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6951
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6952
+#define newCONSTSUB(a,b,c) DPPP_(my_newCONSTSUB)(aTHX_ a,b,c)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6953
+#define Perl_newCONSTSUB DPPP_(my_newCONSTSUB)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6954
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6955
+#if defined(NEED_newCONSTSUB) || defined(NEED_newCONSTSUB_GLOBAL)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6956
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6957
+/* This is just a trick to avoid a dependency of newCONSTSUB on PL_parser */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6958
+/* (There's no PL_parser in perl < 5.005, so this is completely safe)     */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6959
+#define D_PPP_PL_copline PL_copline
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6960
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6961
+void
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6962
+DPPP_(my_newCONSTSUB)(HV *stash, const char *name, SV *sv)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6963
+{
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6964
+        U32 oldhints = PL_hints;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6965
+        HV *old_cop_stash = PL_curcop->cop_stash;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6966
+        HV *old_curstash = PL_curstash;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6967
+        line_t oldline = PL_curcop->cop_line;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6968
+        PL_curcop->cop_line = D_PPP_PL_copline;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6969
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6970
+        PL_hints &= ~HINT_BLOCK_SCOPE;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6971
+        if (stash)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6972
+                PL_curstash = PL_curcop->cop_stash = stash;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6973
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6974
+        newSUB(
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6975
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6976
+#if   (PERL_BCDVERSION < 0x5003022)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6977
+                start_subparse(),
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6978
+#elif (PERL_BCDVERSION == 0x5003022)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6979
+                start_subparse(0),
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6980
+#else  /* 5.003_23  onwards */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6981
+                start_subparse(FALSE, 0),
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6982
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6983
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6984
+                newSVOP(OP_CONST, 0, newSVpv((char *) name, 0)),
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6985
+                newSVOP(OP_CONST, 0, &PL_sv_no),   /* SvPV(&PL_sv_no) == "" -- GMB */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6986
+                newSTATEOP(0, Nullch, newSVOP(OP_CONST, 0, sv))
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6987
+        );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6988
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6989
+        PL_hints = oldhints;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6990
+        PL_curcop->cop_stash = old_cop_stash;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6991
+        PL_curstash = old_curstash;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6992
+        PL_curcop->cop_line = oldline;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6993
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6994
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6995
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6996
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6997
+/*
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6998
+ * Boilerplate macros for initializing and accessing interpreter-local
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6999
+ * data from C.  All statics in extensions should be reworked to use
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7000
+ * this, if you want to make the extension thread-safe.  See ext/re/re.xs
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7001
+ * for an example of the use of these macros.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7002
+ *
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7003
+ * Code that uses these macros is responsible for the following:
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7004
+ * 1. #define MY_CXT_KEY to a unique string, e.g. "DynaLoader_guts"
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7005
+ * 2. Declare a typedef named my_cxt_t that is a structure that contains
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7006
+ *    all the data that needs to be interpreter-local.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7007
+ * 3. Use the START_MY_CXT macro after the declaration of my_cxt_t.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7008
+ * 4. Use the MY_CXT_INIT macro such that it is called exactly once
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7009
+ *    (typically put in the BOOT: section).
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7010
+ * 5. Use the members of the my_cxt_t structure everywhere as
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7011
+ *    MY_CXT.member.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7012
+ * 6. Use the dMY_CXT macro (a declaration) in all the functions that
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7013
+ *    access MY_CXT.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7014
+ */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7015
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7016
+#if defined(MULTIPLICITY) || defined(PERL_OBJECT) || \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7017
+    defined(PERL_CAPI)    || defined(PERL_IMPLICIT_CONTEXT)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7018
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7019
+#ifndef START_MY_CXT
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7020
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7021
+/* This must appear in all extensions that define a my_cxt_t structure,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7022
+ * right after the definition (i.e. at file scope).  The non-threads
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7023
+ * case below uses it to declare the data as static. */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7024
+#define START_MY_CXT
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7025
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7026
+#if (PERL_BCDVERSION < 0x5004068)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7027
+/* Fetches the SV that keeps the per-interpreter data. */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7028
+#define dMY_CXT_SV \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7029
+        SV *my_cxt_sv = get_sv(MY_CXT_KEY, FALSE)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7030
+#else /* >= perl5.004_68 */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7031
+#define dMY_CXT_SV \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7032
+        SV *my_cxt_sv = *hv_fetch(PL_modglobal, MY_CXT_KEY,             \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7033
+                                  sizeof(MY_CXT_KEY)-1, TRUE)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7034
+#endif /* < perl5.004_68 */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7035
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7036
+/* This declaration should be used within all functions that use the
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7037
+ * interpreter-local data. */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7038
+#define dMY_CXT \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7039
+        dMY_CXT_SV;                                                     \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7040
+        my_cxt_t *my_cxtp = INT2PTR(my_cxt_t*,SvUV(my_cxt_sv))
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7041
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7042
+/* Creates and zeroes the per-interpreter data.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7043
+ * (We allocate my_cxtp in a Perl SV so that it will be released when
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7044
+ * the interpreter goes away.) */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7045
+#define MY_CXT_INIT \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7046
+        dMY_CXT_SV;                                                     \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7047
+        /* newSV() allocates one more than needed */                    \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7048
+        my_cxt_t *my_cxtp = (my_cxt_t*)SvPVX(newSV(sizeof(my_cxt_t)-1));\
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7049
+        Zero(my_cxtp, 1, my_cxt_t);                                     \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7050
+        sv_setuv(my_cxt_sv, PTR2UV(my_cxtp))
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7051
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7052
+/* This macro must be used to access members of the my_cxt_t structure.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7053
+ * e.g. MYCXT.some_data */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7054
+#define MY_CXT          (*my_cxtp)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7055
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7056
+/* Judicious use of these macros can reduce the number of times dMY_CXT
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7057
+ * is used.  Use is similar to pTHX, aTHX etc. */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7058
+#define pMY_CXT         my_cxt_t *my_cxtp
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7059
+#define pMY_CXT_        pMY_CXT,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7060
+#define _pMY_CXT        ,pMY_CXT
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7061
+#define aMY_CXT         my_cxtp
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7062
+#define aMY_CXT_        aMY_CXT,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7063
+#define _aMY_CXT        ,aMY_CXT
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7064
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7065
+#endif /* START_MY_CXT */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7066
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7067
+#ifndef MY_CXT_CLONE
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7068
+/* Clones the per-interpreter data. */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7069
+#define MY_CXT_CLONE \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7070
+        dMY_CXT_SV;                                                     \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7071
+        my_cxt_t *my_cxtp = (my_cxt_t*)SvPVX(newSV(sizeof(my_cxt_t)-1));\
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7072
+        Copy(INT2PTR(my_cxt_t*, SvUV(my_cxt_sv)), my_cxtp, 1, my_cxt_t);\
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7073
+        sv_setuv(my_cxt_sv, PTR2UV(my_cxtp))
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7074
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7075
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7076
+#else /* single interpreter */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7077
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7078
+#ifndef START_MY_CXT
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7079
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7080
+#define START_MY_CXT    static my_cxt_t my_cxt;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7081
+#define dMY_CXT_SV      dNOOP
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7082
+#define dMY_CXT         dNOOP
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7083
+#define MY_CXT_INIT     NOOP
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7084
+#define MY_CXT          my_cxt
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7085
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7086
+#define pMY_CXT         void
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7087
+#define pMY_CXT_
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7088
+#define _pMY_CXT
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7089
+#define aMY_CXT
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7090
+#define aMY_CXT_
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7091
+#define _aMY_CXT
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7092
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7093
+#endif /* START_MY_CXT */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7094
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7095
+#ifndef MY_CXT_CLONE
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7096
+#define MY_CXT_CLONE    NOOP
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7097
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7098
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7099
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7100
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7101
+#ifndef IVdf
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7102
+#  if IVSIZE == LONGSIZE
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7103
+#    define     IVdf      "ld"
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7104
+#    define     UVuf      "lu"
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7105
+#    define     UVof      "lo"
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7106
+#    define     UVxf      "lx"
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7107
+#    define     UVXf      "lX"
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7108
+#  elif IVSIZE == INTSIZE
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7109
+#    define   IVdf      "d"
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7110
+#    define   UVuf      "u"
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7111
+#    define   UVof      "o"
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7112
+#    define   UVxf      "x"
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7113
+#    define   UVXf      "X"
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7114
+#  else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7115
+#    error "cannot define IV/UV formats"
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7116
+#  endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7117
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7118
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7119
+#ifndef NVef
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7120
+#  if defined(USE_LONG_DOUBLE) && defined(HAS_LONG_DOUBLE) && \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7121
+      defined(PERL_PRIfldbl) && (PERL_BCDVERSION != 0x5006000)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7122
+            /* Not very likely, but let's try anyway. */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7123
+#    define NVef          PERL_PRIeldbl
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7124
+#    define NVff          PERL_PRIfldbl
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7125
+#    define NVgf          PERL_PRIgldbl
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7126
+#  else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7127
+#    define NVef          "e"
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7128
+#    define NVff          "f"
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7129
+#    define NVgf          "g"
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7130
+#  endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7131
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7132
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7133
+#ifndef SvREFCNT_inc
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7134
+#  ifdef PERL_USE_GCC_BRACE_GROUPS
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7135
+#    define SvREFCNT_inc(sv)            \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7136
+      ({                                \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7137
+          SV * const _sv = (SV*)(sv);   \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7138
+          if (_sv)                      \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7139
+               (SvREFCNT(_sv))++;       \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7140
+          _sv;                          \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7141
+      })
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7142
+#  else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7143
+#    define SvREFCNT_inc(sv)    \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7144
+          ((PL_Sv=(SV*)(sv)) ? (++(SvREFCNT(PL_Sv)),PL_Sv) : NULL)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7145
+#  endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7146
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7147
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7148
+#ifndef SvREFCNT_inc_simple
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7149
+#  ifdef PERL_USE_GCC_BRACE_GROUPS
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7150
+#    define SvREFCNT_inc_simple(sv)     \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7151
+      ({                                        \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7152
+          if (sv)                               \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7153
+               (SvREFCNT(sv))++;                \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7154
+          (SV *)(sv);                           \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7155
+      })
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7156
+#  else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7157
+#    define SvREFCNT_inc_simple(sv) \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7158
+          ((sv) ? (SvREFCNT(sv)++,(SV*)(sv)) : NULL)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7159
+#  endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7160
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7161
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7162
+#ifndef SvREFCNT_inc_NN
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7163
+#  ifdef PERL_USE_GCC_BRACE_GROUPS
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7164
+#    define SvREFCNT_inc_NN(sv)         \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7165
+      ({                                        \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7166
+          SV * const _sv = (SV*)(sv);   \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7167
+          SvREFCNT(_sv)++;              \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7168
+          _sv;                          \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7169
+      })
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7170
+#  else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7171
+#    define SvREFCNT_inc_NN(sv) \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7172
+          (PL_Sv=(SV*)(sv),++(SvREFCNT(PL_Sv)),PL_Sv)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7173
+#  endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7174
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7175
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7176
+#ifndef SvREFCNT_inc_void
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7177
+#  ifdef PERL_USE_GCC_BRACE_GROUPS
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7178
+#    define SvREFCNT_inc_void(sv)               \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7179
+      ({                                        \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7180
+          SV * const _sv = (SV*)(sv);   \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7181
+          if (_sv)                      \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7182
+              (void)(SvREFCNT(_sv)++);  \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7183
+      })
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7184
+#  else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7185
+#    define SvREFCNT_inc_void(sv) \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7186
+          (void)((PL_Sv=(SV*)(sv)) ? ++(SvREFCNT(PL_Sv)) : 0)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7187
+#  endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7188
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7189
+#ifndef SvREFCNT_inc_simple_void
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7190
+#  define SvREFCNT_inc_simple_void(sv)   STMT_START { if (sv) SvREFCNT(sv)++; } STMT_END
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7191
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7192
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7193
+#ifndef SvREFCNT_inc_simple_NN
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7194
+#  define SvREFCNT_inc_simple_NN(sv)     (++SvREFCNT(sv), (SV*)(sv))
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7195
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7196
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7197
+#ifndef SvREFCNT_inc_void_NN
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7198
+#  define SvREFCNT_inc_void_NN(sv)       (void)(++SvREFCNT((SV*)(sv)))
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7199
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7200
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7201
+#ifndef SvREFCNT_inc_simple_void_NN
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7202
+#  define SvREFCNT_inc_simple_void_NN(sv) (void)(++SvREFCNT((SV*)(sv)))
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7203
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7204
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7205
+#ifndef newSV_type
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7206
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7207
+#if defined(NEED_newSV_type)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7208
+static SV* DPPP_(my_newSV_type)(pTHX_ svtype const t);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7209
+static
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7210
+#else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7211
+extern SV* DPPP_(my_newSV_type)(pTHX_ svtype const t);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7212
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7213
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7214
+#ifdef newSV_type
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7215
+#  undef newSV_type
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7216
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7217
+#define newSV_type(a) DPPP_(my_newSV_type)(aTHX_ a)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7218
+#define Perl_newSV_type DPPP_(my_newSV_type)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7219
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7220
+#if defined(NEED_newSV_type) || defined(NEED_newSV_type_GLOBAL)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7221
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7222
+SV*
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7223
+DPPP_(my_newSV_type)(pTHX_ svtype const t)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7224
+{
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7225
+  SV* const sv = newSV(0);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7226
+  sv_upgrade(sv, t);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7227
+  return sv;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7228
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7229
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7230
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7231
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7232
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7233
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7234
+#if (PERL_BCDVERSION < 0x5006000)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7235
+# define D_PPP_CONSTPV_ARG(x)  ((char *) (x))
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7236
+#else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7237
+# define D_PPP_CONSTPV_ARG(x)  (x)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7238
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7239
+#ifndef newSVpvn
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7240
+#  define newSVpvn(data,len)             ((data)                                              \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7241
+                                    ? ((len) ? newSVpv((data), (len)) : newSVpv("", 0)) \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7242
+                                    : newSV(0))
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7243
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7244
+#ifndef newSVpvn_utf8
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7245
+#  define newSVpvn_utf8(s, len, u)       newSVpvn_flags((s), (len), (u) ? SVf_UTF8 : 0)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7246
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7247
+#ifndef SVf_UTF8
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7248
+#  define SVf_UTF8                       0
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7249
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7250
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7251
+#ifndef newSVpvn_flags
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7252
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7253
+#if defined(NEED_newSVpvn_flags)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7254
+static SV * DPPP_(my_newSVpvn_flags)(pTHX_ const char *s, STRLEN len, U32 flags);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7255
+static
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7256
+#else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7257
+extern SV * DPPP_(my_newSVpvn_flags)(pTHX_ const char *s, STRLEN len, U32 flags);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7258
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7259
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7260
+#ifdef newSVpvn_flags
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7261
+#  undef newSVpvn_flags
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7262
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7263
+#define newSVpvn_flags(a,b,c) DPPP_(my_newSVpvn_flags)(aTHX_ a,b,c)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7264
+#define Perl_newSVpvn_flags DPPP_(my_newSVpvn_flags)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7265
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7266
+#if defined(NEED_newSVpvn_flags) || defined(NEED_newSVpvn_flags_GLOBAL)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7267
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7268
+SV *
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7269
+DPPP_(my_newSVpvn_flags)(pTHX_ const char *s, STRLEN len, U32 flags)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7270
+{
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7271
+  SV *sv = newSVpvn(D_PPP_CONSTPV_ARG(s), len);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7272
+  SvFLAGS(sv) |= (flags & SVf_UTF8);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7273
+  return (flags & SVs_TEMP) ? sv_2mortal(sv) : sv;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7274
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7275
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7276
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7277
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7278
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7279
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7280
+/* Backwards compatibility stuff... :-( */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7281
+#if !defined(NEED_sv_2pv_flags) && defined(NEED_sv_2pv_nolen)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7282
+#  define NEED_sv_2pv_flags
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7283
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7284
+#if !defined(NEED_sv_2pv_flags_GLOBAL) && defined(NEED_sv_2pv_nolen_GLOBAL)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7285
+#  define NEED_sv_2pv_flags_GLOBAL
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7286
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7287
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7288
+/* Hint: sv_2pv_nolen
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7289
+ * Use the SvPV_nolen() or SvPV_nolen_const() macros instead of sv_2pv_nolen().
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7290
+ */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7291
+#ifndef sv_2pv_nolen
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7292
+#  define sv_2pv_nolen(sv)               SvPV_nolen(sv)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7293
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7294
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7295
+#ifdef SvPVbyte
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7296
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7297
+/* Hint: SvPVbyte
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7298
+ * Does not work in perl-5.6.1, ppport.h implements a version
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7299
+ * borrowed from perl-5.7.3.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7300
+ */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7301
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7302
+#if (PERL_BCDVERSION < 0x5007000)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7303
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7304
+#if defined(NEED_sv_2pvbyte)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7305
+static char * DPPP_(my_sv_2pvbyte)(pTHX_ SV *sv, STRLEN *lp);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7306
+static
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7307
+#else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7308
+extern char * DPPP_(my_sv_2pvbyte)(pTHX_ SV *sv, STRLEN *lp);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7309
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7310
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7311
+#ifdef sv_2pvbyte
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7312
+#  undef sv_2pvbyte
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7313
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7314
+#define sv_2pvbyte(a,b) DPPP_(my_sv_2pvbyte)(aTHX_ a,b)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7315
+#define Perl_sv_2pvbyte DPPP_(my_sv_2pvbyte)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7316
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7317
+#if defined(NEED_sv_2pvbyte) || defined(NEED_sv_2pvbyte_GLOBAL)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7318
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7319
+char *
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7320
+DPPP_(my_sv_2pvbyte)(pTHX_ SV *sv, STRLEN *lp)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7321
+{
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7322
+  sv_utf8_downgrade(sv,0);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7323
+  return SvPV(sv,*lp);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7324
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7325
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7326
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7327
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7328
+/* Hint: sv_2pvbyte
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7329
+ * Use the SvPVbyte() macro instead of sv_2pvbyte().
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7330
+ */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7331
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7332
+#undef SvPVbyte
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7333
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7334
+#define SvPVbyte(sv, lp)                                                \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7335
+        ((SvFLAGS(sv) & (SVf_POK|SVf_UTF8)) == (SVf_POK)                \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7336
+         ? ((lp = SvCUR(sv)), SvPVX(sv)) : sv_2pvbyte(sv, &lp))
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7337
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7338
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7339
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7340
+#else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7341
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7342
+#  define SvPVbyte          SvPV
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7343
+#  define sv_2pvbyte        sv_2pv
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7344
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7345
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7346
+#ifndef sv_2pvbyte_nolen
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7347
+#  define sv_2pvbyte_nolen(sv)           sv_2pv_nolen(sv)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7348
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7349
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7350
+/* Hint: sv_pvn
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7351
+ * Always use the SvPV() macro instead of sv_pvn().
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7352
+ */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7353
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7354
+/* Hint: sv_pvn_force
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7355
+ * Always use the SvPV_force() macro instead of sv_pvn_force().
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7356
+ */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7357
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7358
+/* If these are undefined, they're not handled by the core anyway */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7359
+#ifndef SV_IMMEDIATE_UNREF
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7360
+#  define SV_IMMEDIATE_UNREF             0
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7361
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7362
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7363
+#ifndef SV_GMAGIC
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7364
+#  define SV_GMAGIC                      0
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7365
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7366
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7367
+#ifndef SV_COW_DROP_PV
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7368
+#  define SV_COW_DROP_PV                 0
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7369
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7370
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7371
+#ifndef SV_UTF8_NO_ENCODING
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7372
+#  define SV_UTF8_NO_ENCODING            0
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7373
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7374
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7375
+#ifndef SV_NOSTEAL
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7376
+#  define SV_NOSTEAL                     0
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7377
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7378
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7379
+#ifndef SV_CONST_RETURN
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7380
+#  define SV_CONST_RETURN                0
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7381
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7382
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7383
+#ifndef SV_MUTABLE_RETURN
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7384
+#  define SV_MUTABLE_RETURN              0
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7385
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7386
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7387
+#ifndef SV_SMAGIC
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7388
+#  define SV_SMAGIC                      0
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7389
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7390
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7391
+#ifndef SV_HAS_TRAILING_NUL
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7392
+#  define SV_HAS_TRAILING_NUL            0
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7393
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7394
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7395
+#ifndef SV_COW_SHARED_HASH_KEYS
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7396
+#  define SV_COW_SHARED_HASH_KEYS        0
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7397
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7398
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7399
+#if (PERL_BCDVERSION < 0x5007002)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7400
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7401
+#if defined(NEED_sv_2pv_flags)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7402
+static char * DPPP_(my_sv_2pv_flags)(pTHX_ SV *sv, STRLEN *lp, I32 flags);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7403
+static
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7404
+#else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7405
+extern char * DPPP_(my_sv_2pv_flags)(pTHX_ SV *sv, STRLEN *lp, I32 flags);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7406
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7407
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7408
+#ifdef sv_2pv_flags
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7409
+#  undef sv_2pv_flags
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7410
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7411
+#define sv_2pv_flags(a,b,c) DPPP_(my_sv_2pv_flags)(aTHX_ a,b,c)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7412
+#define Perl_sv_2pv_flags DPPP_(my_sv_2pv_flags)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7413
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7414
+#if defined(NEED_sv_2pv_flags) || defined(NEED_sv_2pv_flags_GLOBAL)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7415
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7416
+char *
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7417
+DPPP_(my_sv_2pv_flags)(pTHX_ SV *sv, STRLEN *lp, I32 flags)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7418
+{
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7419
+  STRLEN n_a = (STRLEN) flags;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7420
+  return sv_2pv(sv, lp ? lp : &n_a);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7421
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7422
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7423
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7424
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7425
+#if defined(NEED_sv_pvn_force_flags)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7426
+static char * DPPP_(my_sv_pvn_force_flags)(pTHX_ SV *sv, STRLEN *lp, I32 flags);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7427
+static
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7428
+#else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7429
+extern char * DPPP_(my_sv_pvn_force_flags)(pTHX_ SV *sv, STRLEN *lp, I32 flags);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7430
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7431
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7432
+#ifdef sv_pvn_force_flags
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7433
+#  undef sv_pvn_force_flags
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7434
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7435
+#define sv_pvn_force_flags(a,b,c) DPPP_(my_sv_pvn_force_flags)(aTHX_ a,b,c)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7436
+#define Perl_sv_pvn_force_flags DPPP_(my_sv_pvn_force_flags)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7437
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7438
+#if defined(NEED_sv_pvn_force_flags) || defined(NEED_sv_pvn_force_flags_GLOBAL)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7439
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7440
+char *
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7441
+DPPP_(my_sv_pvn_force_flags)(pTHX_ SV *sv, STRLEN *lp, I32 flags)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7442
+{
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7443
+  STRLEN n_a = (STRLEN) flags;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7444
+  return sv_pvn_force(sv, lp ? lp : &n_a);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7445
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7446
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7447
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7448
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7449
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7450
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7451
+#if (PERL_BCDVERSION < 0x5008008) || ( (PERL_BCDVERSION >= 0x5009000) && (PERL_BCDVERSION < 0x5009003) )
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7452
+# define DPPP_SVPV_NOLEN_LP_ARG &PL_na
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7453
+#else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7454
+# define DPPP_SVPV_NOLEN_LP_ARG 0
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7455
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7456
+#ifndef SvPV_const
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7457
+#  define SvPV_const(sv, lp)             SvPV_flags_const(sv, lp, SV_GMAGIC)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7458
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7459
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7460
+#ifndef SvPV_mutable
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7461
+#  define SvPV_mutable(sv, lp)           SvPV_flags_mutable(sv, lp, SV_GMAGIC)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7462
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7463
+#ifndef SvPV_flags
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7464
+#  define SvPV_flags(sv, lp, flags)      \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7465
+                 ((SvFLAGS(sv) & (SVf_POK)) == SVf_POK \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7466
+                  ? ((lp = SvCUR(sv)), SvPVX(sv)) : sv_2pv_flags(sv, &lp, flags))
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7467
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7468
+#ifndef SvPV_flags_const
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7469
+#  define SvPV_flags_const(sv, lp, flags) \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7470
+                 ((SvFLAGS(sv) & (SVf_POK)) == SVf_POK \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7471
+                  ? ((lp = SvCUR(sv)), SvPVX_const(sv)) : \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7472
+                  (const char*) sv_2pv_flags(sv, &lp, flags|SV_CONST_RETURN))
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7473
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7474
+#ifndef SvPV_flags_const_nolen
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7475
+#  define SvPV_flags_const_nolen(sv, flags) \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7476
+                 ((SvFLAGS(sv) & (SVf_POK)) == SVf_POK \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7477
+                  ? SvPVX_const(sv) : \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7478
+                  (const char*) sv_2pv_flags(sv, DPPP_SVPV_NOLEN_LP_ARG, flags|SV_CONST_RETURN))
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7479
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7480
+#ifndef SvPV_flags_mutable
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7481
+#  define SvPV_flags_mutable(sv, lp, flags) \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7482
+                 ((SvFLAGS(sv) & (SVf_POK)) == SVf_POK \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7483
+                  ? ((lp = SvCUR(sv)), SvPVX_mutable(sv)) : \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7484
+                  sv_2pv_flags(sv, &lp, flags|SV_MUTABLE_RETURN))
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7485
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7486
+#ifndef SvPV_force
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7487
+#  define SvPV_force(sv, lp)             SvPV_force_flags(sv, lp, SV_GMAGIC)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7488
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7489
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7490
+#ifndef SvPV_force_nolen
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7491
+#  define SvPV_force_nolen(sv)           SvPV_force_flags_nolen(sv, SV_GMAGIC)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7492
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7493
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7494
+#ifndef SvPV_force_mutable
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7495
+#  define SvPV_force_mutable(sv, lp)     SvPV_force_flags_mutable(sv, lp, SV_GMAGIC)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7496
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7497
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7498
+#ifndef SvPV_force_nomg
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7499
+#  define SvPV_force_nomg(sv, lp)        SvPV_force_flags(sv, lp, 0)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7500
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7501
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7502
+#ifndef SvPV_force_nomg_nolen
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7503
+#  define SvPV_force_nomg_nolen(sv)      SvPV_force_flags_nolen(sv, 0)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7504
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7505
+#ifndef SvPV_force_flags
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7506
+#  define SvPV_force_flags(sv, lp, flags) \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7507
+                 ((SvFLAGS(sv) & (SVf_POK|SVf_THINKFIRST)) == SVf_POK \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7508
+                 ? ((lp = SvCUR(sv)), SvPVX(sv)) : sv_pvn_force_flags(sv, &lp, flags))
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7509
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7510
+#ifndef SvPV_force_flags_nolen
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7511
+#  define SvPV_force_flags_nolen(sv, flags) \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7512
+                 ((SvFLAGS(sv) & (SVf_POK|SVf_THINKFIRST)) == SVf_POK \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7513
+                 ? SvPVX(sv) : sv_pvn_force_flags(sv, DPPP_SVPV_NOLEN_LP_ARG, flags))
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7514
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7515
+#ifndef SvPV_force_flags_mutable
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7516
+#  define SvPV_force_flags_mutable(sv, lp, flags) \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7517
+                 ((SvFLAGS(sv) & (SVf_POK|SVf_THINKFIRST)) == SVf_POK \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7518
+                 ? ((lp = SvCUR(sv)), SvPVX_mutable(sv)) \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7519
+                  : sv_pvn_force_flags(sv, &lp, flags|SV_MUTABLE_RETURN))
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7520
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7521
+#ifndef SvPV_nolen
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7522
+#  define SvPV_nolen(sv)                 \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7523
+                 ((SvFLAGS(sv) & (SVf_POK)) == SVf_POK \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7524
+                  ? SvPVX(sv) : sv_2pv_flags(sv, DPPP_SVPV_NOLEN_LP_ARG, SV_GMAGIC))
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7525
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7526
+#ifndef SvPV_nolen_const
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7527
+#  define SvPV_nolen_const(sv)           \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7528
+                 ((SvFLAGS(sv) & (SVf_POK)) == SVf_POK \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7529
+                  ? SvPVX_const(sv) : sv_2pv_flags(sv, DPPP_SVPV_NOLEN_LP_ARG, SV_GMAGIC|SV_CONST_RETURN))
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7530
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7531
+#ifndef SvPV_nomg
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7532
+#  define SvPV_nomg(sv, lp)              SvPV_flags(sv, lp, 0)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7533
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7534
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7535
+#ifndef SvPV_nomg_const
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7536
+#  define SvPV_nomg_const(sv, lp)        SvPV_flags_const(sv, lp, 0)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7537
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7538
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7539
+#ifndef SvPV_nomg_const_nolen
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7540
+#  define SvPV_nomg_const_nolen(sv)      SvPV_flags_const_nolen(sv, 0)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7541
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7542
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7543
+#ifndef SvPV_nomg_nolen
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7544
+#  define SvPV_nomg_nolen(sv)            ((SvFLAGS(sv) & (SVf_POK)) == SVf_POK \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7545
+                                    ? SvPVX(sv) : sv_2pv_flags(sv, DPPP_SVPV_NOLEN_LP_ARG, 0))
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7546
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7547
+#ifndef SvPV_renew
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7548
+#  define SvPV_renew(sv,n)               STMT_START { SvLEN_set(sv, n); \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7549
+                 SvPV_set((sv), (char *) saferealloc(          \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7550
+                       (Malloc_t)SvPVX(sv), (MEM_SIZE)((n)))); \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7551
+               } STMT_END
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7552
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7553
+#ifndef SvMAGIC_set
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7554
+#  define SvMAGIC_set(sv, val)           \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7555
+                STMT_START { assert(SvTYPE(sv) >= SVt_PVMG); \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7556
+                (((XPVMG*) SvANY(sv))->xmg_magic = (val)); } STMT_END
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7557
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7558
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7559
+#if (PERL_BCDVERSION < 0x5009003)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7560
+#ifndef SvPVX_const
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7561
+#  define SvPVX_const(sv)                ((const char*) (0 + SvPVX(sv)))
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7562
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7563
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7564
+#ifndef SvPVX_mutable
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7565
+#  define SvPVX_mutable(sv)              (0 + SvPVX(sv))
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7566
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7567
+#ifndef SvRV_set
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7568
+#  define SvRV_set(sv, val)              \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7569
+                STMT_START { assert(SvTYPE(sv) >=  SVt_RV); \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7570
+                (((XRV*) SvANY(sv))->xrv_rv = (val)); } STMT_END
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7571
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7572
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7573
+#else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7574
+#ifndef SvPVX_const
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7575
+#  define SvPVX_const(sv)                ((const char*)((sv)->sv_u.svu_pv))
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7576
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7577
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7578
+#ifndef SvPVX_mutable
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7579
+#  define SvPVX_mutable(sv)              ((sv)->sv_u.svu_pv)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7580
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7581
+#ifndef SvRV_set
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7582
+#  define SvRV_set(sv, val)              \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7583
+                STMT_START { assert(SvTYPE(sv) >=  SVt_RV); \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7584
+                ((sv)->sv_u.svu_rv = (val)); } STMT_END
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7585
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7586
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7587
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7588
+#ifndef SvSTASH_set
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7589
+#  define SvSTASH_set(sv, val)           \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7590
+                STMT_START { assert(SvTYPE(sv) >= SVt_PVMG); \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7591
+                (((XPVMG*) SvANY(sv))->xmg_stash = (val)); } STMT_END
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7592
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7593
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7594
+#if (PERL_BCDVERSION < 0x5004000)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7595
+#ifndef SvUV_set
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7596
+#  define SvUV_set(sv, val)              \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7597
+                STMT_START { assert(SvTYPE(sv) == SVt_IV || SvTYPE(sv) >= SVt_PVIV); \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7598
+                (((XPVIV*) SvANY(sv))->xiv_iv = (IV) (val)); } STMT_END
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7599
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7600
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7601
+#else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7602
+#ifndef SvUV_set
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7603
+#  define SvUV_set(sv, val)              \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7604
+                STMT_START { assert(SvTYPE(sv) == SVt_IV || SvTYPE(sv) >= SVt_PVIV); \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7605
+                (((XPVUV*) SvANY(sv))->xuv_uv = (val)); } STMT_END
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7606
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7607
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7608
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7609
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7610
+#if (PERL_BCDVERSION >= 0x5004000) && !defined(vnewSVpvf)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7611
+#if defined(NEED_vnewSVpvf)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7612
+static SV * DPPP_(my_vnewSVpvf)(pTHX_ const char *pat, va_list *args);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7613
+static
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7614
+#else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7615
+extern SV * DPPP_(my_vnewSVpvf)(pTHX_ const char *pat, va_list *args);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7616
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7617
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7618
+#ifdef vnewSVpvf
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7619
+#  undef vnewSVpvf
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7620
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7621
+#define vnewSVpvf(a,b) DPPP_(my_vnewSVpvf)(aTHX_ a,b)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7622
+#define Perl_vnewSVpvf DPPP_(my_vnewSVpvf)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7623
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7624
+#if defined(NEED_vnewSVpvf) || defined(NEED_vnewSVpvf_GLOBAL)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7625
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7626
+SV *
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7627
+DPPP_(my_vnewSVpvf)(pTHX_ const char *pat, va_list *args)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7628
+{
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7629
+  register SV *sv = newSV(0);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7630
+  sv_vsetpvfn(sv, pat, strlen(pat), args, Null(SV**), 0, Null(bool*));
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7631
+  return sv;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7632
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7633
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7634
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7635
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7636
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7637
+#if (PERL_BCDVERSION >= 0x5004000) && !defined(sv_vcatpvf)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7638
+#  define sv_vcatpvf(sv, pat, args)  sv_vcatpvfn(sv, pat, strlen(pat), args, Null(SV**), 0, Null(bool*))
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7639
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7640
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7641
+#if (PERL_BCDVERSION >= 0x5004000) && !defined(sv_vsetpvf)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7642
+#  define sv_vsetpvf(sv, pat, args)  sv_vsetpvfn(sv, pat, strlen(pat), args, Null(SV**), 0, Null(bool*))
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7643
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7644
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7645
+#if (PERL_BCDVERSION >= 0x5004000) && !defined(sv_catpvf_mg)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7646
+#if defined(NEED_sv_catpvf_mg)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7647
+static void DPPP_(my_sv_catpvf_mg)(pTHX_ SV *sv, const char *pat, ...);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7648
+static
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7649
+#else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7650
+extern void DPPP_(my_sv_catpvf_mg)(pTHX_ SV *sv, const char *pat, ...);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7651
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7652
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7653
+#define Perl_sv_catpvf_mg DPPP_(my_sv_catpvf_mg)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7654
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7655
+#if defined(NEED_sv_catpvf_mg) || defined(NEED_sv_catpvf_mg_GLOBAL)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7656
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7657
+void
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7658
+DPPP_(my_sv_catpvf_mg)(pTHX_ SV *sv, const char *pat, ...)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7659
+{
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7660
+  va_list args;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7661
+  va_start(args, pat);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7662
+  sv_vcatpvfn(sv, pat, strlen(pat), &args, Null(SV**), 0, Null(bool*));
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7663
+  SvSETMAGIC(sv);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7664
+  va_end(args);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7665
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7666
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7667
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7668
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7669
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7670
+#ifdef PERL_IMPLICIT_CONTEXT
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7671
+#if (PERL_BCDVERSION >= 0x5004000) && !defined(sv_catpvf_mg_nocontext)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7672
+#if defined(NEED_sv_catpvf_mg_nocontext)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7673
+static void DPPP_(my_sv_catpvf_mg_nocontext)(SV *sv, const char *pat, ...);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7674
+static
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7675
+#else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7676
+extern void DPPP_(my_sv_catpvf_mg_nocontext)(SV *sv, const char *pat, ...);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7677
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7678
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7679
+#define sv_catpvf_mg_nocontext DPPP_(my_sv_catpvf_mg_nocontext)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7680
+#define Perl_sv_catpvf_mg_nocontext DPPP_(my_sv_catpvf_mg_nocontext)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7681
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7682
+#if defined(NEED_sv_catpvf_mg_nocontext) || defined(NEED_sv_catpvf_mg_nocontext_GLOBAL)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7683
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7684
+void
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7685
+DPPP_(my_sv_catpvf_mg_nocontext)(SV *sv, const char *pat, ...)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7686
+{
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7687
+  dTHX;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7688
+  va_list args;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7689
+  va_start(args, pat);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7690
+  sv_vcatpvfn(sv, pat, strlen(pat), &args, Null(SV**), 0, Null(bool*));
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7691
+  SvSETMAGIC(sv);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7692
+  va_end(args);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7693
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7694
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7695
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7696
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7697
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7698
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7699
+/* sv_catpvf_mg depends on sv_catpvf_mg_nocontext */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7700
+#ifndef sv_catpvf_mg
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7701
+#  ifdef PERL_IMPLICIT_CONTEXT
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7702
+#    define sv_catpvf_mg   Perl_sv_catpvf_mg_nocontext
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7703
+#  else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7704
+#    define sv_catpvf_mg   Perl_sv_catpvf_mg
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7705
+#  endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7706
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7707
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7708
+#if (PERL_BCDVERSION >= 0x5004000) && !defined(sv_vcatpvf_mg)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7709
+#  define sv_vcatpvf_mg(sv, pat, args)                                     \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7710
+   STMT_START {                                                            \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7711
+     sv_vcatpvfn(sv, pat, strlen(pat), args, Null(SV**), 0, Null(bool*));  \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7712
+     SvSETMAGIC(sv);                                                       \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7713
+   } STMT_END
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7714
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7715
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7716
+#if (PERL_BCDVERSION >= 0x5004000) && !defined(sv_setpvf_mg)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7717
+#if defined(NEED_sv_setpvf_mg)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7718
+static void DPPP_(my_sv_setpvf_mg)(pTHX_ SV *sv, const char *pat, ...);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7719
+static
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7720
+#else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7721
+extern void DPPP_(my_sv_setpvf_mg)(pTHX_ SV *sv, const char *pat, ...);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7722
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7723
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7724
+#define Perl_sv_setpvf_mg DPPP_(my_sv_setpvf_mg)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7725
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7726
+#if defined(NEED_sv_setpvf_mg) || defined(NEED_sv_setpvf_mg_GLOBAL)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7727
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7728
+void
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7729
+DPPP_(my_sv_setpvf_mg)(pTHX_ SV *sv, const char *pat, ...)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7730
+{
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7731
+  va_list args;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7732
+  va_start(args, pat);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7733
+  sv_vsetpvfn(sv, pat, strlen(pat), &args, Null(SV**), 0, Null(bool*));
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7734
+  SvSETMAGIC(sv);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7735
+  va_end(args);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7736
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7737
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7738
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7739
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7740
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7741
+#ifdef PERL_IMPLICIT_CONTEXT
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7742
+#if (PERL_BCDVERSION >= 0x5004000) && !defined(sv_setpvf_mg_nocontext)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7743
+#if defined(NEED_sv_setpvf_mg_nocontext)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7744
+static void DPPP_(my_sv_setpvf_mg_nocontext)(SV *sv, const char *pat, ...);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7745
+static
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7746
+#else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7747
+extern void DPPP_(my_sv_setpvf_mg_nocontext)(SV *sv, const char *pat, ...);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7748
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7749
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7750
+#define sv_setpvf_mg_nocontext DPPP_(my_sv_setpvf_mg_nocontext)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7751
+#define Perl_sv_setpvf_mg_nocontext DPPP_(my_sv_setpvf_mg_nocontext)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7752
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7753
+#if defined(NEED_sv_setpvf_mg_nocontext) || defined(NEED_sv_setpvf_mg_nocontext_GLOBAL)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7754
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7755
+void
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7756
+DPPP_(my_sv_setpvf_mg_nocontext)(SV *sv, const char *pat, ...)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7757
+{
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7758
+  dTHX;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7759
+  va_list args;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7760
+  va_start(args, pat);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7761
+  sv_vsetpvfn(sv, pat, strlen(pat), &args, Null(SV**), 0, Null(bool*));
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7762
+  SvSETMAGIC(sv);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7763
+  va_end(args);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7764
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7765
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7766
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7767
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7768
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7769
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7770
+/* sv_setpvf_mg depends on sv_setpvf_mg_nocontext */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7771
+#ifndef sv_setpvf_mg
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7772
+#  ifdef PERL_IMPLICIT_CONTEXT
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7773
+#    define sv_setpvf_mg   Perl_sv_setpvf_mg_nocontext
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7774
+#  else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7775
+#    define sv_setpvf_mg   Perl_sv_setpvf_mg
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7776
+#  endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7777
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7778
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7779
+#if (PERL_BCDVERSION >= 0x5004000) && !defined(sv_vsetpvf_mg)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7780
+#  define sv_vsetpvf_mg(sv, pat, args)                                     \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7781
+   STMT_START {                                                            \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7782
+     sv_vsetpvfn(sv, pat, strlen(pat), args, Null(SV**), 0, Null(bool*));  \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7783
+     SvSETMAGIC(sv);                                                       \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7784
+   } STMT_END
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7785
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7786
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7787
+/* Hint: newSVpvn_share
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7788
+ * The SVs created by this function only mimic the behaviour of
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7789
+ * shared PVs without really being shared. Only use if you know
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7790
+ * what you're doing.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7791
+ */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7792
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7793
+#ifndef newSVpvn_share
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7794
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7795
+#if defined(NEED_newSVpvn_share)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7796
+static SV * DPPP_(my_newSVpvn_share)(pTHX_ const char *src, I32 len, U32 hash);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7797
+static
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7798
+#else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7799
+extern SV * DPPP_(my_newSVpvn_share)(pTHX_ const char *src, I32 len, U32 hash);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7800
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7801
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7802
+#ifdef newSVpvn_share
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7803
+#  undef newSVpvn_share
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7804
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7805
+#define newSVpvn_share(a,b,c) DPPP_(my_newSVpvn_share)(aTHX_ a,b,c)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7806
+#define Perl_newSVpvn_share DPPP_(my_newSVpvn_share)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7807
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7808
+#if defined(NEED_newSVpvn_share) || defined(NEED_newSVpvn_share_GLOBAL)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7809
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7810
+SV *
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7811
+DPPP_(my_newSVpvn_share)(pTHX_ const char *src, I32 len, U32 hash)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7812
+{
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7813
+  SV *sv;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7814
+  if (len < 0)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7815
+    len = -len;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7816
+  if (!hash)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7817
+    PERL_HASH(hash, (char*) src, len);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7818
+  sv = newSVpvn((char *) src, len);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7819
+  sv_upgrade(sv, SVt_PVIV);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7820
+  SvIVX(sv) = hash;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7821
+  SvREADONLY_on(sv);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7822
+  SvPOK_on(sv);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7823
+  return sv;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7824
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7825
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7826
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7827
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7828
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7829
+#ifndef SvSHARED_HASH
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7830
+#  define SvSHARED_HASH(sv)              (0 + SvUVX(sv))
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7831
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7832
+#ifndef HvNAME_get
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7833
+#  define HvNAME_get(hv)                 HvNAME(hv)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7834
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7835
+#ifndef HvNAMELEN_get
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7836
+#  define HvNAMELEN_get(hv)              (HvNAME_get(hv) ? (I32)strlen(HvNAME_get(hv)) : 0)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7837
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7838
+#ifndef GvSVn
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7839
+#  define GvSVn(gv)                      GvSV(gv)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7840
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7841
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7842
+#ifndef isGV_with_GP
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7843
+#  define isGV_with_GP(gv)               isGV(gv)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7844
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7845
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7846
+#ifndef gv_fetchpvn_flags
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7847
+#  define gv_fetchpvn_flags(name, len, flags, svt) gv_fetchpv(name, flags, svt)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7848
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7849
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7850
+#ifndef gv_fetchsv
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7851
+#  define gv_fetchsv(name, flags, svt)   gv_fetchpv(SvPV_nolen_const(name), flags, svt)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7852
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7853
+#ifndef get_cvn_flags
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7854
+#  define get_cvn_flags(name, namelen, flags) get_cv(name, flags)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7855
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7856
+#ifndef WARN_ALL
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7857
+#  define WARN_ALL                       0
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7858
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7859
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7860
+#ifndef WARN_CLOSURE
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7861
+#  define WARN_CLOSURE                   1
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7862
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7863
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7864
+#ifndef WARN_DEPRECATED
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7865
+#  define WARN_DEPRECATED                2
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7866
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7867
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7868
+#ifndef WARN_EXITING
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7869
+#  define WARN_EXITING                   3
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7870
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7871
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7872
+#ifndef WARN_GLOB
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7873
+#  define WARN_GLOB                      4
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7874
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7875
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7876
+#ifndef WARN_IO
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7877
+#  define WARN_IO                        5
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7878
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7879
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7880
+#ifndef WARN_CLOSED
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7881
+#  define WARN_CLOSED                    6
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7882
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7883
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7884
+#ifndef WARN_EXEC
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7885
+#  define WARN_EXEC                      7
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7886
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7887
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7888
+#ifndef WARN_LAYER
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7889
+#  define WARN_LAYER                     8
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7890
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7891
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7892
+#ifndef WARN_NEWLINE
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7893
+#  define WARN_NEWLINE                   9
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7894
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7895
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7896
+#ifndef WARN_PIPE
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7897
+#  define WARN_PIPE                      10
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7898
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7899
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7900
+#ifndef WARN_UNOPENED
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7901
+#  define WARN_UNOPENED                  11
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7902
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7903
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7904
+#ifndef WARN_MISC
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7905
+#  define WARN_MISC                      12
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7906
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7907
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7908
+#ifndef WARN_NUMERIC
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7909
+#  define WARN_NUMERIC                   13
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7910
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7911
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7912
+#ifndef WARN_ONCE
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7913
+#  define WARN_ONCE                      14
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7914
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7915
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7916
+#ifndef WARN_OVERFLOW
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7917
+#  define WARN_OVERFLOW                  15
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7918
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7919
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7920
+#ifndef WARN_PACK
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7921
+#  define WARN_PACK                      16
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7922
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7923
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7924
+#ifndef WARN_PORTABLE
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7925
+#  define WARN_PORTABLE                  17
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7926
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7927
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7928
+#ifndef WARN_RECURSION
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7929
+#  define WARN_RECURSION                 18
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7930
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7931
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7932
+#ifndef WARN_REDEFINE
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7933
+#  define WARN_REDEFINE                  19
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7934
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7935
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7936
+#ifndef WARN_REGEXP
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7937
+#  define WARN_REGEXP                    20
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7938
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7939
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7940
+#ifndef WARN_SEVERE
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7941
+#  define WARN_SEVERE                    21
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7942
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7943
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7944
+#ifndef WARN_DEBUGGING
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7945
+#  define WARN_DEBUGGING                 22
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7946
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7947
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7948
+#ifndef WARN_INPLACE
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7949
+#  define WARN_INPLACE                   23
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7950
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7951
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7952
+#ifndef WARN_INTERNAL
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7953
+#  define WARN_INTERNAL                  24
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7954
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7955
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7956
+#ifndef WARN_MALLOC
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7957
+#  define WARN_MALLOC                    25
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7958
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7959
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7960
+#ifndef WARN_SIGNAL
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7961
+#  define WARN_SIGNAL                    26
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7962
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7963
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7964
+#ifndef WARN_SUBSTR
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7965
+#  define WARN_SUBSTR                    27
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7966
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7967
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7968
+#ifndef WARN_SYNTAX
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7969
+#  define WARN_SYNTAX                    28
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7970
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7971
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7972
+#ifndef WARN_AMBIGUOUS
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7973
+#  define WARN_AMBIGUOUS                 29
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7974
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7975
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7976
+#ifndef WARN_BAREWORD
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7977
+#  define WARN_BAREWORD                  30
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7978
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7979
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7980
+#ifndef WARN_DIGIT
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7981
+#  define WARN_DIGIT                     31
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7982
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7983
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7984
+#ifndef WARN_PARENTHESIS
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7985
+#  define WARN_PARENTHESIS               32
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7986
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7987
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7988
+#ifndef WARN_PRECEDENCE
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7989
+#  define WARN_PRECEDENCE                33
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7990
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7991
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7992
+#ifndef WARN_PRINTF
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7993
+#  define WARN_PRINTF                    34
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7994
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7995
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7996
+#ifndef WARN_PROTOTYPE
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7997
+#  define WARN_PROTOTYPE                 35
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7998
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7999
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8000
+#ifndef WARN_QW
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8001
+#  define WARN_QW                        36
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8002
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8003
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8004
+#ifndef WARN_RESERVED
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8005
+#  define WARN_RESERVED                  37
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8006
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8007
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8008
+#ifndef WARN_SEMICOLON
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8009
+#  define WARN_SEMICOLON                 38
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8010
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8011
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8012
+#ifndef WARN_TAINT
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8013
+#  define WARN_TAINT                     39
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8014
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8015
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8016
+#ifndef WARN_THREADS
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8017
+#  define WARN_THREADS                   40
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8018
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8019
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8020
+#ifndef WARN_UNINITIALIZED
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8021
+#  define WARN_UNINITIALIZED             41
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8022
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8023
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8024
+#ifndef WARN_UNPACK
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8025
+#  define WARN_UNPACK                    42
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8026
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8027
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8028
+#ifndef WARN_UNTIE
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8029
+#  define WARN_UNTIE                     43
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8030
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8031
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8032
+#ifndef WARN_UTF8
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8033
+#  define WARN_UTF8                      44
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8034
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8035
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8036
+#ifndef WARN_VOID
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8037
+#  define WARN_VOID                      45
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8038
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8039
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8040
+#ifndef WARN_ASSERTIONS
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8041
+#  define WARN_ASSERTIONS                46
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8042
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8043
+#ifndef packWARN
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8044
+#  define packWARN(a)                    (a)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8045
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8046
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8047
+#ifndef ckWARN
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8048
+#  ifdef G_WARN_ON
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8049
+#    define  ckWARN(a)                  (PL_dowarn & G_WARN_ON)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8050
+#  else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8051
+#    define  ckWARN(a)                  PL_dowarn
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8052
+#  endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8053
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8054
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8055
+#if (PERL_BCDVERSION >= 0x5004000) && !defined(warner)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8056
+#if defined(NEED_warner)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8057
+static void DPPP_(my_warner)(U32 err, const char *pat, ...);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8058
+static
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8059
+#else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8060
+extern void DPPP_(my_warner)(U32 err, const char *pat, ...);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8061
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8062
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8063
+#define Perl_warner DPPP_(my_warner)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8064
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8065
+#if defined(NEED_warner) || defined(NEED_warner_GLOBAL)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8066
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8067
+void
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8068
+DPPP_(my_warner)(U32 err, const char *pat, ...)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8069
+{
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8070
+  SV *sv;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8071
+  va_list args;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8072
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8073
+  PERL_UNUSED_ARG(err);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8074
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8075
+  va_start(args, pat);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8076
+  sv = vnewSVpvf(pat, &args);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8077
+  va_end(args);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8078
+  sv_2mortal(sv);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8079
+  warn("%s", SvPV_nolen(sv));
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8080
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8081
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8082
+#define warner  Perl_warner
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8083
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8084
+#define Perl_warner_nocontext  Perl_warner
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8085
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8086
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8087
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8088
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8089
+/* concatenating with "" ensures that only literal strings are accepted as argument
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8090
+ * note that STR_WITH_LEN() can't be used as argument to macros or functions that
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8091
+ * under some configurations might be macros
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8092
+ */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8093
+#ifndef STR_WITH_LEN
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8094
+#  define STR_WITH_LEN(s)                (s ""), (sizeof(s)-1)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8095
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8096
+#ifndef newSVpvs
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8097
+#  define newSVpvs(str)                  newSVpvn(str "", sizeof(str) - 1)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8098
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8099
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8100
+#ifndef newSVpvs_flags
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8101
+#  define newSVpvs_flags(str, flags)     newSVpvn_flags(str "", sizeof(str) - 1, flags)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8102
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8103
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8104
+#ifndef newSVpvs_share
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8105
+#  define newSVpvs_share(str)            newSVpvn_share(str "", sizeof(str) - 1, 0)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8106
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8107
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8108
+#ifndef sv_catpvs
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8109
+#  define sv_catpvs(sv, str)             sv_catpvn(sv, str "", sizeof(str) - 1)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8110
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8111
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8112
+#ifndef sv_setpvs
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8113
+#  define sv_setpvs(sv, str)             sv_setpvn(sv, str "", sizeof(str) - 1)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8114
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8115
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8116
+#ifndef hv_fetchs
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8117
+#  define hv_fetchs(hv, key, lval)       hv_fetch(hv, key "", sizeof(key) - 1, lval)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8118
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8119
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8120
+#ifndef hv_stores
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8121
+#  define hv_stores(hv, key, val)        hv_store(hv, key "", sizeof(key) - 1, val, 0)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8122
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8123
+#ifndef gv_fetchpvs
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8124
+#  define gv_fetchpvs(name, flags, svt)  gv_fetchpvn_flags(name "", sizeof(name) - 1, flags, svt)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8125
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8126
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8127
+#ifndef gv_stashpvs
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8128
+#  define gv_stashpvs(name, flags)       gv_stashpvn(name "", sizeof(name) - 1, flags)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8129
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8130
+#ifndef get_cvs
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8131
+#  define get_cvs(name, flags)           get_cvn_flags(name "", sizeof(name)-1, flags)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8132
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8133
+#ifndef SvGETMAGIC
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8134
+#  define SvGETMAGIC(x)                  STMT_START { if (SvGMAGICAL(x)) mg_get(x); } STMT_END
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8135
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8136
+#ifndef PERL_MAGIC_sv
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8137
+#  define PERL_MAGIC_sv                  '\0'
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8138
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8139
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8140
+#ifndef PERL_MAGIC_overload
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8141
+#  define PERL_MAGIC_overload            'A'
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8142
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8143
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8144
+#ifndef PERL_MAGIC_overload_elem
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8145
+#  define PERL_MAGIC_overload_elem       'a'
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8146
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8147
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8148
+#ifndef PERL_MAGIC_overload_table
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8149
+#  define PERL_MAGIC_overload_table      'c'
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8150
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8151
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8152
+#ifndef PERL_MAGIC_bm
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8153
+#  define PERL_MAGIC_bm                  'B'
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8154
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8155
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8156
+#ifndef PERL_MAGIC_regdata
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8157
+#  define PERL_MAGIC_regdata             'D'
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8158
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8159
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8160
+#ifndef PERL_MAGIC_regdatum
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8161
+#  define PERL_MAGIC_regdatum            'd'
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8162
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8163
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8164
+#ifndef PERL_MAGIC_env
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8165
+#  define PERL_MAGIC_env                 'E'
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8166
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8167
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8168
+#ifndef PERL_MAGIC_envelem
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8169
+#  define PERL_MAGIC_envelem             'e'
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8170
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8171
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8172
+#ifndef PERL_MAGIC_fm
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8173
+#  define PERL_MAGIC_fm                  'f'
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8174
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8175
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8176
+#ifndef PERL_MAGIC_regex_global
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8177
+#  define PERL_MAGIC_regex_global        'g'
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8178
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8179
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8180
+#ifndef PERL_MAGIC_isa
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8181
+#  define PERL_MAGIC_isa                 'I'
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8182
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8183
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8184
+#ifndef PERL_MAGIC_isaelem
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8185
+#  define PERL_MAGIC_isaelem             'i'
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8186
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8187
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8188
+#ifndef PERL_MAGIC_nkeys
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8189
+#  define PERL_MAGIC_nkeys               'k'
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8190
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8191
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8192
+#ifndef PERL_MAGIC_dbfile
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8193
+#  define PERL_MAGIC_dbfile              'L'
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8194
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8195
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8196
+#ifndef PERL_MAGIC_dbline
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8197
+#  define PERL_MAGIC_dbline              'l'
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8198
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8199
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8200
+#ifndef PERL_MAGIC_mutex
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8201
+#  define PERL_MAGIC_mutex               'm'
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8202
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8203
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8204
+#ifndef PERL_MAGIC_shared
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8205
+#  define PERL_MAGIC_shared              'N'
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8206
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8207
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8208
+#ifndef PERL_MAGIC_shared_scalar
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8209
+#  define PERL_MAGIC_shared_scalar       'n'
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8210
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8211
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8212
+#ifndef PERL_MAGIC_collxfrm
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8213
+#  define PERL_MAGIC_collxfrm            'o'
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8214
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8215
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8216
+#ifndef PERL_MAGIC_tied
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8217
+#  define PERL_MAGIC_tied                'P'
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8218
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8219
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8220
+#ifndef PERL_MAGIC_tiedelem
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8221
+#  define PERL_MAGIC_tiedelem            'p'
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8222
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8223
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8224
+#ifndef PERL_MAGIC_tiedscalar
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8225
+#  define PERL_MAGIC_tiedscalar          'q'
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8226
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8227
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8228
+#ifndef PERL_MAGIC_qr
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8229
+#  define PERL_MAGIC_qr                  'r'
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8230
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8231
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8232
+#ifndef PERL_MAGIC_sig
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8233
+#  define PERL_MAGIC_sig                 'S'
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8234
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8235
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8236
+#ifndef PERL_MAGIC_sigelem
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8237
+#  define PERL_MAGIC_sigelem             's'
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8238
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8239
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8240
+#ifndef PERL_MAGIC_taint
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8241
+#  define PERL_MAGIC_taint               't'
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8242
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8243
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8244
+#ifndef PERL_MAGIC_uvar
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8245
+#  define PERL_MAGIC_uvar                'U'
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8246
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8247
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8248
+#ifndef PERL_MAGIC_uvar_elem
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8249
+#  define PERL_MAGIC_uvar_elem           'u'
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8250
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8251
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8252
+#ifndef PERL_MAGIC_vstring
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8253
+#  define PERL_MAGIC_vstring             'V'
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8254
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8255
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8256
+#ifndef PERL_MAGIC_vec
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8257
+#  define PERL_MAGIC_vec                 'v'
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8258
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8259
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8260
+#ifndef PERL_MAGIC_utf8
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8261
+#  define PERL_MAGIC_utf8                'w'
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8262
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8263
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8264
+#ifndef PERL_MAGIC_substr
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8265
+#  define PERL_MAGIC_substr              'x'
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8266
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8267
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8268
+#ifndef PERL_MAGIC_defelem
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8269
+#  define PERL_MAGIC_defelem             'y'
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8270
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8271
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8272
+#ifndef PERL_MAGIC_glob
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8273
+#  define PERL_MAGIC_glob                '*'
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8274
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8275
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8276
+#ifndef PERL_MAGIC_arylen
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8277
+#  define PERL_MAGIC_arylen              '#'
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8278
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8279
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8280
+#ifndef PERL_MAGIC_pos
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8281
+#  define PERL_MAGIC_pos                 '.'
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8282
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8283
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8284
+#ifndef PERL_MAGIC_backref
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8285
+#  define PERL_MAGIC_backref             '<'
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8286
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8287
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8288
+#ifndef PERL_MAGIC_ext
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8289
+#  define PERL_MAGIC_ext                 '~'
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8290
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8291
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8292
+/* That's the best we can do... */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8293
+#ifndef sv_catpvn_nomg
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8294
+#  define sv_catpvn_nomg                 sv_catpvn
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8295
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8296
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8297
+#ifndef sv_catsv_nomg
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8298
+#  define sv_catsv_nomg                  sv_catsv
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8299
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8300
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8301
+#ifndef sv_setsv_nomg
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8302
+#  define sv_setsv_nomg                  sv_setsv
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8303
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8304
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8305
+#ifndef sv_pvn_nomg
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8306
+#  define sv_pvn_nomg                    sv_pvn
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8307
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8308
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8309
+#ifndef SvIV_nomg
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8310
+#  define SvIV_nomg                      SvIV
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8311
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8312
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8313
+#ifndef SvUV_nomg
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8314
+#  define SvUV_nomg                      SvUV
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8315
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8316
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8317
+#ifndef sv_catpv_mg
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8318
+#  define sv_catpv_mg(sv, ptr)          \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8319
+   STMT_START {                         \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8320
+     SV *TeMpSv = sv;                   \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8321
+     sv_catpv(TeMpSv,ptr);              \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8322
+     SvSETMAGIC(TeMpSv);                \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8323
+   } STMT_END
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8324
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8325
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8326
+#ifndef sv_catpvn_mg
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8327
+#  define sv_catpvn_mg(sv, ptr, len)    \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8328
+   STMT_START {                         \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8329
+     SV *TeMpSv = sv;                   \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8330
+     sv_catpvn(TeMpSv,ptr,len);         \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8331
+     SvSETMAGIC(TeMpSv);                \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8332
+   } STMT_END
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8333
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8334
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8335
+#ifndef sv_catsv_mg
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8336
+#  define sv_catsv_mg(dsv, ssv)         \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8337
+   STMT_START {                         \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8338
+     SV *TeMpSv = dsv;                  \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8339
+     sv_catsv(TeMpSv,ssv);              \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8340
+     SvSETMAGIC(TeMpSv);                \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8341
+   } STMT_END
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8342
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8343
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8344
+#ifndef sv_setiv_mg
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8345
+#  define sv_setiv_mg(sv, i)            \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8346
+   STMT_START {                         \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8347
+     SV *TeMpSv = sv;                   \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8348
+     sv_setiv(TeMpSv,i);                \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8349
+     SvSETMAGIC(TeMpSv);                \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8350
+   } STMT_END
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8351
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8352
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8353
+#ifndef sv_setnv_mg
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8354
+#  define sv_setnv_mg(sv, num)          \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8355
+   STMT_START {                         \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8356
+     SV *TeMpSv = sv;                   \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8357
+     sv_setnv(TeMpSv,num);              \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8358
+     SvSETMAGIC(TeMpSv);                \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8359
+   } STMT_END
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8360
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8361
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8362
+#ifndef sv_setpv_mg
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8363
+#  define sv_setpv_mg(sv, ptr)          \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8364
+   STMT_START {                         \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8365
+     SV *TeMpSv = sv;                   \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8366
+     sv_setpv(TeMpSv,ptr);              \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8367
+     SvSETMAGIC(TeMpSv);                \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8368
+   } STMT_END
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8369
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8370
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8371
+#ifndef sv_setpvn_mg
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8372
+#  define sv_setpvn_mg(sv, ptr, len)    \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8373
+   STMT_START {                         \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8374
+     SV *TeMpSv = sv;                   \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8375
+     sv_setpvn(TeMpSv,ptr,len);         \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8376
+     SvSETMAGIC(TeMpSv);                \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8377
+   } STMT_END
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8378
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8379
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8380
+#ifndef sv_setsv_mg
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8381
+#  define sv_setsv_mg(dsv, ssv)         \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8382
+   STMT_START {                         \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8383
+     SV *TeMpSv = dsv;                  \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8384
+     sv_setsv(TeMpSv,ssv);              \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8385
+     SvSETMAGIC(TeMpSv);                \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8386
+   } STMT_END
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8387
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8388
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8389
+#ifndef sv_setuv_mg
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8390
+#  define sv_setuv_mg(sv, i)            \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8391
+   STMT_START {                         \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8392
+     SV *TeMpSv = sv;                   \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8393
+     sv_setuv(TeMpSv,i);                \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8394
+     SvSETMAGIC(TeMpSv);                \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8395
+   } STMT_END
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8396
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8397
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8398
+#ifndef sv_usepvn_mg
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8399
+#  define sv_usepvn_mg(sv, ptr, len)    \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8400
+   STMT_START {                         \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8401
+     SV *TeMpSv = sv;                   \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8402
+     sv_usepvn(TeMpSv,ptr,len);         \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8403
+     SvSETMAGIC(TeMpSv);                \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8404
+   } STMT_END
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8405
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8406
+#ifndef SvVSTRING_mg
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8407
+#  define SvVSTRING_mg(sv)               (SvMAGICAL(sv) ? mg_find(sv, PERL_MAGIC_vstring) : NULL)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8408
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8409
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8410
+/* Hint: sv_magic_portable
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8411
+ * This is a compatibility function that is only available with
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8412
+ * Devel::PPPort. It is NOT in the perl core.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8413
+ * Its purpose is to mimic the 5.8.0 behaviour of sv_magic() when
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8414
+ * it is being passed a name pointer with namlen == 0. In that
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8415
+ * case, perl 5.8.0 and later store the pointer, not a copy of it.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8416
+ * The compatibility can be provided back to perl 5.004. With
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8417
+ * earlier versions, the code will not compile.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8418
+ */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8419
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8420
+#if (PERL_BCDVERSION < 0x5004000)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8421
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8422
+  /* code that uses sv_magic_portable will not compile */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8423
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8424
+#elif (PERL_BCDVERSION < 0x5008000)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8425
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8426
+#  define sv_magic_portable(sv, obj, how, name, namlen)     \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8427
+   STMT_START {                                             \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8428
+     SV *SvMp_sv = (sv);                                    \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8429
+     char *SvMp_name = (char *) (name);                     \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8430
+     I32 SvMp_namlen = (namlen);                            \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8431
+     if (SvMp_name && SvMp_namlen == 0)                     \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8432
+     {                                                      \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8433
+       MAGIC *mg;                                           \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8434
+       sv_magic(SvMp_sv, obj, how, 0, 0);                   \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8435
+       mg = SvMAGIC(SvMp_sv);                               \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8436
+       mg->mg_len = -42; /* XXX: this is the tricky part */ \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8437
+       mg->mg_ptr = SvMp_name;                              \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8438
+     }                                                      \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8439
+     else                                                   \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8440
+     {                                                      \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8441
+       sv_magic(SvMp_sv, obj, how, SvMp_name, SvMp_namlen); \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8442
+     }                                                      \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8443
+   } STMT_END
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8444
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8445
+#else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8446
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8447
+#  define sv_magic_portable(a, b, c, d, e)  sv_magic(a, b, c, d, e)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8448
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8449
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8450
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8451
+#ifdef USE_ITHREADS
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8452
+#ifndef CopFILE
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8453
+#  define CopFILE(c)                     ((c)->cop_file)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8454
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8455
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8456
+#ifndef CopFILEGV
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8457
+#  define CopFILEGV(c)                   (CopFILE(c) ? gv_fetchfile(CopFILE(c)) : Nullgv)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8458
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8459
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8460
+#ifndef CopFILE_set
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8461
+#  define CopFILE_set(c,pv)              ((c)->cop_file = savepv(pv))
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8462
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8463
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8464
+#ifndef CopFILESV
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8465
+#  define CopFILESV(c)                   (CopFILE(c) ? GvSV(gv_fetchfile(CopFILE(c))) : Nullsv)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8466
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8467
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8468
+#ifndef CopFILEAV
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8469
+#  define CopFILEAV(c)                   (CopFILE(c) ? GvAV(gv_fetchfile(CopFILE(c))) : Nullav)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8470
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8471
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8472
+#ifndef CopSTASHPV
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8473
+#  define CopSTASHPV(c)                  ((c)->cop_stashpv)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8474
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8475
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8476
+#ifndef CopSTASHPV_set
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8477
+#  define CopSTASHPV_set(c,pv)           ((c)->cop_stashpv = ((pv) ? savepv(pv) : Nullch))
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8478
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8479
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8480
+#ifndef CopSTASH
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8481
+#  define CopSTASH(c)                    (CopSTASHPV(c) ? gv_stashpv(CopSTASHPV(c),GV_ADD) : Nullhv)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8482
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8483
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8484
+#ifndef CopSTASH_set
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8485
+#  define CopSTASH_set(c,hv)             CopSTASHPV_set(c, (hv) ? HvNAME(hv) : Nullch)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8486
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8487
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8488
+#ifndef CopSTASH_eq
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8489
+#  define CopSTASH_eq(c,hv)              ((hv) && (CopSTASHPV(c) == HvNAME(hv) \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8490
+                                        || (CopSTASHPV(c) && HvNAME(hv) \
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8491
+                                        && strEQ(CopSTASHPV(c), HvNAME(hv)))))
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8492
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8493
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8494
+#else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8495
+#ifndef CopFILEGV
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8496
+#  define CopFILEGV(c)                   ((c)->cop_filegv)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8497
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8498
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8499
+#ifndef CopFILEGV_set
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8500
+#  define CopFILEGV_set(c,gv)            ((c)->cop_filegv = (GV*)SvREFCNT_inc(gv))
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8501
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8502
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8503
+#ifndef CopFILE_set
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8504
+#  define CopFILE_set(c,pv)              CopFILEGV_set((c), gv_fetchfile(pv))
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8505
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8506
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8507
+#ifndef CopFILESV
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8508
+#  define CopFILESV(c)                   (CopFILEGV(c) ? GvSV(CopFILEGV(c)) : Nullsv)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8509
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8510
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8511
+#ifndef CopFILEAV
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8512
+#  define CopFILEAV(c)                   (CopFILEGV(c) ? GvAV(CopFILEGV(c)) : Nullav)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8513
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8514
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8515
+#ifndef CopFILE
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8516
+#  define CopFILE(c)                     (CopFILESV(c) ? SvPVX(CopFILESV(c)) : Nullch)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8517
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8518
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8519
+#ifndef CopSTASH
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8520
+#  define CopSTASH(c)                    ((c)->cop_stash)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8521
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8522
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8523
+#ifndef CopSTASH_set
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8524
+#  define CopSTASH_set(c,hv)             ((c)->cop_stash = (hv))
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8525
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8526
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8527
+#ifndef CopSTASHPV
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8528
+#  define CopSTASHPV(c)                  (CopSTASH(c) ? HvNAME(CopSTASH(c)) : Nullch)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8529
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8530
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8531
+#ifndef CopSTASHPV_set
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8532
+#  define CopSTASHPV_set(c,pv)           CopSTASH_set((c), gv_stashpv(pv,GV_ADD))
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8533
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8534
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8535
+#ifndef CopSTASH_eq
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8536
+#  define CopSTASH_eq(c,hv)              (CopSTASH(c) == (hv))
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8537
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8538
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8539
+#endif /* USE_ITHREADS */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8540
+#ifndef IN_PERL_COMPILETIME
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8541
+#  define IN_PERL_COMPILETIME            (PL_curcop == &PL_compiling)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8542
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8543
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8544
+#ifndef IN_LOCALE_RUNTIME
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8545
+#  define IN_LOCALE_RUNTIME              (PL_curcop->op_private & HINT_LOCALE)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8546
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8547
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8548
+#ifndef IN_LOCALE_COMPILETIME
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8549
+#  define IN_LOCALE_COMPILETIME          (PL_hints & HINT_LOCALE)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8550
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8551
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8552
+#ifndef IN_LOCALE
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8553
+#  define IN_LOCALE                      (IN_PERL_COMPILETIME ? IN_LOCALE_COMPILETIME : IN_LOCALE_RUNTIME)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8554
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8555
+#ifndef IS_NUMBER_IN_UV
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8556
+#  define IS_NUMBER_IN_UV                0x01
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8557
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8558
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8559
+#ifndef IS_NUMBER_GREATER_THAN_UV_MAX
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8560
+#  define IS_NUMBER_GREATER_THAN_UV_MAX  0x02
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8561
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8562
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8563
+#ifndef IS_NUMBER_NOT_INT
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8564
+#  define IS_NUMBER_NOT_INT              0x04
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8565
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8566
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8567
+#ifndef IS_NUMBER_NEG
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8568
+#  define IS_NUMBER_NEG                  0x08
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8569
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8570
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8571
+#ifndef IS_NUMBER_INFINITY
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8572
+#  define IS_NUMBER_INFINITY             0x10
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8573
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8574
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8575
+#ifndef IS_NUMBER_NAN
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8576
+#  define IS_NUMBER_NAN                  0x20
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8577
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8578
+#ifndef GROK_NUMERIC_RADIX
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8579
+#  define GROK_NUMERIC_RADIX(sp, send)   grok_numeric_radix(sp, send)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8580
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8581
+#ifndef PERL_SCAN_GREATER_THAN_UV_MAX
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8582
+#  define PERL_SCAN_GREATER_THAN_UV_MAX  0x02
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8583
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8584
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8585
+#ifndef PERL_SCAN_SILENT_ILLDIGIT
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8586
+#  define PERL_SCAN_SILENT_ILLDIGIT      0x04
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8587
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8588
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8589
+#ifndef PERL_SCAN_ALLOW_UNDERSCORES
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8590
+#  define PERL_SCAN_ALLOW_UNDERSCORES    0x01
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8591
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8592
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8593
+#ifndef PERL_SCAN_DISALLOW_PREFIX
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8594
+#  define PERL_SCAN_DISALLOW_PREFIX      0x02
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8595
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8596
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8597
+#ifndef grok_numeric_radix
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8598
+#if defined(NEED_grok_numeric_radix)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8599
+static bool DPPP_(my_grok_numeric_radix)(pTHX_ const char ** sp, const char * send);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8600
+static
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8601
+#else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8602
+extern bool DPPP_(my_grok_numeric_radix)(pTHX_ const char ** sp, const char * send);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8603
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8604
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8605
+#ifdef grok_numeric_radix
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8606
+#  undef grok_numeric_radix
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8607
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8608
+#define grok_numeric_radix(a,b) DPPP_(my_grok_numeric_radix)(aTHX_ a,b)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8609
+#define Perl_grok_numeric_radix DPPP_(my_grok_numeric_radix)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8610
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8611
+#if defined(NEED_grok_numeric_radix) || defined(NEED_grok_numeric_radix_GLOBAL)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8612
+bool
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8613
+DPPP_(my_grok_numeric_radix)(pTHX_ const char **sp, const char *send)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8614
+{
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8615
+#ifdef USE_LOCALE_NUMERIC
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8616
+#ifdef PL_numeric_radix_sv
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8617
+    if (PL_numeric_radix_sv && IN_LOCALE) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8618
+        STRLEN len;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8619
+        char* radix = SvPV(PL_numeric_radix_sv, len);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8620
+        if (*sp + len <= send && memEQ(*sp, radix, len)) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8621
+            *sp += len;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8622
+            return TRUE;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8623
+        }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8624
+    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8625
+#else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8626
+    /* older perls don't have PL_numeric_radix_sv so the radix
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8627
+     * must manually be requested from locale.h
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8628
+     */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8629
+#include <locale.h>
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8630
+    dTHR;  /* needed for older threaded perls */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8631
+    struct lconv *lc = localeconv();
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8632
+    char *radix = lc->decimal_point;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8633
+    if (radix && IN_LOCALE) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8634
+        STRLEN len = strlen(radix);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8635
+        if (*sp + len <= send && memEQ(*sp, radix, len)) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8636
+            *sp += len;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8637
+            return TRUE;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8638
+        }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8639
+    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8640
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8641
+#endif /* USE_LOCALE_NUMERIC */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8642
+    /* always try "." if numeric radix didn't match because
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8643
+     * we may have data from different locales mixed */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8644
+    if (*sp < send && **sp == '.') {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8645
+        ++*sp;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8646
+        return TRUE;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8647
+    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8648
+    return FALSE;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8649
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8650
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8651
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8652
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8653
+#ifndef grok_number
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8654
+#if defined(NEED_grok_number)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8655
+static int DPPP_(my_grok_number)(pTHX_ const char * pv, STRLEN len, UV * valuep);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8656
+static
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8657
+#else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8658
+extern int DPPP_(my_grok_number)(pTHX_ const char * pv, STRLEN len, UV * valuep);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8659
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8660
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8661
+#ifdef grok_number
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8662
+#  undef grok_number
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8663
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8664
+#define grok_number(a,b,c) DPPP_(my_grok_number)(aTHX_ a,b,c)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8665
+#define Perl_grok_number DPPP_(my_grok_number)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8666
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8667
+#if defined(NEED_grok_number) || defined(NEED_grok_number_GLOBAL)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8668
+int
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8669
+DPPP_(my_grok_number)(pTHX_ const char *pv, STRLEN len, UV *valuep)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8670
+{
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8671
+  const char *s = pv;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8672
+  const char *send = pv + len;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8673
+  const UV max_div_10 = UV_MAX / 10;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8674
+  const char max_mod_10 = UV_MAX % 10;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8675
+  int numtype = 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8676
+  int sawinf = 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8677
+  int sawnan = 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8678
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8679
+  while (s < send && isSPACE(*s))
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8680
+    s++;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8681
+  if (s == send) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8682
+    return 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8683
+  } else if (*s == '-') {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8684
+    s++;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8685
+    numtype = IS_NUMBER_NEG;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8686
+  }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8687
+  else if (*s == '+')
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8688
+  s++;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8689
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8690
+  if (s == send)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8691
+    return 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8692
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8693
+  /* next must be digit or the radix separator or beginning of infinity */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8694
+  if (isDIGIT(*s)) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8695
+    /* UVs are at least 32 bits, so the first 9 decimal digits cannot
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8696
+       overflow.  */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8697
+    UV value = *s - '0';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8698
+    /* This construction seems to be more optimiser friendly.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8699
+       (without it gcc does the isDIGIT test and the *s - '0' separately)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8700
+       With it gcc on arm is managing 6 instructions (6 cycles) per digit.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8701
+       In theory the optimiser could deduce how far to unroll the loop
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8702
+       before checking for overflow.  */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8703
+    if (++s < send) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8704
+      int digit = *s - '0';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8705
+      if (digit >= 0 && digit <= 9) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8706
+        value = value * 10 + digit;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8707
+        if (++s < send) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8708
+          digit = *s - '0';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8709
+          if (digit >= 0 && digit <= 9) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8710
+            value = value * 10 + digit;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8711
+            if (++s < send) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8712
+              digit = *s - '0';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8713
+              if (digit >= 0 && digit <= 9) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8714
+                value = value * 10 + digit;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8715
+                if (++s < send) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8716
+                  digit = *s - '0';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8717
+                  if (digit >= 0 && digit <= 9) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8718
+                    value = value * 10 + digit;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8719
+                    if (++s < send) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8720
+                      digit = *s - '0';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8721
+                      if (digit >= 0 && digit <= 9) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8722
+                        value = value * 10 + digit;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8723
+                        if (++s < send) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8724
+                          digit = *s - '0';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8725
+                          if (digit >= 0 && digit <= 9) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8726
+                            value = value * 10 + digit;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8727
+                            if (++s < send) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8728
+                              digit = *s - '0';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8729
+                              if (digit >= 0 && digit <= 9) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8730
+                                value = value * 10 + digit;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8731
+                                if (++s < send) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8732
+                                  digit = *s - '0';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8733
+                                  if (digit >= 0 && digit <= 9) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8734
+                                    value = value * 10 + digit;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8735
+                                    if (++s < send) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8736
+                                      /* Now got 9 digits, so need to check
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8737
+                                         each time for overflow.  */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8738
+                                      digit = *s - '0';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8739
+                                      while (digit >= 0 && digit <= 9
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8740
+                                             && (value < max_div_10
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8741
+                                                 || (value == max_div_10
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8742
+                                                     && digit <= max_mod_10))) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8743
+                                        value = value * 10 + digit;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8744
+                                        if (++s < send)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8745
+                                          digit = *s - '0';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8746
+                                        else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8747
+                                          break;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8748
+                                      }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8749
+                                      if (digit >= 0 && digit <= 9
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8750
+                                          && (s < send)) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8751
+                                        /* value overflowed.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8752
+                                           skip the remaining digits, don't
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8753
+                                           worry about setting *valuep.  */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8754
+                                        do {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8755
+                                          s++;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8756
+                                        } while (s < send && isDIGIT(*s));
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8757
+                                        numtype |=
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8758
+                                          IS_NUMBER_GREATER_THAN_UV_MAX;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8759
+                                        goto skip_value;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8760
+                                      }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8761
+                                    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8762
+                                  }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8763
+                                }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8764
+                              }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8765
+                            }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8766
+                          }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8767
+                        }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8768
+                      }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8769
+                    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8770
+                  }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8771
+                }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8772
+              }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8773
+            }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8774
+          }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8775
+        }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8776
+      }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8777
+    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8778
+    numtype |= IS_NUMBER_IN_UV;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8779
+    if (valuep)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8780
+      *valuep = value;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8781
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8782
+  skip_value:
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8783
+    if (GROK_NUMERIC_RADIX(&s, send)) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8784
+      numtype |= IS_NUMBER_NOT_INT;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8785
+      while (s < send && isDIGIT(*s))  /* optional digits after the radix */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8786
+        s++;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8787
+    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8788
+  }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8789
+  else if (GROK_NUMERIC_RADIX(&s, send)) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8790
+    numtype |= IS_NUMBER_NOT_INT | IS_NUMBER_IN_UV; /* valuep assigned below */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8791
+    /* no digits before the radix means we need digits after it */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8792
+    if (s < send && isDIGIT(*s)) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8793
+      do {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8794
+        s++;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8795
+      } while (s < send && isDIGIT(*s));
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8796
+      if (valuep) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8797
+        /* integer approximation is valid - it's 0.  */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8798
+        *valuep = 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8799
+      }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8800
+    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8801
+    else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8802
+      return 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8803
+  } else if (*s == 'I' || *s == 'i') {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8804
+    s++; if (s == send || (*s != 'N' && *s != 'n')) return 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8805
+    s++; if (s == send || (*s != 'F' && *s != 'f')) return 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8806
+    s++; if (s < send && (*s == 'I' || *s == 'i')) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8807
+      s++; if (s == send || (*s != 'N' && *s != 'n')) return 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8808
+      s++; if (s == send || (*s != 'I' && *s != 'i')) return 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8809
+      s++; if (s == send || (*s != 'T' && *s != 't')) return 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8810
+      s++; if (s == send || (*s != 'Y' && *s != 'y')) return 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8811
+      s++;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8812
+    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8813
+    sawinf = 1;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8814
+  } else if (*s == 'N' || *s == 'n') {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8815
+    /* XXX TODO: There are signaling NaNs and quiet NaNs. */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8816
+    s++; if (s == send || (*s != 'A' && *s != 'a')) return 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8817
+    s++; if (s == send || (*s != 'N' && *s != 'n')) return 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8818
+    s++;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8819
+    sawnan = 1;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8820
+  } else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8821
+    return 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8822
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8823
+  if (sawinf) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8824
+    numtype &= IS_NUMBER_NEG; /* Keep track of sign  */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8825
+    numtype |= IS_NUMBER_INFINITY | IS_NUMBER_NOT_INT;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8826
+  } else if (sawnan) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8827
+    numtype &= IS_NUMBER_NEG; /* Keep track of sign  */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8828
+    numtype |= IS_NUMBER_NAN | IS_NUMBER_NOT_INT;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8829
+  } else if (s < send) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8830
+    /* we can have an optional exponent part */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8831
+    if (*s == 'e' || *s == 'E') {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8832
+      /* The only flag we keep is sign.  Blow away any "it's UV"  */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8833
+      numtype &= IS_NUMBER_NEG;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8834
+      numtype |= IS_NUMBER_NOT_INT;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8835
+      s++;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8836
+      if (s < send && (*s == '-' || *s == '+'))
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8837
+        s++;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8838
+      if (s < send && isDIGIT(*s)) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8839
+        do {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8840
+          s++;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8841
+        } while (s < send && isDIGIT(*s));
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8842
+      }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8843
+      else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8844
+      return 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8845
+    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8846
+  }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8847
+  while (s < send && isSPACE(*s))
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8848
+    s++;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8849
+  if (s >= send)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8850
+    return numtype;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8851
+  if (len == 10 && memEQ(pv, "0 but true", 10)) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8852
+    if (valuep)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8853
+      *valuep = 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8854
+    return IS_NUMBER_IN_UV;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8855
+  }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8856
+  return 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8857
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8858
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8859
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8860
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8861
+/*
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8862
+ * The grok_* routines have been modified to use warn() instead of
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8863
+ * Perl_warner(). Also, 'hexdigit' was the former name of PL_hexdigit,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8864
+ * which is why the stack variable has been renamed to 'xdigit'.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8865
+ */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8866
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8867
+#ifndef grok_bin
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8868
+#if defined(NEED_grok_bin)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8869
+static UV DPPP_(my_grok_bin)(pTHX_ const char * start, STRLEN * len_p, I32 * flags, NV * result);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8870
+static
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8871
+#else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8872
+extern UV DPPP_(my_grok_bin)(pTHX_ const char * start, STRLEN * len_p, I32 * flags, NV * result);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8873
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8874
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8875
+#ifdef grok_bin
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8876
+#  undef grok_bin
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8877
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8878
+#define grok_bin(a,b,c,d) DPPP_(my_grok_bin)(aTHX_ a,b,c,d)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8879
+#define Perl_grok_bin DPPP_(my_grok_bin)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8880
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8881
+#if defined(NEED_grok_bin) || defined(NEED_grok_bin_GLOBAL)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8882
+UV
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8883
+DPPP_(my_grok_bin)(pTHX_ const char *start, STRLEN *len_p, I32 *flags, NV *result)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8884
+{
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8885
+    const char *s = start;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8886
+    STRLEN len = *len_p;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8887
+    UV value = 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8888
+    NV value_nv = 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8889
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8890
+    const UV max_div_2 = UV_MAX / 2;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8891
+    bool allow_underscores = *flags & PERL_SCAN_ALLOW_UNDERSCORES;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8892
+    bool overflowed = FALSE;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8893
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8894
+    if (!(*flags & PERL_SCAN_DISALLOW_PREFIX)) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8895
+        /* strip off leading b or 0b.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8896
+           for compatibility silently suffer "b" and "0b" as valid binary
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8897
+           numbers. */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8898
+        if (len >= 1) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8899
+            if (s[0] == 'b') {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8900
+                s++;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8901
+                len--;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8902
+            }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8903
+            else if (len >= 2 && s[0] == '0' && s[1] == 'b') {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8904
+                s+=2;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8905
+                len-=2;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8906
+            }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8907
+        }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8908
+    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8909
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8910
+    for (; len-- && *s; s++) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8911
+        char bit = *s;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8912
+        if (bit == '0' || bit == '1') {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8913
+            /* Write it in this wonky order with a goto to attempt to get the
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8914
+               compiler to make the common case integer-only loop pretty tight.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8915
+               With gcc seems to be much straighter code than old scan_bin.  */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8916
+          redo:
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8917
+            if (!overflowed) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8918
+                if (value <= max_div_2) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8919
+                    value = (value << 1) | (bit - '0');
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8920
+                    continue;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8921
+                }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8922
+                /* Bah. We're just overflowed.  */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8923
+                warn("Integer overflow in binary number");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8924
+                overflowed = TRUE;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8925
+                value_nv = (NV) value;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8926
+            }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8927
+            value_nv *= 2.0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8928
+            /* If an NV has not enough bits in its mantissa to
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8929
+             * represent a UV this summing of small low-order numbers
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8930
+             * is a waste of time (because the NV cannot preserve
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8931
+             * the low-order bits anyway): we could just remember when
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8932
+             * did we overflow and in the end just multiply value_nv by the
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8933
+             * right amount. */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8934
+            value_nv += (NV)(bit - '0');
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8935
+            continue;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8936
+        }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8937
+        if (bit == '_' && len && allow_underscores && (bit = s[1])
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8938
+            && (bit == '0' || bit == '1'))
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8939
+            {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8940
+                --len;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8941
+                ++s;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8942
+                goto redo;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8943
+            }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8944
+        if (!(*flags & PERL_SCAN_SILENT_ILLDIGIT))
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8945
+            warn("Illegal binary digit '%c' ignored", *s);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8946
+        break;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8947
+    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8948
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8949
+    if (   ( overflowed && value_nv > 4294967295.0)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8950
+#if UVSIZE > 4
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8951
+        || (!overflowed && value > 0xffffffff  )
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8952
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8953
+        ) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8954
+        warn("Binary number > 0b11111111111111111111111111111111 non-portable");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8955
+    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8956
+    *len_p = s - start;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8957
+    if (!overflowed) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8958
+        *flags = 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8959
+        return value;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8960
+    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8961
+    *flags = PERL_SCAN_GREATER_THAN_UV_MAX;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8962
+    if (result)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8963
+        *result = value_nv;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8964
+    return UV_MAX;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8965
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8966
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8967
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8968
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8969
+#ifndef grok_hex
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8970
+#if defined(NEED_grok_hex)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8971
+static UV DPPP_(my_grok_hex)(pTHX_ const char * start, STRLEN * len_p, I32 * flags, NV * result);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8972
+static
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8973
+#else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8974
+extern UV DPPP_(my_grok_hex)(pTHX_ const char * start, STRLEN * len_p, I32 * flags, NV * result);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8975
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8976
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8977
+#ifdef grok_hex
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8978
+#  undef grok_hex
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8979
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8980
+#define grok_hex(a,b,c,d) DPPP_(my_grok_hex)(aTHX_ a,b,c,d)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8981
+#define Perl_grok_hex DPPP_(my_grok_hex)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8982
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8983
+#if defined(NEED_grok_hex) || defined(NEED_grok_hex_GLOBAL)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8984
+UV
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8985
+DPPP_(my_grok_hex)(pTHX_ const char *start, STRLEN *len_p, I32 *flags, NV *result)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8986
+{
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8987
+    const char *s = start;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8988
+    STRLEN len = *len_p;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8989
+    UV value = 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8990
+    NV value_nv = 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8991
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8992
+    const UV max_div_16 = UV_MAX / 16;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8993
+    bool allow_underscores = *flags & PERL_SCAN_ALLOW_UNDERSCORES;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8994
+    bool overflowed = FALSE;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8995
+    const char *xdigit;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8996
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8997
+    if (!(*flags & PERL_SCAN_DISALLOW_PREFIX)) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8998
+        /* strip off leading x or 0x.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8999
+           for compatibility silently suffer "x" and "0x" as valid hex numbers.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9000
+        */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9001
+        if (len >= 1) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9002
+            if (s[0] == 'x') {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9003
+                s++;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9004
+                len--;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9005
+            }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9006
+            else if (len >= 2 && s[0] == '0' && s[1] == 'x') {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9007
+                s+=2;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9008
+                len-=2;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9009
+            }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9010
+        }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9011
+    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9012
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9013
+    for (; len-- && *s; s++) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9014
+        xdigit = strchr((char *) PL_hexdigit, *s);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9015
+        if (xdigit) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9016
+            /* Write it in this wonky order with a goto to attempt to get the
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9017
+               compiler to make the common case integer-only loop pretty tight.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9018
+               With gcc seems to be much straighter code than old scan_hex.  */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9019
+          redo:
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9020
+            if (!overflowed) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9021
+                if (value <= max_div_16) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9022
+                    value = (value << 4) | ((xdigit - PL_hexdigit) & 15);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9023
+                    continue;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9024
+                }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9025
+                warn("Integer overflow in hexadecimal number");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9026
+                overflowed = TRUE;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9027
+                value_nv = (NV) value;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9028
+            }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9029
+            value_nv *= 16.0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9030
+            /* If an NV has not enough bits in its mantissa to
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9031
+             * represent a UV this summing of small low-order numbers
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9032
+             * is a waste of time (because the NV cannot preserve
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9033
+             * the low-order bits anyway): we could just remember when
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9034
+             * did we overflow and in the end just multiply value_nv by the
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9035
+             * right amount of 16-tuples. */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9036
+            value_nv += (NV)((xdigit - PL_hexdigit) & 15);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9037
+            continue;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9038
+        }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9039
+        if (*s == '_' && len && allow_underscores && s[1]
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9040
+                && (xdigit = strchr((char *) PL_hexdigit, s[1])))
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9041
+            {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9042
+                --len;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9043
+                ++s;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9044
+                goto redo;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9045
+            }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9046
+        if (!(*flags & PERL_SCAN_SILENT_ILLDIGIT))
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9047
+            warn("Illegal hexadecimal digit '%c' ignored", *s);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9048
+        break;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9049
+    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9050
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9051
+    if (   ( overflowed && value_nv > 4294967295.0)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9052
+#if UVSIZE > 4
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9053
+        || (!overflowed && value > 0xffffffff  )
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9054
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9055
+        ) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9056
+        warn("Hexadecimal number > 0xffffffff non-portable");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9057
+    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9058
+    *len_p = s - start;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9059
+    if (!overflowed) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9060
+        *flags = 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9061
+        return value;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9062
+    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9063
+    *flags = PERL_SCAN_GREATER_THAN_UV_MAX;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9064
+    if (result)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9065
+        *result = value_nv;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9066
+    return UV_MAX;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9067
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9068
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9069
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9070
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9071
+#ifndef grok_oct
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9072
+#if defined(NEED_grok_oct)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9073
+static UV DPPP_(my_grok_oct)(pTHX_ const char * start, STRLEN * len_p, I32 * flags, NV * result);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9074
+static
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9075
+#else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9076
+extern UV DPPP_(my_grok_oct)(pTHX_ const char * start, STRLEN * len_p, I32 * flags, NV * result);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9077
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9078
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9079
+#ifdef grok_oct
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9080
+#  undef grok_oct
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9081
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9082
+#define grok_oct(a,b,c,d) DPPP_(my_grok_oct)(aTHX_ a,b,c,d)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9083
+#define Perl_grok_oct DPPP_(my_grok_oct)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9084
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9085
+#if defined(NEED_grok_oct) || defined(NEED_grok_oct_GLOBAL)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9086
+UV
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9087
+DPPP_(my_grok_oct)(pTHX_ const char *start, STRLEN *len_p, I32 *flags, NV *result)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9088
+{
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9089
+    const char *s = start;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9090
+    STRLEN len = *len_p;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9091
+    UV value = 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9092
+    NV value_nv = 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9093
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9094
+    const UV max_div_8 = UV_MAX / 8;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9095
+    bool allow_underscores = *flags & PERL_SCAN_ALLOW_UNDERSCORES;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9096
+    bool overflowed = FALSE;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9097
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9098
+    for (; len-- && *s; s++) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9099
+         /* gcc 2.95 optimiser not smart enough to figure that this subtraction
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9100
+            out front allows slicker code.  */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9101
+        int digit = *s - '0';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9102
+        if (digit >= 0 && digit <= 7) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9103
+            /* Write it in this wonky order with a goto to attempt to get the
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9104
+               compiler to make the common case integer-only loop pretty tight.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9105
+            */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9106
+          redo:
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9107
+            if (!overflowed) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9108
+                if (value <= max_div_8) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9109
+                    value = (value << 3) | digit;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9110
+                    continue;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9111
+                }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9112
+                /* Bah. We're just overflowed.  */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9113
+                warn("Integer overflow in octal number");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9114
+                overflowed = TRUE;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9115
+                value_nv = (NV) value;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9116
+            }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9117
+            value_nv *= 8.0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9118
+            /* If an NV has not enough bits in its mantissa to
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9119
+             * represent a UV this summing of small low-order numbers
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9120
+             * is a waste of time (because the NV cannot preserve
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9121
+             * the low-order bits anyway): we could just remember when
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9122
+             * did we overflow and in the end just multiply value_nv by the
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9123
+             * right amount of 8-tuples. */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9124
+            value_nv += (NV)digit;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9125
+            continue;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9126
+        }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9127
+        if (digit == ('_' - '0') && len && allow_underscores
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9128
+            && (digit = s[1] - '0') && (digit >= 0 && digit <= 7))
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9129
+            {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9130
+                --len;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9131
+                ++s;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9132
+                goto redo;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9133
+            }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9134
+        /* Allow \octal to work the DWIM way (that is, stop scanning
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9135
+         * as soon as non-octal characters are seen, complain only iff
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9136
+         * someone seems to want to use the digits eight and nine). */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9137
+        if (digit == 8 || digit == 9) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9138
+            if (!(*flags & PERL_SCAN_SILENT_ILLDIGIT))
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9139
+                warn("Illegal octal digit '%c' ignored", *s);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9140
+        }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9141
+        break;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9142
+    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9143
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9144
+    if (   ( overflowed && value_nv > 4294967295.0)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9145
+#if UVSIZE > 4
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9146
+        || (!overflowed && value > 0xffffffff  )
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9147
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9148
+        ) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9149
+        warn("Octal number > 037777777777 non-portable");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9150
+    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9151
+    *len_p = s - start;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9152
+    if (!overflowed) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9153
+        *flags = 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9154
+        return value;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9155
+    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9156
+    *flags = PERL_SCAN_GREATER_THAN_UV_MAX;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9157
+    if (result)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9158
+        *result = value_nv;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9159
+    return UV_MAX;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9160
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9161
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9162
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9163
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9164
+#if !defined(my_snprintf)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9165
+#if defined(NEED_my_snprintf)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9166
+static int DPPP_(my_my_snprintf)(char * buffer, const Size_t len, const char * format, ...);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9167
+static
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9168
+#else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9169
+extern int DPPP_(my_my_snprintf)(char * buffer, const Size_t len, const char * format, ...);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9170
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9171
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9172
+#define my_snprintf DPPP_(my_my_snprintf)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9173
+#define Perl_my_snprintf DPPP_(my_my_snprintf)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9174
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9175
+#if defined(NEED_my_snprintf) || defined(NEED_my_snprintf_GLOBAL)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9176
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9177
+int
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9178
+DPPP_(my_my_snprintf)(char *buffer, const Size_t len, const char *format, ...)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9179
+{
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9180
+    dTHX;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9181
+    int retval;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9182
+    va_list ap;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9183
+    va_start(ap, format);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9184
+#ifdef HAS_VSNPRINTF
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9185
+    retval = vsnprintf(buffer, len, format, ap);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9186
+#else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9187
+    retval = vsprintf(buffer, format, ap);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9188
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9189
+    va_end(ap);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9190
+    if (retval < 0 || (len > 0 && (Size_t)retval >= len))
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9191
+        Perl_croak(aTHX_ "panic: my_snprintf buffer overflow");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9192
+    return retval;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9193
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9194
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9195
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9196
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9197
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9198
+#if !defined(my_sprintf)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9199
+#if defined(NEED_my_sprintf)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9200
+static int DPPP_(my_my_sprintf)(char * buffer, const char * pat, ...);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9201
+static
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9202
+#else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9203
+extern int DPPP_(my_my_sprintf)(char * buffer, const char * pat, ...);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9204
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9205
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9206
+#define my_sprintf DPPP_(my_my_sprintf)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9207
+#define Perl_my_sprintf DPPP_(my_my_sprintf)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9208
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9209
+#if defined(NEED_my_sprintf) || defined(NEED_my_sprintf_GLOBAL)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9210
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9211
+int
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9212
+DPPP_(my_my_sprintf)(char *buffer, const char* pat, ...)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9213
+{
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9214
+    va_list args;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9215
+    va_start(args, pat);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9216
+    vsprintf(buffer, pat, args);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9217
+    va_end(args);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9218
+    return strlen(buffer);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9219
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9220
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9221
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9222
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9223
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9224
+#ifdef NO_XSLOCKS
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9225
+#  ifdef dJMPENV
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9226
+#    define dXCPT             dJMPENV; int rEtV = 0
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9227
+#    define XCPT_TRY_START    JMPENV_PUSH(rEtV); if (rEtV == 0)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9228
+#    define XCPT_TRY_END      JMPENV_POP;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9229
+#    define XCPT_CATCH        if (rEtV != 0)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9230
+#    define XCPT_RETHROW      JMPENV_JUMP(rEtV)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9231
+#  else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9232
+#    define dXCPT             Sigjmp_buf oldTOP; int rEtV = 0
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9233
+#    define XCPT_TRY_START    Copy(top_env, oldTOP, 1, Sigjmp_buf); rEtV = Sigsetjmp(top_env, 1); if (rEtV == 0)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9234
+#    define XCPT_TRY_END      Copy(oldTOP, top_env, 1, Sigjmp_buf);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9235
+#    define XCPT_CATCH        if (rEtV != 0)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9236
+#    define XCPT_RETHROW      Siglongjmp(top_env, rEtV)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9237
+#  endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9238
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9239
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9240
+#if !defined(my_strlcat)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9241
+#if defined(NEED_my_strlcat)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9242
+static Size_t DPPP_(my_my_strlcat)(char * dst, const char * src, Size_t size);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9243
+static
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9244
+#else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9245
+extern Size_t DPPP_(my_my_strlcat)(char * dst, const char * src, Size_t size);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9246
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9247
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9248
+#define my_strlcat DPPP_(my_my_strlcat)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9249
+#define Perl_my_strlcat DPPP_(my_my_strlcat)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9250
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9251
+#if defined(NEED_my_strlcat) || defined(NEED_my_strlcat_GLOBAL)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9252
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9253
+Size_t
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9254
+DPPP_(my_my_strlcat)(char *dst, const char *src, Size_t size)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9255
+{
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9256
+    Size_t used, length, copy;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9257
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9258
+    used = strlen(dst);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9259
+    length = strlen(src);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9260
+    if (size > 0 && used < size - 1) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9261
+        copy = (length >= size - used) ? size - used - 1 : length;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9262
+        memcpy(dst + used, src, copy);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9263
+        dst[used + copy] = '\0';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9264
+    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9265
+    return used + length;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9266
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9267
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9268
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9269
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9270
+#if !defined(my_strlcpy)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9271
+#if defined(NEED_my_strlcpy)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9272
+static Size_t DPPP_(my_my_strlcpy)(char * dst, const char * src, Size_t size);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9273
+static
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9274
+#else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9275
+extern Size_t DPPP_(my_my_strlcpy)(char * dst, const char * src, Size_t size);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9276
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9277
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9278
+#define my_strlcpy DPPP_(my_my_strlcpy)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9279
+#define Perl_my_strlcpy DPPP_(my_my_strlcpy)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9280
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9281
+#if defined(NEED_my_strlcpy) || defined(NEED_my_strlcpy_GLOBAL)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9282
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9283
+Size_t
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9284
+DPPP_(my_my_strlcpy)(char *dst, const char *src, Size_t size)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9285
+{
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9286
+    Size_t length, copy;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9287
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9288
+    length = strlen(src);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9289
+    if (size > 0) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9290
+        copy = (length >= size) ? size - 1 : length;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9291
+        memcpy(dst, src, copy);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9292
+        dst[copy] = '\0';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9293
+    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9294
+    return length;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9295
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9296
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9297
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9298
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9299
+#ifndef PERL_PV_ESCAPE_QUOTE
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9300
+#  define PERL_PV_ESCAPE_QUOTE           0x0001
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9301
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9302
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9303
+#ifndef PERL_PV_PRETTY_QUOTE
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9304
+#  define PERL_PV_PRETTY_QUOTE           PERL_PV_ESCAPE_QUOTE
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9305
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9306
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9307
+#ifndef PERL_PV_PRETTY_ELLIPSES
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9308
+#  define PERL_PV_PRETTY_ELLIPSES        0x0002
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9309
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9310
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9311
+#ifndef PERL_PV_PRETTY_LTGT
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9312
+#  define PERL_PV_PRETTY_LTGT            0x0004
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9313
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9314
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9315
+#ifndef PERL_PV_ESCAPE_FIRSTCHAR
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9316
+#  define PERL_PV_ESCAPE_FIRSTCHAR       0x0008
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9317
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9318
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9319
+#ifndef PERL_PV_ESCAPE_UNI
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9320
+#  define PERL_PV_ESCAPE_UNI             0x0100
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9321
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9322
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9323
+#ifndef PERL_PV_ESCAPE_UNI_DETECT
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9324
+#  define PERL_PV_ESCAPE_UNI_DETECT      0x0200
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9325
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9326
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9327
+#ifndef PERL_PV_ESCAPE_ALL
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9328
+#  define PERL_PV_ESCAPE_ALL             0x1000
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9329
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9330
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9331
+#ifndef PERL_PV_ESCAPE_NOBACKSLASH
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9332
+#  define PERL_PV_ESCAPE_NOBACKSLASH     0x2000
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9333
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9334
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9335
+#ifndef PERL_PV_ESCAPE_NOCLEAR
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9336
+#  define PERL_PV_ESCAPE_NOCLEAR         0x4000
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9337
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9338
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9339
+#ifndef PERL_PV_ESCAPE_RE
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9340
+#  define PERL_PV_ESCAPE_RE              0x8000
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9341
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9342
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9343
+#ifndef PERL_PV_PRETTY_NOCLEAR
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9344
+#  define PERL_PV_PRETTY_NOCLEAR         PERL_PV_ESCAPE_NOCLEAR
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9345
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9346
+#ifndef PERL_PV_PRETTY_DUMP
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9347
+#  define PERL_PV_PRETTY_DUMP            PERL_PV_PRETTY_ELLIPSES|PERL_PV_PRETTY_QUOTE
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9348
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9349
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9350
+#ifndef PERL_PV_PRETTY_REGPROP
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9351
+#  define PERL_PV_PRETTY_REGPROP         PERL_PV_PRETTY_ELLIPSES|PERL_PV_PRETTY_LTGT|PERL_PV_ESCAPE_RE
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9352
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9353
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9354
+/* Hint: pv_escape
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9355
+ * Note that unicode functionality is only backported to
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9356
+ * those perl versions that support it. For older perl
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9357
+ * versions, the implementation will fall back to bytes.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9358
+ */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9359
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9360
+#ifndef pv_escape
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9361
+#if defined(NEED_pv_escape)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9362
+static char * DPPP_(my_pv_escape)(pTHX_ SV * dsv, char const * const str, const STRLEN count, const STRLEN max, STRLEN * const escaped, const U32 flags);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9363
+static
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9364
+#else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9365
+extern char * DPPP_(my_pv_escape)(pTHX_ SV * dsv, char const * const str, const STRLEN count, const STRLEN max, STRLEN * const escaped, const U32 flags);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9366
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9367
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9368
+#ifdef pv_escape
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9369
+#  undef pv_escape
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9370
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9371
+#define pv_escape(a,b,c,d,e,f) DPPP_(my_pv_escape)(aTHX_ a,b,c,d,e,f)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9372
+#define Perl_pv_escape DPPP_(my_pv_escape)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9373
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9374
+#if defined(NEED_pv_escape) || defined(NEED_pv_escape_GLOBAL)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9375
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9376
+char *
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9377
+DPPP_(my_pv_escape)(pTHX_ SV *dsv, char const * const str,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9378
+  const STRLEN count, const STRLEN max,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9379
+  STRLEN * const escaped, const U32 flags)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9380
+{
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9381
+    const char esc = flags & PERL_PV_ESCAPE_RE ? '%' : '\\';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9382
+    const char dq = flags & PERL_PV_ESCAPE_QUOTE ? '"' : esc;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9383
+    char octbuf[32] = "%123456789ABCDF";
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9384
+    STRLEN wrote = 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9385
+    STRLEN chsize = 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9386
+    STRLEN readsize = 1;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9387
+#if defined(is_utf8_string) && defined(utf8_to_uvchr)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9388
+    bool isuni = flags & PERL_PV_ESCAPE_UNI ? 1 : 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9389
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9390
+    const char *pv  = str;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9391
+    const char * const end = pv + count;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9392
+    octbuf[0] = esc;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9393
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9394
+    if (!(flags & PERL_PV_ESCAPE_NOCLEAR))
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9395
+        sv_setpvs(dsv, "");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9396
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9397
+#if defined(is_utf8_string) && defined(utf8_to_uvchr)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9398
+    if ((flags & PERL_PV_ESCAPE_UNI_DETECT) && is_utf8_string((U8*)pv, count))
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9399
+        isuni = 1;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9400
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9401
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9402
+    for (; pv < end && (!max || wrote < max) ; pv += readsize) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9403
+        const UV u =
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9404
+#if defined(is_utf8_string) && defined(utf8_to_uvchr)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9405
+                     isuni ? utf8_to_uvchr((U8*)pv, &readsize) :
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9406
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9407
+                             (U8)*pv;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9408
+        const U8 c = (U8)u & 0xFF;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9409
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9410
+        if (u > 255 || (flags & PERL_PV_ESCAPE_ALL)) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9411
+            if (flags & PERL_PV_ESCAPE_FIRSTCHAR)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9412
+                chsize = my_snprintf(octbuf, sizeof octbuf,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9413
+                                      "%"UVxf, u);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9414
+            else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9415
+                chsize = my_snprintf(octbuf, sizeof octbuf,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9416
+                                      "%cx{%"UVxf"}", esc, u);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9417
+        } else if (flags & PERL_PV_ESCAPE_NOBACKSLASH) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9418
+            chsize = 1;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9419
+        } else {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9420
+            if (c == dq || c == esc || !isPRINT(c)) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9421
+                chsize = 2;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9422
+                switch (c) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9423
+                case '\\' : /* fallthrough */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9424
+                case '%'  : if (c == esc)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9425
+                                octbuf[1] = esc;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9426
+                            else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9427
+                                chsize = 1;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9428
+                            break;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9429
+                case '\v' : octbuf[1] = 'v'; break;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9430
+                case '\t' : octbuf[1] = 't'; break;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9431
+                case '\r' : octbuf[1] = 'r'; break;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9432
+                case '\n' : octbuf[1] = 'n'; break;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9433
+                case '\f' : octbuf[1] = 'f'; break;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9434
+                case '"'  : if (dq == '"')
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9435
+                                octbuf[1] = '"';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9436
+                            else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9437
+                                chsize = 1;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9438
+                            break;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9439
+                default:    chsize = my_snprintf(octbuf, sizeof octbuf,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9440
+                                pv < end && isDIGIT((U8)*(pv+readsize))
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9441
+                                ? "%c%03o" : "%c%o", esc, c);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9442
+                }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9443
+            } else {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9444
+                chsize = 1;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9445
+            }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9446
+        }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9447
+        if (max && wrote + chsize > max) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9448
+            break;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9449
+        } else if (chsize > 1) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9450
+            sv_catpvn(dsv, octbuf, chsize);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9451
+            wrote += chsize;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9452
+        } else {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9453
+            char tmp[2];
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9454
+            my_snprintf(tmp, sizeof tmp, "%c", c);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9455
+            sv_catpvn(dsv, tmp, 1);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9456
+            wrote++;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9457
+        }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9458
+        if (flags & PERL_PV_ESCAPE_FIRSTCHAR)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9459
+            break;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9460
+    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9461
+    if (escaped != NULL)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9462
+        *escaped= pv - str;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9463
+    return SvPVX(dsv);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9464
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9465
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9466
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9467
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9468
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9469
+#ifndef pv_pretty
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9470
+#if defined(NEED_pv_pretty)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9471
+static char * DPPP_(my_pv_pretty)(pTHX_ SV * dsv, char const * const str, const STRLEN count, const STRLEN max, char const * const start_color, char const * const end_color, const U32 flags);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9472
+static
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9473
+#else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9474
+extern char * DPPP_(my_pv_pretty)(pTHX_ SV * dsv, char const * const str, const STRLEN count, const STRLEN max, char const * const start_color, char const * const end_color, const U32 flags);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9475
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9476
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9477
+#ifdef pv_pretty
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9478
+#  undef pv_pretty
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9479
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9480
+#define pv_pretty(a,b,c,d,e,f,g) DPPP_(my_pv_pretty)(aTHX_ a,b,c,d,e,f,g)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9481
+#define Perl_pv_pretty DPPP_(my_pv_pretty)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9482
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9483
+#if defined(NEED_pv_pretty) || defined(NEED_pv_pretty_GLOBAL)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9484
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9485
+char *
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9486
+DPPP_(my_pv_pretty)(pTHX_ SV *dsv, char const * const str, const STRLEN count,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9487
+  const STRLEN max, char const * const start_color, char const * const end_color,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9488
+  const U32 flags)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9489
+{
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9490
+    const U8 dq = (flags & PERL_PV_PRETTY_QUOTE) ? '"' : '%';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9491
+    STRLEN escaped;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9492
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9493
+    if (!(flags & PERL_PV_PRETTY_NOCLEAR))
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9494
+        sv_setpvs(dsv, "");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9495
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9496
+    if (dq == '"')
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9497
+        sv_catpvs(dsv, "\"");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9498
+    else if (flags & PERL_PV_PRETTY_LTGT)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9499
+        sv_catpvs(dsv, "<");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9500
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9501
+    if (start_color != NULL)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9502
+        sv_catpv(dsv, D_PPP_CONSTPV_ARG(start_color));
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9503
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9504
+    pv_escape(dsv, str, count, max, &escaped, flags | PERL_PV_ESCAPE_NOCLEAR);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9505
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9506
+    if (end_color != NULL)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9507
+        sv_catpv(dsv, D_PPP_CONSTPV_ARG(end_color));
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9508
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9509
+    if (dq == '"')
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9510
+        sv_catpvs(dsv, "\"");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9511
+    else if (flags & PERL_PV_PRETTY_LTGT)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9512
+        sv_catpvs(dsv, ">");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9513
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9514
+    if ((flags & PERL_PV_PRETTY_ELLIPSES) && escaped < count)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9515
+        sv_catpvs(dsv, "...");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9516
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9517
+    return SvPVX(dsv);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9518
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9519
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9520
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9521
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9522
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9523
+#ifndef pv_display
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9524
+#if defined(NEED_pv_display)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9525
+static char * DPPP_(my_pv_display)(pTHX_ SV * dsv, const char * pv, STRLEN cur, STRLEN len, STRLEN pvlim);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9526
+static
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9527
+#else
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9528
+extern char * DPPP_(my_pv_display)(pTHX_ SV * dsv, const char * pv, STRLEN cur, STRLEN len, STRLEN pvlim);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9529
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9530
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9531
+#ifdef pv_display
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9532
+#  undef pv_display
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9533
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9534
+#define pv_display(a,b,c,d,e) DPPP_(my_pv_display)(aTHX_ a,b,c,d,e)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9535
+#define Perl_pv_display DPPP_(my_pv_display)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9536
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9537
+#if defined(NEED_pv_display) || defined(NEED_pv_display_GLOBAL)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9538
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9539
+char *
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9540
+DPPP_(my_pv_display)(pTHX_ SV *dsv, const char *pv, STRLEN cur, STRLEN len, STRLEN pvlim)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9541
+{
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9542
+    pv_pretty(dsv, pv, cur, pvlim, NULL, NULL, PERL_PV_PRETTY_DUMP);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9543
+    if (len > cur && pv[cur] == '\0')
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9544
+        sv_catpvs(dsv, "\\0");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9545
+    return SvPVX(dsv);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9546
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9547
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9548
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9549
+#endif
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9550
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9551
+#endif /* _P_P_PORTABILITY_H_ */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9552
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9553
+/* End of File ppport.h */
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9554
diff -ur --new-file perl-5.16.3/dist/Data-Dumper/t/bless_var_method.t perl-5.16.3/dist/Data-Dumper/t/bless_var_method.t
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9555
--- perl-5.16.3/dist/Data-Dumper/t/bless_var_method.t	1969-12-31 19:00:00.000000000 -0500
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9556
+++ perl-5.16.3/dist/Data-Dumper/t/bless_var_method.t	2014-09-29 13:47:39.513381684 -0400
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9557
@@ -0,0 +1,86 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9558
+#!./perl -w
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9559
+# t/bless.t - Test Bless()
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9560
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9561
+BEGIN {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9562
+    if ($ENV{PERL_CORE}){
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9563
+        require Config; import Config;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9564
+        no warnings 'once';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9565
+        if ($Config{'extensions'} !~ /\bData\/Dumper\b/) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9566
+            print "1..0 # Skip: Data::Dumper was not built\n";
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9567
+            exit 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9568
+        }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9569
+    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9570
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9571
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9572
+use strict;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9573
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9574
+use Data::Dumper;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9575
+use Test::More tests =>   8;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9576
+use lib qw( ./t/lib );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9577
+use Testing qw( _dumptostr );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9578
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9579
+my %d = (
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9580
+    delta   => 'd',
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9581
+    beta    => 'b',
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9582
+    gamma   => 'c',
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9583
+    alpha   => 'a',
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9584
+);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9585
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9586
+run_tests_for_bless_var_method();
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9587
+SKIP: {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9588
+    skip "XS version was unavailable, so we already ran with pure Perl", 4
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9589
+        if $Data::Dumper::Useperl;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9590
+    local $Data::Dumper::Useperl = 1;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9591
+    run_tests_for_bless_var_method();
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9592
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9593
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9594
+sub run_tests_for_bless_var_method {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9595
+    my ($obj, %dumps, $bless, $starting);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9596
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9597
+    note("\$Data::Dumper::Bless and Bless() set to true value");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9598
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9599
+    $starting = $Data::Dumper::Bless;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9600
+    $bless = 1;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9601
+    local $Data::Dumper::Bless = $bless;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9602
+    $obj = Data::Dumper->new( [ \%d ] );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9603
+    $dumps{'ddblessone'} = _dumptostr($obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9604
+    local $Data::Dumper::Bless = $starting;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9605
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9606
+    $obj = Data::Dumper->new( [ \%d ] );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9607
+    $obj->Bless($bless);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9608
+    $dumps{'objblessone'} = _dumptostr($obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9609
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9610
+    is($dumps{'ddblessone'}, $dumps{'objblessone'},
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9611
+        "\$Data::Dumper::Bless = 1 and Bless(1) are equivalent");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9612
+    %dumps = ();
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9613
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9614
+    $bless = 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9615
+    local $Data::Dumper::Bless = $bless;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9616
+    $obj = Data::Dumper->new( [ \%d ] );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9617
+    $dumps{'ddblesszero'} = _dumptostr($obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9618
+    local $Data::Dumper::Bless = $starting;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9619
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9620
+    $obj = Data::Dumper->new( [ \%d ] );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9621
+    $obj->Bless($bless);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9622
+    $dumps{'objblesszero'} = _dumptostr($obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9623
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9624
+    is($dumps{'ddblesszero'}, $dumps{'objblesszero'},
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9625
+        "\$Data::Dumper::Bless = 0 and Bless(0) are equivalent");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9626
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9627
+    $bless = undef;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9628
+    local $Data::Dumper::Bless = $bless;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9629
+    $obj = Data::Dumper->new( [ \%d ] );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9630
+    $dumps{'ddblessundef'} = _dumptostr($obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9631
+    local $Data::Dumper::Bless = $starting;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9632
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9633
+    $obj = Data::Dumper->new( [ \%d ] );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9634
+    $obj->Bless($bless);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9635
+    $dumps{'objblessundef'} = _dumptostr($obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9636
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9637
+    is($dumps{'ddblessundef'}, $dumps{'objblessundef'},
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9638
+        "\$Data::Dumper::Bless = undef and Bless(undef) are equivalent");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9639
+    is($dumps{'ddblesszero'}, $dumps{'objblessundef'},
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9640
+        "\$Data::Dumper::Bless = undef and = 0 are equivalent");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9641
+    %dumps = ();
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9642
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9643
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9644
diff -ur --new-file perl-5.16.3/dist/Data-Dumper/t/bless.t perl-5.16.3/dist/Data-Dumper/t/bless.t
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9645
--- perl-5.16.3/dist/Data-Dumper/t/bless.t	2014-09-29 13:45:01.133512294 -0400
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9646
+++ perl-5.16.3/dist/Data-Dumper/t/bless.t	2014-09-29 13:47:39.516033156 -0400
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9647
@@ -5,16 +5,22 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9648
 # Test::More 0.60 required because:
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9649
 # - is_deeply(undef, $not_undef); now works. [rt.cpan.org 9441]
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9650
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9651
-BEGIN { plan tests => 1+5*2; }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9652
+BEGIN { plan tests => 1+2*5; }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9653
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9654
 BEGIN { use_ok('Data::Dumper') };
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9655
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9656
 # RT 39420: Data::Dumper fails to escape bless class name
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9657
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9658
-# test under XS and pure Perl version
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9659
-foreach $Data::Dumper::Useperl (0, 1) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9660
+run_tests_for_bless();
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9661
+SKIP: {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9662
+    skip "XS version was unavailable, so we already ran with pure Perl", 5
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9663
+        if $Data::Dumper::Useperl;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9664
+    local $Data::Dumper::Useperl = 1;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9665
+    run_tests_for_bless();
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9666
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9667
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9668
-#diag("\$Data::Dumper::Useperl = $Data::Dumper::Useperl");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9669
+sub run_tests_for_bless {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9670
+note("\$Data::Dumper::Useperl = $Data::Dumper::Useperl");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9671
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9672
 {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9673
 my $t = bless( {}, q{a'b} );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9674
@@ -43,8 +49,8 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9675
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9676
 my $t = bless( qr//, 'foo');
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9677
 my $dt = Dumper($t);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9678
-my $o = ($] >= 5.013006 ? <<'PERL' : <<'PERL_LEGACY');
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9679
-$VAR1 = bless( qr/(?^:)/, 'foo' );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9680
+my $o = ($] > 5.010 ? <<'PERL' : <<'PERL_LEGACY');
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9681
+$VAR1 = bless( qr//, 'foo' );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9682
 PERL
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9683
 $VAR1 = bless( qr/(?-xism:)/, 'foo' );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9684
 PERL_LEGACY
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9685
@@ -52,4 +58,5 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9686
 is($dt, $o, "We can dump blessed qr//'s properly");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9687
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9688
 }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9689
-}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9690
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9691
+} # END sub run_tests_for_bless()
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9692
diff -ur --new-file perl-5.16.3/dist/Data-Dumper/t/bugs.t perl-5.16.3/dist/Data-Dumper/t/bugs.t
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9693
--- perl-5.16.3/dist/Data-Dumper/t/bugs.t	2014-09-29 13:45:01.137564189 -0400
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9694
+++ perl-5.16.3/dist/Data-Dumper/t/bugs.t	2014-09-29 13:47:39.514746337 -0400
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9695
@@ -1,6 +1,6 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9696
 #!perl
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9697
 #
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9698
-# regression tests for old bugs that don't fit other categories
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9699
+# regression tests for old bugs that do not fit other categories
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9700
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9701
 BEGIN {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9702
     require Config; import Config;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9703
diff -ur --new-file perl-5.16.3/dist/Data-Dumper/t/deparse.t perl-5.16.3/dist/Data-Dumper/t/deparse.t
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9704
--- perl-5.16.3/dist/Data-Dumper/t/deparse.t	1969-12-31 19:00:00.000000000 -0500
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9705
+++ perl-5.16.3/dist/Data-Dumper/t/deparse.t	2014-09-29 13:47:39.518975825 -0400
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9706
@@ -0,0 +1,80 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9707
+#!./perl -w
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9708
+# t/deparse.t - Test Deparse()
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9709
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9710
+BEGIN {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9711
+    if ($ENV{PERL_CORE}){
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9712
+        require Config; import Config;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9713
+        no warnings 'once';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9714
+        if ($Config{'extensions'} !~ /\bData\/Dumper\b/) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9715
+            print "1..0 # Skip: Data::Dumper was not built\n";
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9716
+            exit 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9717
+        }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9718
+    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9719
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9720
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9721
+use strict;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9722
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9723
+use Data::Dumper;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9724
+use Test::More tests =>  8;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9725
+use lib qw( ./t/lib );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9726
+use Testing qw( _dumptostr );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9727
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9728
+# Thanks to Arthur Axel "fREW" Schmidt:
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9729
+# http://search.cpan.org/~frew/Data-Dumper-Concise-2.020/lib/Data/Dumper/Concise.pm
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9730
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9731
+note("\$Data::Dumper::Deparse and Deparse()");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9732
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9733
+{
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9734
+    my ($obj, %dumps, $deparse, $starting);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9735
+    use strict;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9736
+    my $struct = { foo => "bar\nbaz", quux => sub { "fleem" } };
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9737
+    $obj = Data::Dumper->new( [ $struct ] );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9738
+    $dumps{'noprev'} = _dumptostr($obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9739
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9740
+    $starting = $Data::Dumper::Deparse;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9741
+    local $Data::Dumper::Deparse = 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9742
+    $obj = Data::Dumper->new( [ $struct ] );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9743
+    $dumps{'dddzero'} = _dumptostr($obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9744
+    local $Data::Dumper::Deparse = $starting;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9745
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9746
+    $obj = Data::Dumper->new( [ $struct ] );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9747
+    $obj->Deparse();
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9748
+    $dumps{'objempty'} = _dumptostr($obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9749
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9750
+    $obj = Data::Dumper->new( [ $struct ] );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9751
+    $obj->Deparse(0);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9752
+    $dumps{'objzero'} = _dumptostr($obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9753
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9754
+    is($dumps{'noprev'}, $dumps{'dddzero'},
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9755
+        "No previous setting and \$Data::Dumper::Deparse = 0 are equivalent");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9756
+    is($dumps{'noprev'}, $dumps{'objempty'},
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9757
+        "No previous setting and Deparse() are equivalent");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9758
+    is($dumps{'noprev'}, $dumps{'objzero'},
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9759
+        "No previous setting and Deparse(0) are equivalent");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9760
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9761
+    local $Data::Dumper::Deparse = 1;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9762
+    $obj = Data::Dumper->new( [ $struct ] );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9763
+    $dumps{'dddtrue'} = _dumptostr($obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9764
+    local $Data::Dumper::Deparse = $starting;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9765
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9766
+    $obj = Data::Dumper->new( [ $struct ] );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9767
+    $obj->Deparse(1);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9768
+    $dumps{'objone'} = _dumptostr($obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9769
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9770
+    is($dumps{'dddtrue'}, $dumps{'objone'},
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9771
+        "\$Data::Dumper::Deparse = 1 and Deparse(1) are equivalent");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9772
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9773
+    isnt($dumps{'dddzero'}, $dumps{'dddtrue'},
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9774
+        "\$Data::Dumper::Deparse = 0 differs from \$Data::Dumper::Deparse = 1");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9775
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9776
+    like($dumps{'dddzero'},
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9777
+        qr/quux.*?sub.*?DUMMY/s,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9778
+        "\$Data::Dumper::Deparse = 0 reports DUMMY instead of deparsing coderef");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9779
+    unlike($dumps{'dddtrue'},
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9780
+        qr/quux.*?sub.*?DUMMY/s,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9781
+        "\$Data::Dumper::Deparse = 1 does not report DUMMY");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9782
+    like($dumps{'dddtrue'},
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9783
+        qr/quux.*?sub.*?use\sstrict.*?fleem/s,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9784
+        "\$Data::Dumper::Deparse = 1 deparses coderef");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9785
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9786
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9787
diff -ur --new-file perl-5.16.3/dist/Data-Dumper/t/dumper.t perl-5.16.3/dist/Data-Dumper/t/dumper.t
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9788
--- perl-5.16.3/dist/Data-Dumper/t/dumper.t	2014-09-29 13:45:01.135739234 -0400
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9789
+++ perl-5.16.3/dist/Data-Dumper/t/dumper.t	2014-09-29 13:47:39.517986236 -0400
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9790
@@ -30,44 +30,44 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9791
   my $t = eval $string;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9792
   ++$TNUM;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9793
   $t =~ s/([A-Z]+)\(0x[0-9a-f]+\)/$1(0xdeadbeef)/g
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9794
-      if ($WANT =~ /deadbeef/);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9795
+    if ($WANT =~ /deadbeef/);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9796
   if ($Is_ebcdic) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9797
-      # these data need massaging with non ascii character sets
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9798
-      # because of hashing order differences
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9799
-      $WANT = join("\n",sort(split(/\n/,$WANT)));
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9800
-      $WANT =~ s/\,$//mg;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9801
-      $t    = join("\n",sort(split(/\n/,$t)));
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9802
-      $t    =~ s/\,$//mg;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9803
+    # these data need massaging with non ascii character sets
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9804
+    # because of hashing order differences
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9805
+    $WANT = join("\n",sort(split(/\n/,$WANT)));
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9806
+    $WANT =~ s/\,$//mg;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9807
+    $t    = join("\n",sort(split(/\n/,$t)));
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9808
+    $t    =~ s/\,$//mg;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9809
   }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9810
   $name = $name ? " - $name" : '';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9811
   print( ($t eq $WANT and not $@) ? "ok $TNUM$name\n"
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9812
-	: "not ok $TNUM$name\n--Expected--\n$WANT\n--Got--\n$@$t\n");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9813
+    : "not ok $TNUM$name\n--Expected--\n$WANT\n--Got--\n$@$t\n");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9814
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9815
   ++$TNUM;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9816
   if ($Is_ebcdic) { # EBCDIC.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9817
-      if ($TNUM == 311 || $TNUM == 314) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9818
-	  eval $string;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9819
-      } else {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9820
-	  eval $t;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9821
-      }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9822
+    if ($TNUM == 311 || $TNUM == 314) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9823
+      eval $string;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9824
+    } else {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9825
+      eval $t;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9826
+    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9827
   } else {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9828
-      eval "$t";
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9829
+    eval "$t";
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9830
   }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9831
   print $@ ? "not ok $TNUM\n# \$@ says: $@\n" : "ok $TNUM\n";
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9832
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9833
   $t = eval $string;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9834
   ++$TNUM;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9835
   $t =~ s/([A-Z]+)\(0x[0-9a-f]+\)/$1(0xdeadbeef)/g
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9836
-      if ($WANT =~ /deadbeef/);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9837
+    if ($WANT =~ /deadbeef/);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9838
   if ($Is_ebcdic) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9839
-      # here too there are hashing order differences
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9840
-      $WANT = join("\n",sort(split(/\n/,$WANT)));
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9841
-      $WANT =~ s/\,$//mg;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9842
-      $t    = join("\n",sort(split(/\n/,$t)));
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9843
-      $t    =~ s/\,$//mg;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9844
+    # here too there are hashing order differences
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9845
+    $WANT = join("\n",sort(split(/\n/,$WANT)));
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9846
+    $WANT =~ s/\,$//mg;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9847
+    $t    = join("\n",sort(split(/\n/,$t)));
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9848
+    $t    =~ s/\,$//mg;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9849
   }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9850
   print( ($t eq $WANT and not $@) ? "ok $TNUM\n"
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9851
-	: "not ok $TNUM\n--Expected--\n$WANT\n--Got--\n$@$t\n");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9852
+    : "not ok $TNUM\n--Expected--\n$WANT\n--Got--\n$@$t\n");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9853
 }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9854
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9855
 sub SKIP_TEST {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9856
@@ -83,11 +83,11 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9857
 $Data::Dumper::Useperl = 1;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9858
 if (defined &Data::Dumper::Dumpxs) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9859
   print "### XS extension loaded, will run XS tests\n";
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9860
-  $TMAX = 390; $XS = 1;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9861
+  $TMAX = 438; $XS = 1;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9862
 }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9863
 else {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9864
   print "### XS extensions not loaded, will NOT run XS tests\n";
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9865
-  $TMAX = 195; $XS = 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9866
+  $TMAX = 219; $XS = 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9867
 }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9868
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9869
 print "1..$TMAX\n";
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9870
@@ -122,8 +122,20 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9871
 #$6 = $a->[1]{'c'};
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9872
 EOT
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9873
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9874
-TEST q(Data::Dumper->Dump([$a,$b,$c], [qw(a b), 6]));
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9875
-TEST q(Data::Dumper->Dumpxs([$a,$b,$c], [qw(a b), 6])) if $XS;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9876
+TEST (q(Data::Dumper->Dump([$a,$b,$c], [qw(a b), 6])),
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9877
+    'basic test with names: Dump()');
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9878
+TEST (q(Data::Dumper->Dumpxs([$a,$b,$c], [qw(a b), 6])),
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9879
+    'basic test with names: Dumpxs()')
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9880
+    if $XS;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9881
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9882
+SCOPE: {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9883
+    local $Data::Dumper::Sparseseen = 1;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9884
+    TEST (q(Data::Dumper->Dump([$a,$b,$c], [qw(a b), 6])),
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9885
+        'Sparseseen with names: Dump()');
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9886
+    TEST (q(Data::Dumper->Dumpxs([$a,$b,$c], [qw(a b), 6])),
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9887
+        'Sparseseen with names: Dumpxs()')
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9888
+        if $XS;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9889
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9890
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9891
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9892
 ############# 7
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9893
@@ -147,8 +159,20 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9894
 EOT
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9895
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9896
 $Data::Dumper::Purity = 1;         # fill in the holes for eval
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9897
-TEST q(Data::Dumper->Dump([$a, $b], [qw(*a b)])); # print as @a
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9898
-TEST q(Data::Dumper->Dumpxs([$a, $b], [qw(*a b)])) if $XS;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9899
+TEST (q(Data::Dumper->Dump([$a, $b], [qw(*a b)])),
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9900
+    'Purity: basic test with dereferenced array: Dump()'); # print as @a
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9901
+TEST (q(Data::Dumper->Dumpxs([$a, $b], [qw(*a b)])),
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9902
+    'Purity: basic test with dereferenced array: Dumpxs()')
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9903
+    if $XS;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9904
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9905
+SCOPE: {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9906
+  local $Data::Dumper::Sparseseen = 1;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9907
+  TEST (q(Data::Dumper->Dump([$a, $b], [qw(*a b)])),
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9908
+    'Purity: Sparseseen with dereferenced array: Dump()'); # print as @a
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9909
+  TEST (q(Data::Dumper->Dumpxs([$a, $b], [qw(*a b)])),
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9910
+    'Purity: Sparseseen with dereferenced array: Dumpxs()')
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9911
+    if $XS;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9912
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9913
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9914
 ############# 13
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9915
 ##
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9916
@@ -170,8 +194,11 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9917
 #$a = $b{'a'};
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9918
 EOT
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9919
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9920
-TEST q(Data::Dumper->Dump([$b, $a], [qw(*b a)])); # print as %b
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9921
-TEST q(Data::Dumper->Dumpxs([$b, $a], [qw(*b a)])) if $XS;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9922
+TEST (q(Data::Dumper->Dump([$b, $a], [qw(*b a)])),
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9923
+    'basic test with dereferenced hash: Dump()'); # print as %b
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9924
+TEST (q(Data::Dumper->Dumpxs([$b, $a], [qw(*b a)])),
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9925
+    'basic test with dereferenced hash: Dumpxs()')
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9926
+    if $XS;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9927
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9928
 ############# 19
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9929
 ##
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9930
@@ -193,17 +220,19 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9931
 EOT
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9932
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9933
 $Data::Dumper::Indent = 1;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9934
-TEST q(
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9935
+TEST (q(
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9936
        $d = Data::Dumper->new([$a,$b], [qw(a b)]);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9937
        $d->Seen({'*c' => $c});
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9938
        $d->Dump;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9939
-      );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9940
+      ),
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9941
+      'Indent: Seen: Dump()');
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9942
 if ($XS) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9943
-  TEST q(
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9944
+  TEST (q(
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9945
 	 $d = Data::Dumper->new([$a,$b], [qw(a b)]);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9946
 	 $d->Seen({'*c' => $c});
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9947
 	 $d->Dumpxs;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9948
-	);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9949
+     ),
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9950
+      'Indent: Seen: Dumpxs()');
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9951
 }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9952
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9953
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9954
@@ -230,9 +259,12 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9955
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9956
 $d->Indent(3);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9957
 $d->Purity(0)->Quotekeys(0);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9958
-TEST q( $d->Reset; $d->Dump );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9959
+TEST (q( $d->Reset; $d->Dump ),
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9960
+    'Indent(3): Purity(0)->Quotekeys(0): Dump()');
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9961
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9962
-TEST q( $d->Reset; $d->Dumpxs ) if $XS;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9963
+TEST (q( $d->Reset; $d->Dumpxs ),
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9964
+    'Indent(3): Purity(0)->Quotekeys(0): Dumpxs()')
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9965
+    if $XS;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9966
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9967
 ############# 31
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9968
 ##
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9969
@@ -253,8 +285,8 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9970
 #$VAR1->[2] = $VAR1->[1]{'c'};
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9971
 EOT
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9972
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9973
-TEST q(Dumper($a));
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9974
-TEST q(Data::Dumper::DumperX($a)) if $XS;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9975
+TEST (q(Dumper($a)), 'Dumper');
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9976
+TEST (q(Data::Dumper::DumperX($a)), 'DumperX') if $XS;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9977
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9978
 ############# 37
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9979
 ##
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9980
@@ -276,8 +308,11 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9981
   local $Data::Dumper::Purity = 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9982
   local $Data::Dumper::Quotekeys = 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9983
   local $Data::Dumper::Terse = 1;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9984
-  TEST q(Dumper($a));
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9985
-  TEST q(Data::Dumper::DumperX($a)) if $XS;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9986
+  TEST (q(Dumper($a)),
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9987
+    'Purity 0: Quotekeys 0: Terse 1: Dumper');
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9988
+  TEST (q(Data::Dumper::DumperX($a)),
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9989
+    'Purity 0: Quotekeys 0: Terse 1: DumperX')
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9990
+    if $XS;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9991
 }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9992
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9993
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9994
@@ -295,21 +330,10 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9995
        };
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9996
 {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9997
   local $Data::Dumper::Useqq = 1;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9998
-  TEST q(Dumper($foo));
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9999
+  TEST (q(Dumper($foo)), 'Useqq: Dumper');
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10000
+  TEST (q(Data::Dumper::DumperX($foo)), 'Useqq: DumperX') if $XS;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10001
 }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10002
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10003
-  $WANT = <<"EOT";
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10004
-#\$VAR1 = {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10005
-#  'abc\0\\'\efg' => 'mno\0',
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10006
-#  'reftest' => \\\\1
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10007
-#};
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10008
-EOT
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10009
-
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10010
-  {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10011
-    local $Data::Dumper::Useqq = 1;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10012
-    TEST q(Data::Dumper::DumperX($foo)) if $XS;   # cheat
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10013
-  }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10014
-
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10015
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10016
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10017
 #############
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10018
@@ -353,8 +377,11 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10019
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10020
   $Data::Dumper::Purity = 1;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10021
   $Data::Dumper::Indent = 3;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10022
-  TEST q(Data::Dumper->Dump([\\*foo, \\@foo, \\%foo], ['*foo', '*bar', '*baz']));
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10023
-  TEST q(Data::Dumper->Dumpxs([\\*foo, \\@foo, \\%foo], ['*foo', '*bar', '*baz'])) if $XS;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10024
+  TEST (q(Data::Dumper->Dump([\\*foo, \\@foo, \\%foo], ['*foo', '*bar', '*baz'])),
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10025
+    'Purity 1: Indent 3: Dump()');
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10026
+  TEST (q(Data::Dumper->Dumpxs([\\*foo, \\@foo, \\%foo], ['*foo', '*bar', '*baz'])),
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10027
+    'Purity 1: Indent 3: Dumpxs()')
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10028
+    if $XS;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10029
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10030
 ############# 55
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10031
 ##
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10032
@@ -381,8 +408,11 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10033
 EOT
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10034
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10035
   $Data::Dumper::Indent = 1;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10036
-  TEST q(Data::Dumper->Dump([\\*foo, \\@foo, \\%foo], ['foo', 'bar', 'baz']));
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10037
-  TEST q(Data::Dumper->Dumpxs([\\*foo, \\@foo, \\%foo], ['foo', 'bar', 'baz'])) if $XS;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10038
+  TEST (q(Data::Dumper->Dump([\\*foo, \\@foo, \\%foo], ['foo', 'bar', 'baz'])),
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10039
+    'Purity 1: Indent 1: Dump()');
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10040
+  TEST (q(Data::Dumper->Dumpxs([\\*foo, \\@foo, \\%foo], ['foo', 'bar', 'baz'])),
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10041
+    'Purity 1: Indent 1: Dumpxs()')
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10042
+    if $XS;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10043
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10044
 ############# 61
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10045
 ##
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10046
@@ -408,8 +438,11 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10047
 #$foo = $bar[1];
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10048
 EOT
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10049
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10050
-  TEST q(Data::Dumper->Dump([\\@foo, \\%foo, \\*foo], ['*bar', '*baz', '*foo']));
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10051
-  TEST q(Data::Dumper->Dumpxs([\\@foo, \\%foo, \\*foo], ['*bar', '*baz', '*foo'])) if $XS;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10052
+  TEST (q(Data::Dumper->Dump([\\@foo, \\%foo, \\*foo], ['*bar', '*baz', '*foo'])),
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10053
+    'array|hash|glob dereferenced: Dump()');
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10054
+  TEST (q(Data::Dumper->Dumpxs([\\@foo, \\%foo, \\*foo], ['*bar', '*baz', '*foo'])),
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10055
+    'array|hash|glob dereferenced: Dumpxs()')
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10056
+    if $XS;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10057
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10058
 ############# 67
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10059
 ##
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10060
@@ -435,8 +468,11 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10061
 #$foo = $bar->[1];
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10062
 EOT
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10063
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10064
-  TEST q(Data::Dumper->Dump([\\@foo, \\%foo, \\*foo], ['bar', 'baz', 'foo']));
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10065
-  TEST q(Data::Dumper->Dumpxs([\\@foo, \\%foo, \\*foo], ['bar', 'baz', 'foo'])) if $XS;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10066
+  TEST (q(Data::Dumper->Dump([\\@foo, \\%foo, \\*foo], ['bar', 'baz', 'foo'])),
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10067
+    'array|hash|glob: not dereferenced: Dump()');
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10068
+  TEST (q(Data::Dumper->Dumpxs([\\@foo, \\%foo, \\*foo], ['bar', 'baz', 'foo'])),
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10069
+    'array|hash|glob: not dereferenced: Dumpxs()')
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10070
+    if $XS;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10071
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10072
 ############# 73
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10073
 ##
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10074
@@ -457,8 +493,11 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10075
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10076
   $Data::Dumper::Purity = 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10077
   $Data::Dumper::Quotekeys = 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10078
-  TEST q(Data::Dumper->Dump([\\*foo, \\@foo, \\%foo], ['*foo', '*bar', '*baz']));
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10079
-  TEST q(Data::Dumper->Dumpxs([\\*foo, \\@foo, \\%foo], ['*foo', '*bar', '*baz'])) if $XS;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10080
+  TEST (q(Data::Dumper->Dump([\\*foo, \\@foo, \\%foo], ['*foo', '*bar', '*baz'])),
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10081
+    'Purity 0: Quotekeys 0: dereferenced: Dump()');
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10082
+  TEST (q(Data::Dumper->Dumpxs([\\*foo, \\@foo, \\%foo], ['*foo', '*bar', '*baz'])),
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10083
+    'Purity 0: Quotekeys 0: dereferenced: Dumpxs')
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10084
+    if $XS;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10085
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10086
 ############# 79
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10087
 ##
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10088
@@ -477,8 +516,11 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10089
 #$baz = $bar->[2];
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10090
 EOT
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10091
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10092
-  TEST q(Data::Dumper->Dump([\\*foo, \\@foo, \\%foo], ['foo', 'bar', 'baz']));
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10093
-  TEST q(Data::Dumper->Dumpxs([\\*foo, \\@foo, \\%foo], ['foo', 'bar', 'baz'])) if $XS;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10094
+  TEST (q(Data::Dumper->Dump([\\*foo, \\@foo, \\%foo], ['foo', 'bar', 'baz'])),
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10095
+    'Purity 0: Quotekeys 0: not dereferenced: Dump()');
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10096
+  TEST (q(Data::Dumper->Dumpxs([\\*foo, \\@foo, \\%foo], ['foo', 'bar', 'baz'])),
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10097
+    'Purity 0: Quotekeys 0: not dereferenced: Dumpxs()')
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10098
+    if $XS;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10099
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10100
 }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10101
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10102
@@ -494,7 +536,7 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10103
   $dogs[2] = \%kennel;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10104
   $mutts = \%kennel;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10105
   $mutts = $mutts;         # avoid warning
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10106
-  
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10107
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10108
 ############# 85
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10109
 ##
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10110
   $WANT = <<'EOT';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10111
@@ -510,19 +552,21 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10112
 #%mutts = %kennels;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10113
 EOT
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10114
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10115
-  TEST q(
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10116
+  TEST (q(
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10117
 	 $d = Data::Dumper->new([\\%kennel, \\@dogs, $mutts],
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10118
 				[qw(*kennels *dogs *mutts)] );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10119
 	 $d->Dump;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10120
-	);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10121
+	),
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10122
+    'constructor: hash|array|scalar: Dump()');
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10123
   if ($XS) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10124
-    TEST q(
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10125
+    TEST (q(
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10126
 	   $d = Data::Dumper->new([\\%kennel, \\@dogs, $mutts],
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10127
 				  [qw(*kennels *dogs *mutts)] );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10128
 	   $d->Dumpxs;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10129
-	  );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10130
+	  ),
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10131
+      'constructor: hash|array|scalar: Dumpxs()');
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10132
   }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10133
-  
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10134
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10135
 ############# 91
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10136
 ##
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10137
   $WANT = <<'EOT';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10138
@@ -531,9 +575,9 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10139
 #%mutts = %kennels;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10140
 EOT
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10141
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10142
-  TEST q($d->Dump);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10143
-  TEST q($d->Dumpxs) if $XS;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10144
-  
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10145
+  TEST q($d->Dump), 'object call: Dump';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10146
+  TEST q($d->Dumpxs), 'object call: Dumpxs' if $XS;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10147
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10148
 ############# 97
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10149
 ##
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10150
   $WANT = <<'EOT';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10151
@@ -549,10 +593,9 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10152
 #%mutts = %kennels;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10153
 EOT
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10154
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10155
-  
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10156
-  TEST q($d->Reset; $d->Dump);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10157
+  TEST q($d->Reset; $d->Dump), 'Reset and Dump separate calls';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10158
   if ($XS) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10159
-    TEST q($d->Reset; $d->Dumpxs);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10160
+    TEST (q($d->Reset; $d->Dumpxs), 'Reset and Dumpxs separate calls');
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10161
   }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10162
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10163
 ############# 103
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10164
@@ -570,24 +613,26 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10165
 #%mutts = %{$dogs[2]};
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10166
 EOT
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10167
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10168
-  TEST q(
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10169
+  TEST (q(
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10170
 	 $d = Data::Dumper->new([\\@dogs, \\%kennel, $mutts],
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10171
 				[qw(*dogs *kennels *mutts)] );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10172
 	 $d->Dump;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10173
-	);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10174
+	),
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10175
+    'constructor: array|hash|scalar: Dump()');
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10176
   if ($XS) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10177
-    TEST q(
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10178
+    TEST (q(
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10179
 	   $d = Data::Dumper->new([\\@dogs, \\%kennel, $mutts],
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10180
 				  [qw(*dogs *kennels *mutts)] );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10181
 	   $d->Dumpxs;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10182
-	  );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10183
+	  ),
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10184
+	'constructor: array|hash|scalar: Dumpxs()');
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10185
   }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10186
-  
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10187
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10188
 ############# 109
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10189
 ##
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10190
-  TEST q($d->Reset->Dump);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10191
+  TEST q($d->Reset->Dump), 'Reset Dump chained';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10192
   if ($XS) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10193
-    TEST q($d->Reset->Dumpxs);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10194
+    TEST q($d->Reset->Dumpxs), 'Reset Dumpxs chained';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10195
   }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10196
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10197
 ############# 115
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10198
@@ -607,14 +652,20 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10199
 #);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10200
 EOT
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10201
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10202
-  TEST q(
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10203
+  TEST (q(
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10204
 	 $d = Data::Dumper->new( [\@dogs, \%kennel], [qw(*dogs *kennels)] );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10205
 	 $d->Deepcopy(1)->Dump;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10206
-	);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10207
+	),
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10208
+    'Deepcopy(1): Dump');
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10209
   if ($XS) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10210
-    TEST q($d->Reset->Dumpxs);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10211
+#    TEST 'q($d->Reset->Dumpxs);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10212
+    TEST (q(
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10213
+	    $d = Data::Dumper->new( [\@dogs, \%kennel], [qw(*dogs *kennels)] );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10214
+	    $d->Deepcopy(1)->Dumpxs;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10215
+    ),
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10216
+    'Deepcopy(1): Dumpxs');
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10217
   }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10218
-  
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10219
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10220
 }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10221
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10222
 {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10223
@@ -631,8 +682,10 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10224
 #];
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10225
 EOT
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10226
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10227
-TEST q(Data::Dumper->new([\&z,$c],['a','c'])->Seen({'b' => \&z})->Dump;);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10228
-TEST q(Data::Dumper->new([\&z,$c],['a','c'])->Seen({'b' => \&z})->Dumpxs;)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10229
+TEST (q(Data::Dumper->new([\&z,$c],['a','c'])->Seen({'b' => \&z})->Dump;),
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10230
+    'Seen: scalar: Dump');
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10231
+TEST (q(Data::Dumper->new([\&z,$c],['a','c'])->Seen({'b' => \&z})->Dumpxs;),
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10232
+    'Seen: scalar: Dumpxs')
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10233
 	if $XS;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10234
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10235
 ############# 127
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10236
@@ -644,8 +697,10 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10237
 #];
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10238
 EOT
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10239
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10240
-TEST q(Data::Dumper->new([\&z,$c],['a','c'])->Seen({'*b' => \&z})->Dump;);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10241
-TEST q(Data::Dumper->new([\&z,$c],['a','c'])->Seen({'*b' => \&z})->Dumpxs;)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10242
+TEST (q(Data::Dumper->new([\&z,$c],['a','c'])->Seen({'*b' => \&z})->Dump;),
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10243
+    'Seen: glob: Dump');
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10244
+TEST (q(Data::Dumper->new([\&z,$c],['a','c'])->Seen({'*b' => \&z})->Dumpxs;),
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10245
+    'Seen: glob: Dumpxs')
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10246
 	if $XS;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10247
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10248
 ############# 133
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10249
@@ -657,8 +712,11 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10250
 #);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10251
 EOT
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10252
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10253
-TEST q(Data::Dumper->new([\&z,$c],['*a','*c'])->Seen({'*b' => \&z})->Dump;);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10254
-TEST q(Data::Dumper->new([\&z,$c],['*a','*c'])->Seen({'*b' => \&z})->Dumpxs;)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10255
+TEST (q(Data::Dumper->new([\&z,$c],['*a','*c'])->Seen({'*b' => \&z})->Dump;),
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10256
+    'Seen: glob: dereference: Dump');
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10257
+TEST (q(Data::Dumper->new([\&z,$c],['*a','*c'])->Seen({'*b' =>
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10258
+\&z})->Dumpxs;),
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10259
+    'Seen: glob: derference: Dumpxs')
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10260
 	if $XS;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10261
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10262
 }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10263
@@ -677,8 +735,10 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10264
 #$a[1] = \$a[0];
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10265
 EOT
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10266
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10267
-TEST q(Data::Dumper->new([$a],['*a'])->Purity(1)->Dump;);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10268
-TEST q(Data::Dumper->new([$a],['*a'])->Purity(1)->Dumpxs;)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10269
+TEST (q(Data::Dumper->new([$a],['*a'])->Purity(1)->Dump;),
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10270
+    'Purity(1): dereference: Dump');
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10271
+TEST (q(Data::Dumper->new([$a],['*a'])->Purity(1)->Dumpxs;),
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10272
+    'Purity(1): dereference: Dumpxs')
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10273
 	if $XS;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10274
 }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10275
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10276
@@ -693,8 +753,10 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10277
 #$b = ${${$a}};
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10278
 EOT
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10279
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10280
-TEST q(Data::Dumper->new([$a,$b],['a','b'])->Purity(1)->Dump;);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10281
-TEST q(Data::Dumper->new([$a,$b],['a','b'])->Purity(1)->Dumpxs;)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10282
+TEST (q(Data::Dumper->new([$a,$b],['a','b'])->Purity(1)->Dump;),
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10283
+    'Purity(1): not dereferenced: Dump');
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10284
+TEST (q(Data::Dumper->new([$a,$b],['a','b'])->Purity(1)->Dumpxs;),
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10285
+    'Purity(1): not dereferenced: Dumpxs')
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10286
 	if $XS;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10287
 }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10288
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10289
@@ -725,8 +787,10 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10290
 #$b = ${$a->[0]{a}};
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10291
 EOT
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10292
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10293
-TEST q(Data::Dumper->new([$a,$b],['a','b'])->Purity(1)->Dump;);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10294
-TEST q(Data::Dumper->new([$a,$b],['a','b'])->Purity(1)->Dumpxs;)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10295
+TEST (q(Data::Dumper->new([$a,$b],['a','b'])->Purity(1)->Dump;),
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10296
+    'Purity(1): Dump again');
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10297
+TEST (q(Data::Dumper->new([$a,$b],['a','b'])->Purity(1)->Dumpxs;),
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10298
+    'Purity(1); Dumpxs again')
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10299
 	if $XS;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10300
 }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10301
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10302
@@ -751,8 +815,10 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10303
 #$c = ${${$a->[0][0][0][0]}};
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10304
 EOT
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10305
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10306
-TEST q(Data::Dumper->new([$a,$b,$c],['a','b','c'])->Purity(1)->Dump;);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10307
-TEST q(Data::Dumper->new([$a,$b,$c],['a','b','c'])->Purity(1)->Dumpxs;)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10308
+TEST (q(Data::Dumper->new([$a,$b,$c],['a','b','c'])->Purity(1)->Dump;),
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10309
+    'Purity(1): Dump: 3 elements');
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10310
+TEST (q(Data::Dumper->new([$a,$b,$c],['a','b','c'])->Purity(1)->Dumpxs;),
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10311
+    'Purity(1): Dumpxs: 3 elements')
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10312
 	if $XS;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10313
 }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10314
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10315
@@ -780,8 +846,10 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10316
 #$c = $a->{b}{c};
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10317
 EOT
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10318
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10319
-TEST q(Data::Dumper->new([$a,$b,$c],['a','b','c'])->Maxdepth(4)->Dump;);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10320
-TEST q(Data::Dumper->new([$a,$b,$c],['a','b','c'])->Maxdepth(4)->Dumpxs;)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10321
+TEST (q(Data::Dumper->new([$a,$b,$c],['a','b','c'])->Maxdepth(4)->Dump;),
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10322
+    'Maxdepth(4): Dump()');
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10323
+TEST (q(Data::Dumper->new([$a,$b,$c],['a','b','c'])->Maxdepth(4)->Dumpxs;),
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10324
+    'Maxdepth(4): Dumpxs()')
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10325
 	if $XS;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10326
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10327
 ############# 169
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10328
@@ -796,8 +864,10 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10329
 #];
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10330
 EOT
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10331
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10332
-TEST q(Data::Dumper->new([$a,$b,$c],['a','b','c'])->Maxdepth(1)->Dump;);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10333
-TEST q(Data::Dumper->new([$a,$b,$c],['a','b','c'])->Maxdepth(1)->Dumpxs;)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10334
+TEST (q(Data::Dumper->new([$a,$b,$c],['a','b','c'])->Maxdepth(1)->Dump;),
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10335
+    'Maxdepth(1): Dump()');
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10336
+TEST (q(Data::Dumper->new([$a,$b,$c],['a','b','c'])->Maxdepth(1)->Dumpxs;),
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10337
+    'Maxdepth(1): Dumpxs()')
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10338
 	if $XS;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10339
 }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10340
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10341
@@ -813,8 +883,10 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10342
 #];
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10343
 EOT
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10344
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10345
-TEST q(Data::Dumper->new([$b],['b'])->Purity(0)->Dump;);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10346
-TEST q(Data::Dumper->new([$b],['b'])->Purity(0)->Dumpxs;)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10347
+TEST (q(Data::Dumper->new([$b],['b'])->Purity(0)->Dump;),
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10348
+    'Purity(0): Dump()');
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10349
+TEST (q(Data::Dumper->new([$b],['b'])->Purity(0)->Dumpxs;),
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10350
+    'Purity(0): Dumpxs()')
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10351
 	if $XS;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10352
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10353
 ############# 181
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10354
@@ -827,8 +899,10 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10355
 EOT
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10356
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10357
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10358
-TEST q(Data::Dumper->new([$b],['b'])->Purity(1)->Dump;);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10359
-TEST q(Data::Dumper->new([$b],['b'])->Purity(1)->Dumpxs;)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10360
+TEST (q(Data::Dumper->new([$b],['b'])->Purity(1)->Dump;),
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10361
+    'Purity(1): Dump()');
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10362
+TEST (q(Data::Dumper->new([$b],['b'])->Purity(1)->Dumpxs;),
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10363
+    'Purity(1): Dumpxs')
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10364
 	if $XS;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10365
 }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10366
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10367
@@ -869,8 +943,10 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10368
 #};
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10369
 EOT
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10370
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10371
-TEST q(Data::Dumper->new([$a])->Dump;);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10372
-TEST q(Data::Dumper->new([$a])->Dumpxs;)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10373
+TEST (q(Data::Dumper->new([$a])->Dump;),
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10374
+    'basic test without names: Dump()');
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10375
+TEST (q(Data::Dumper->new([$a])->Dumpxs;),
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10376
+    'basic test without names: Dumpxs()')
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10377
 	if $XS;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10378
 }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10379
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10380
@@ -899,11 +975,8 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10381
 #};
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10382
 EOT
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10383
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10384
-# perl code does keys and values as numbers if possible
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10385
-TEST q(Data::Dumper->new([$c])->Dump;);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10386
-# XS code always does them as strings
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10387
-$WANT =~ s/ (\d+)/ '$1'/gs;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10388
-TEST q(Data::Dumper->new([$c])->Dumpxs;)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10389
+TEST q(Data::Dumper->new([$c])->Dump;), "sortkeys sub";
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10390
+TEST q(Data::Dumper->new([$c])->Dumpxs;), "sortkeys sub (XS)"
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10391
 	if $XS;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10392
 }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10393
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10394
@@ -914,7 +987,7 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10395
   local $Data::Dumper::Sortkeys = \&sort205;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10396
   sub sort205 {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10397
     my $hash = shift;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10398
-    return [ 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10399
+    return [
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10400
       $hash eq $c ? (sort { $a <=> $b } keys %$hash)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10401
 		  : (reverse sort keys %$hash)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10402
     ];
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10403
@@ -949,9 +1022,10 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10404
 #];
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10405
 EOT
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10406
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10407
-TEST q(Data::Dumper->new([[$c, $d]])->Dump;);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10408
-$WANT =~ s/ (\d+)/ '$1'/gs;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10409
-TEST q(Data::Dumper->new([[$c, $d]])->Dumpxs;)
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10410
+TEST q(Data::Dumper->new([[$c, $d]])->Dump;), "more sortkeys sub";
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10411
+# the XS code does number values as strings
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10412
+$WANT =~ s/ (\d+)(,?)$/ '$1'$2/gm;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10413
+TEST q(Data::Dumper->new([[$c, $d]])->Dumpxs;), "more sortkeys sub (XS)"
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10414
 	if $XS;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10415
 }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10416
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10417
@@ -972,7 +1046,8 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10418
   if(" $Config{'extensions'} " !~ m[ B ]) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10419
     SKIP_TEST "Perl configured without B module";
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10420
   } else {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10421
-    TEST q(Data::Dumper->new([{ foo => sub { print "foo"; } }])->Dump);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10422
+    TEST (q(Data::Dumper->new([{ foo => sub { print "foo"; } }])->Dump),
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10423
+        'Deparse 1: Indent 2; Dump()');
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10424
   }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10425
 }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10426
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10427
@@ -1387,8 +1462,11 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10428
   %ping = (chr (0xDECAF) x 4  =>\$ping);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10429
   for $Data::Dumper::Sortkeys (0, 1) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10430
     if($] >= 5.007) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10431
-      TEST q(Data::Dumper->Dump([\\*ping, \\%ping], ['*ping', '*pong']));
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10432
-      TEST q(Data::Dumper->Dumpxs([\\*ping, \\%ping], ['*ping', '*pong'])) if $XS;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10433
+      TEST (q(Data::Dumper->Dump([\\*ping, \\%ping], ['*ping', '*pong'])),
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10434
+        "utf8: Purity 1: Sortkeys: Dump()");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10435
+      TEST (q(Data::Dumper->Dumpxs([\\*ping, \\%ping], ['*ping', '*pong'])),
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10436
+        "utf8: Purity 1: Sortkeys: Dumpxs()")
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10437
+        if $XS;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10438
     } else {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10439
       SKIP_TEST "Incomplete support for UTF-8 in old perls";
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10440
       SKIP_TEST "Incomplete support for UTF-8 in old perls";
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10441
@@ -1425,8 +1503,8 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10442
 EOT
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10443
     @foo = ();
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10444
     $foo[2] = 1;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10445
-    TEST q(Data::Dumper->Dump([\@foo])), 'Richard Clamp, Message-Id: <[email protected]>';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10446
-    TEST q(Data::Dumper->Dumpxs([\@foo])) if $XS;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10447
+    TEST q(Data::Dumper->Dump([\@foo])), 'Richard Clamp, Message-Id: <[email protected]>: Dump()';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10448
+    TEST q(Data::Dumper->Dumpxs([\@foo])), 'Richard Clamp, Message-Id: <[email protected]>: Dumpxs()'if $XS;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10449
 }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10450
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10451
 ############# 364
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10452
@@ -1449,8 +1527,8 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10453
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10454
   $foo = [ join "", map chr, 0..255 ];
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10455
   local $Data::Dumper::Useqq = 1;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10456
-  TEST q(Dumper($foo)), 'All latin1 characters';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10457
-  for (1..3) { print "not ok " . (++$TNUM) . " # TODO NYI\n" if $XS } # TEST q(Data::Dumper::DumperX($foo)) if $XS;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10458
+  TEST (q(Dumper($foo)), 'All latin1 characters: Dumper');
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10459
+  TEST (q(Data::Dumper::DumperX($foo)), 'All latin1 characters: DumperX') if $XS;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10460
 }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10461
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10462
 ############# 372
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10463
@@ -1468,40 +1546,49 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10464
   }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10465
   else {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10466
     TEST q(Dumper($foo)),
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10467
-	 'All latin1 characters with utf8 flag including a wide character';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10468
+	 'All latin1 characters with utf8 flag including a wide character: Dumper';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10469
   }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10470
-  for (1..3) { print "not ok " . (++$TNUM) . " # TODO NYI\n" if $XS } # TEST q(Data::Dumper::DumperX($foo)) if $XS;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10471
+  TEST (q(Data::Dumper::DumperX($foo)),
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10472
+    'All latin1 characters with utf8 flag including a wide character: DumperX')
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10473
+    if $XS;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10474
 }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10475
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10476
 ############# 378
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10477
 {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10478
   # If XS cannot load, the pure-Perl version cannot deparse vstrings with
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10479
   # underscores properly.  In 5.8.0, vstrings are just strings.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10480
-  $WANT = $] > 5.0080001 ? $XS ? <<'EOT' : <<'EOV' : <<'EOU';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10481
-#$a = \v65.66.67;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10482
-#$b = \v65.66.067;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10483
-#$c = \v65.66.6_7;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10484
-#$d = \'ABC';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10485
-EOT
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10486
-#$a = \v65.66.67;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10487
-#$b = \v65.66.67;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10488
-#$c = \v65.66.67;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10489
-#$d = \'ABC';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10490
-EOV
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10491
+  my $no_vstrings = <<'NOVSTRINGS';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10492
 #$a = \'ABC';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10493
 #$b = \'ABC';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10494
 #$c = \'ABC';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10495
 #$d = \'ABC';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10496
-EOU
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10497
+NOVSTRINGS
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10498
+  my $vstrings_corr = <<'VSTRINGS_CORRECT';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10499
+#$a = \v65.66.67;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10500
+#$b = \v65.66.067;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10501
+#$c = \v65.66.6_7;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10502
+#$d = \'ABC';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10503
+VSTRINGS_CORRECT
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10504
+  $WANT = $] <= 5.0080001
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10505
+          ? $no_vstrings
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10506
+          : $vstrings_corr;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10507
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10508
   @::_v = (
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10509
     \v65.66.67,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10510
     \($] < 5.007 ? v65.66.67 : eval 'v65.66.067'),
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10511
     \v65.66.6_7,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10512
     \~v190.189.188
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10513
   );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10514
-  TEST q(Data::Dumper->Dump(\@::_v, [qw(a b c d)])), 'vstrings';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10515
-  TEST q(Data::Dumper->Dumpxs(\@::_v, [qw(a b c d)])), 'xs vstrings'
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10516
-    if $XS;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10517
+  if ($] >= 5.010) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10518
+    TEST q(Data::Dumper->Dump(\@::_v, [qw(a b c d)])), 'vstrings';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10519
+    TEST q(Data::Dumper->Dumpxs(\@::_v, [qw(a b c d)])), 'xs vstrings'
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10520
+      if $XS;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10521
+  }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10522
+  else { # Skip tests before 5.10. vstrings considered funny before
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10523
+    SKIP_TEST "vstrings considered funny before 5.10.0";
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10524
+    SKIP_TEST "vstrings considered funny before 5.10.0 (XS)"
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10525
+      if $XS;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10526
+  }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10527
 }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10528
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10529
 ############# 384
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10530
@@ -1519,3 +1606,80 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10531
   TEST q(Data::Dumper->Dumpxs([\*finkle])), 'blessed overloaded globs (xs)'
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10532
     if $XS;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10533
 }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10534
+############# 390
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10535
+{
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10536
+  # [perl #74798] uncovered behaviour
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10537
+  $WANT = <<'EOW';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10538
+#$VAR1 = "\0000";
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10539
+EOW
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10540
+  local $Data::Dumper::Useqq = 1;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10541
+  TEST q(Data::Dumper->Dump(["\x000"])),
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10542
+    "\\ octal followed by digit";
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10543
+  TEST q(Data::Dumper->Dumpxs(["\x000"])), '\\ octal followed by digit (xs)'
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10544
+    if $XS;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10545
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10546
+  $WANT = <<'EOW';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10547
+#$VAR1 = "\x{100}\0000";
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10548
+EOW
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10549
+  local $Data::Dumper::Useqq = 1;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10550
+  TEST q(Data::Dumper->Dump(["\x{100}\x000"])),
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10551
+    "\\ octal followed by digit unicode";
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10552
+  TEST q(Data::Dumper->Dumpxs(["\x{100}\x000"])), '\\ octal followed by digit unicode (xs)'
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10553
+    if $XS;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10554
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10555
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10556
+  $WANT = <<'EOW';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10557
+#$VAR1 = "\0\x{660}";
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10558
+EOW
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10559
+  TEST q(Data::Dumper->Dump(["\\x00\\x{0660}"])),
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10560
+    "\\ octal followed by unicode digit";
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10561
+  TEST q(Data::Dumper->Dumpxs(["\\x00\\x{0660}"])), '\\ octal followed by unicode digit (xs)'
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10562
+    if $XS;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10563
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10564
+  # [perl #118933 - handling of digits
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10565
+$WANT = <<'EOW';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10566
+#$VAR1 = 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10567
+#$VAR2 = 1;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10568
+#$VAR3 = 90;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10569
+#$VAR4 = -10;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10570
+#$VAR5 = "010";
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10571
+#$VAR6 = 112345678;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10572
+#$VAR7 = "1234567890";
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10573
+EOW
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10574
+  TEST q(Data::Dumper->Dump([0, 1, 90, -10, "010", "112345678", "1234567890" ])),
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10575
+    "numbers and number-like scalars";
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10576
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10577
+  TEST q(Data::Dumper->Dumpxs([0, 1, 90, -10, "010", "112345678", "1234567890" ])),
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10578
+    "numbers and number-like scalars"
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10579
+    if $XS;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10580
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10581
+############# 426
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10582
+{
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10583
+  # [perl #82948]
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10584
+  # re::regexp_pattern was moved to universal.c in v5.10.0-252-g192c1e2
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10585
+  # and apparently backported to maint-5.10
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10586
+  $WANT = $] > 5.010 ? <<'NEW' : <<'OLD';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10587
+#$VAR1 = qr/abc/;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10588
+#$VAR2 = qr/abc/i;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10589
+NEW
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10590
+#$VAR1 = qr/(?-xism:abc)/;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10591
+#$VAR2 = qr/(?i-xsm:abc)/;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10592
+OLD
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10593
+  TEST q(Data::Dumper->Dump([ qr/abc/, qr/abc/i ])), "qr//";
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10594
+  TEST q(Data::Dumper->Dumpxs([ qr/abc/, qr/abc/i ])), "qr// xs"
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10595
+    if $XS;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10596
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10597
+############# 432
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10598
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10599
+{
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10600
+  sub foo {}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10601
+  $WANT = <<'EOW';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10602
+#*a = sub { "DUMMY" };
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10603
+#$b = \&a;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10604
+EOW
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10605
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10606
+  TEST q(Data::Dumper->new([ \&foo, \\&foo ], [ "*a", "b" ])->Dump), "name of code in *foo";
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10607
+  TEST q(Data::Dumper->new([ \&foo, \\&foo ], [ "*a", "b" ])->Dumpxs), "name of code in *foo xs"
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10608
+    if $XS;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10609
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10610
+############# 436
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10611
diff -ur --new-file perl-5.16.3/dist/Data-Dumper/t/dumpperl.t perl-5.16.3/dist/Data-Dumper/t/dumpperl.t
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10612
--- perl-5.16.3/dist/Data-Dumper/t/dumpperl.t	1969-12-31 19:00:00.000000000 -0500
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10613
+++ perl-5.16.3/dist/Data-Dumper/t/dumpperl.t	2014-09-29 13:47:39.516665981 -0400
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10614
@@ -0,0 +1,144 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10615
+#!./perl -w
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10616
+# t/dumpperl.t - test all branches of, and modes of triggering, Dumpperl()
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10617
+BEGIN {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10618
+    if ($ENV{PERL_CORE}){
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10619
+        require Config; import Config;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10620
+        no warnings 'once';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10621
+        if ($Config{'extensions'} !~ /\bData\/Dumper\b/) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10622
+            print "1..0 # Skip: Data::Dumper was not built\n";
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10623
+            exit 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10624
+        }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10625
+    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10626
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10627
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10628
+use strict;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10629
+use Carp;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10630
+use Data::Dumper;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10631
+use Test::More tests => 31;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10632
+use lib qw( ./t/lib );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10633
+use Testing qw( _dumptostr );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10634
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10635
+$Data::Dumper::Indent=1;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10636
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10637
+{
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10638
+    local $Data::Dumper::Useperl=1;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10639
+    local $Data::Dumper::Useqq=0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10640
+    local $Data::Dumper::Deparse=0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10641
+    note('$Data::Dumper::Useperl => 1');
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10642
+    run_tests_for_pure_perl_implementations();
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10643
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10644
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10645
+{
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10646
+    local $Data::Dumper::Useperl=0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10647
+    local $Data::Dumper::Useqq=1;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10648
+    local $Data::Dumper::Deparse=0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10649
+    note('$Data::Dumper::Useqq => 1');
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10650
+    run_tests_for_pure_perl_implementations();
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10651
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10652
+    
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10653
+{
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10654
+    local $Data::Dumper::Useperl=0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10655
+    local $Data::Dumper::Useqq=0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10656
+    local $Data::Dumper::Deparse=1;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10657
+    note('$Data::Dumper::Deparse => 1');
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10658
+    run_tests_for_pure_perl_implementations();
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10659
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10660
+    
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10661
+    
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10662
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10663
+sub run_tests_for_pure_perl_implementations {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10664
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10665
+    my ($a, $b, $obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10666
+    my (@names);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10667
+    my (@newnames, $objagain, %newnames);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10668
+    my $dumpstr;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10669
+    $a = 'alpha';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10670
+    $b = 'beta';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10671
+    my @c = ( qw| eta theta | );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10672
+    my %d = ( iota => 'kappa' );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10673
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10674
+    note('names not provided');
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10675
+    $obj = Data::Dumper->new([$a, $b]);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10676
+    $dumpstr = _dumptostr($obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10677
+    like($dumpstr,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10678
+        qr/\$VAR1.+alpha.+\$VAR2.+beta/s,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10679
+        "Dump: two strings"
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10680
+    );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10681
+    
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10682
+    $obj = Data::Dumper->new([$a, \@c]);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10683
+    $dumpstr = _dumptostr($obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10684
+    like($dumpstr,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10685
+        qr/\$VAR1.+alpha.+\$VAR2.+\[.+eta.+theta.+\]/s,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10686
+        "Dump: one string, one array ref"
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10687
+    );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10688
+    
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10689
+    $obj = Data::Dumper->new([$a, \%d]);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10690
+    $dumpstr = _dumptostr($obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10691
+    like($dumpstr,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10692
+        qr/\$VAR1.+alpha.+\$VAR2.+\{.+iota.+kappa.+\}/s,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10693
+        "Dump: one string, one hash ref"
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10694
+    );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10695
+    
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10696
+    $obj = Data::Dumper->new([$a, undef]);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10697
+    $dumpstr = _dumptostr($obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10698
+    like($dumpstr,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10699
+        qr/\$VAR1.+alpha.+\$VAR2.+undef/s,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10700
+        "Dump: one string, one undef"
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10701
+    );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10702
+    
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10703
+    note('names provided');
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10704
+    
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10705
+    $obj = Data::Dumper->new([$a, $b], [ qw( a b ) ]);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10706
+    $dumpstr = _dumptostr($obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10707
+    like($dumpstr,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10708
+        qr/\$a.+alpha.+\$b.+beta/s,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10709
+        "Dump: names: two strings"
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10710
+    );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10711
+    
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10712
+    $obj = Data::Dumper->new([$a, \@c], [ qw( a *c ) ]);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10713
+    $dumpstr = _dumptostr($obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10714
+    like($dumpstr,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10715
+        qr/\$a.+alpha.+\@c.+eta.+theta/s,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10716
+        "Dump: names: one string, one array ref"
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10717
+    );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10718
+    
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10719
+    $obj = Data::Dumper->new([$a, \%d], [ qw( a *d ) ]);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10720
+    $dumpstr = _dumptostr($obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10721
+    like($dumpstr,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10722
+        qr/\$a.+alpha.+\%d.+iota.+kappa/s,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10723
+        "Dump: names: one string, one hash ref"
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10724
+    );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10725
+    
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10726
+    $obj = Data::Dumper->new([$a,undef], [qw(a *c)]);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10727
+    $dumpstr = _dumptostr($obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10728
+    like($dumpstr,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10729
+        qr/\$a.+alpha.+\$c.+undef/s,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10730
+        "Dump: names: one string, one undef"
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10731
+    );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10732
+    
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10733
+    $obj = Data::Dumper->new([$a, $b], [ 'a', '']);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10734
+    $dumpstr = _dumptostr($obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10735
+    like($dumpstr,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10736
+        qr/\$a.+alpha.+\$.+beta/s,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10737
+        "Dump: names: two strings: one name empty"
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10738
+    );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10739
+    
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10740
+    $obj = Data::Dumper->new([$a, $b], [ 'a', '$foo']);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10741
+    $dumpstr = _dumptostr($obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10742
+    no warnings 'uninitialized';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10743
+    like($dumpstr,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10744
+        qr/\$a.+alpha.+\$foo.+beta/s,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10745
+        "Dump: names: two strings: one name start with '\$'"
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10746
+    );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10747
+    use warnings;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10748
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10749
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10750
+{
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10751
+    my ($obj, $dumpstr, $realtype);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10752
+    $obj = Data::Dumper->new([ {IO => *{$::{STDERR}}{IO}} ]);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10753
+    $obj->Useperl(1);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10754
+    eval { $dumpstr = _dumptostr($obj); };
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10755
+    $realtype = 'IO';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10756
+    like($@, qr/Can't handle '$realtype' type/,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10757
+        "Got expected error: pure-perl: Data-Dumper does not handle $realtype");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10758
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10759
diff -ur --new-file perl-5.16.3/dist/Data-Dumper/t/freezer_useperl.t perl-5.16.3/dist/Data-Dumper/t/freezer_useperl.t
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10760
--- perl-5.16.3/dist/Data-Dumper/t/freezer_useperl.t	1969-12-31 19:00:00.000000000 -0500
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10761
+++ perl-5.16.3/dist/Data-Dumper/t/freezer_useperl.t	2014-09-29 13:47:39.516959825 -0400
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10762
@@ -0,0 +1,106 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10763
+#!./perl -w
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10764
+#
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10765
+# test a few problems with the Freezer option, not a complete Freezer
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10766
+# test suite yet
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10767
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10768
+BEGIN {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10769
+    require Config; import Config;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10770
+    no warnings 'once';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10771
+    if ($Config{'extensions'} !~ /\bData\/Dumper\b/) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10772
+	print "1..0 # Skip: Data::Dumper was not built\n";
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10773
+	exit 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10774
+    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10775
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10776
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10777
+use strict;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10778
+use Test::More tests =>  7;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10779
+use Data::Dumper;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10780
+use lib qw( ./t/lib );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10781
+use Testing qw( _dumptostr );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10782
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10783
+local $Data::Dumper::Useperl = 1;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10784
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10785
+{
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10786
+    local $Data::Dumper::Freezer = 'freeze';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10787
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10788
+    # test for seg-fault bug when freeze() returns a non-ref
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10789
+    {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10790
+        my $foo = Test1->new("foo");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10791
+        my $dumped_foo = Dumper($foo);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10792
+        ok($dumped_foo,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10793
+           "Use of freezer sub which returns non-ref worked.");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10794
+        like($dumped_foo, qr/frozed/,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10795
+             "Dumped string has the key added by Freezer with useperl.");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10796
+        like(join(" ", Dumper($foo)), qr/\A\$VAR1 = /,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10797
+             "Dumped list doesn't begin with Freezer's return value with useperl");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10798
+    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10799
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10800
+    # test for warning when an object does not have a freeze()
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10801
+    {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10802
+        my $warned = 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10803
+        local $SIG{__WARN__} = sub { $warned++ };
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10804
+        my $bar = Test2->new("bar");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10805
+        my $dumped_bar = Dumper($bar);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10806
+        is($warned, 0, "A missing freeze() shouldn't warn.");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10807
+    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10808
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10809
+    # a freeze() which die()s should still trigger the warning
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10810
+    {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10811
+        my $warned = 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10812
+        local $SIG{__WARN__} = sub { $warned++; };
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10813
+        my $bar = Test3->new("bar");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10814
+        my $dumped_bar = Dumper($bar);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10815
+        is($warned, 1, "A freeze() which die()s should warn.");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10816
+    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10817
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10818
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10819
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10820
+{
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10821
+    my ($obj, %dumps);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10822
+    my $foo = Test1->new("foo");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10823
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10824
+    local $Data::Dumper::Freezer = '';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10825
+    $obj = Data::Dumper->new( [ $foo ] );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10826
+    $dumps{'ddfemptystr'} = _dumptostr($obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10827
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10828
+    local $Data::Dumper::Freezer = undef;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10829
+    $obj = Data::Dumper->new( [ $foo ] );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10830
+    $dumps{'ddfundef'} = _dumptostr($obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10831
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10832
+    is($dumps{'ddfundef'}, $dumps{'ddfemptystr'},
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10833
+        "\$Data::Dumper::Freezer same with empty string or undef");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10834
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10835
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10836
+{
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10837
+    my ($obj, %dumps);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10838
+    my $foo = Test1->new("foo");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10839
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10840
+    $obj = Data::Dumper->new( [ $foo ] );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10841
+    $obj->Freezer('');
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10842
+    $dumps{'objemptystr'} = _dumptostr($obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10843
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10844
+    $obj = Data::Dumper->new( [ $foo ] );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10845
+    $obj->Freezer(undef);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10846
+    $dumps{'objundef'} = _dumptostr($obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10847
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10848
+    is($dumps{'objundef'}, $dumps{'objemptystr'},
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10849
+        "Freezer() same with empty string or undef");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10850
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10851
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10852
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10853
+# a package with a freeze() which returns a non-ref
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10854
+package Test1;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10855
+sub new { bless({name => $_[1]}, $_[0]) }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10856
+sub freeze {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10857
+    my $self = shift;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10858
+    $self->{frozed} = 1;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10859
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10860
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10861
+# a package without a freeze()
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10862
+package Test2;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10863
+sub new { bless({name => $_[1]}, $_[0]) }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10864
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10865
+# a package with a freeze() which dies
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10866
+package Test3;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10867
+sub new { bless({name => $_[1]}, $_[0]) }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10868
+sub freeze { die "freeze() is broken" }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10869
diff -ur --new-file perl-5.16.3/dist/Data-Dumper/t/freezer.t perl-5.16.3/dist/Data-Dumper/t/freezer.t
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10870
--- perl-5.16.3/dist/Data-Dumper/t/freezer.t	2014-09-29 13:45:01.134371226 -0400
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10871
+++ perl-5.16.3/dist/Data-Dumper/t/freezer.t	2014-09-29 13:47:39.513065951 -0400
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10872
@@ -7,74 +7,104 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10873
     require Config; import Config;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10874
     no warnings 'once';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10875
     if ($Config{'extensions'} !~ /\bData\/Dumper\b/) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10876
-	print "1..0 # Skip: Data::Dumper was not built\n";
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10877
-	exit 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10878
+        print "1..0 # Skip: Data::Dumper was not built\n";
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10879
+        exit 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10880
     }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10881
 }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10882
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10883
 use strict;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10884
-use Test::More qw(no_plan);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10885
+use Test::More tests =>  8;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10886
 use Data::Dumper;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10887
-$Data::Dumper::Freezer = 'freeze';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10888
+use lib qw( ./t/lib );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10889
+use Testing qw( _dumptostr );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10890
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10891
-# test for seg-fault bug when freeze() returns a non-ref
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10892
-my $foo = Test1->new("foo");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10893
-my $dumped_foo = Dumper($foo);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10894
-ok($dumped_foo, 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10895
-   "Use of freezer sub which returns non-ref worked.");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10896
-like($dumped_foo, qr/frozed/, 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10897
-     "Dumped string has the key added by Freezer.");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10898
-
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10899
-# run the same tests with useperl.  this always worked
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10900
 {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10901
-    local $Data::Dumper::Useperl = 1;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10902
-    my $foo = Test1->new("foo");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10903
-    my $dumped_foo = Dumper($foo);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10904
-    ok($dumped_foo, 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10905
-       "Use of freezer sub which returns non-ref worked with useperl");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10906
-    like($dumped_foo, qr/frozed/, 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10907
-         "Dumped string has the key added by Freezer with useperl.");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10908
+    local $Data::Dumper::Freezer = 'freeze';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10909
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10910
+    # test for seg-fault bug when freeze() returns a non-ref
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10911
+    {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10912
+        my $foo = Test1->new("foo");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10913
+        my $dumped_foo = Dumper($foo);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10914
+        ok($dumped_foo,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10915
+           "Use of freezer sub which returns non-ref worked.");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10916
+        like($dumped_foo, qr/frozed/,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10917
+             "Dumped string has the key added by Freezer with useperl.");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10918
+        like(join(" ", Dumper($foo)), qr/\A\$VAR1 = /,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10919
+             "Dumped list doesn't begin with Freezer's return value with useperl");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10920
+    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10921
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10922
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10923
+    # test for warning when an object does not have a freeze()
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10924
+    {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10925
+        my $warned = 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10926
+        local $SIG{__WARN__} = sub { $warned++ };
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10927
+        my $bar = Test2->new("bar");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10928
+        my $dumped_bar = Dumper($bar);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10929
+        is($warned, 0, "A missing freeze() shouldn't warn.");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10930
+    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10931
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10932
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10933
+    # a freeze() which die()s should still trigger the warning
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10934
+    {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10935
+        my $warned = 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10936
+        local $SIG{__WARN__} = sub { $warned++; };
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10937
+        my $bar = Test3->new("bar");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10938
+        my $dumped_bar = Dumper($bar);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10939
+        is($warned, 1, "A freeze() which die()s should warn.");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10940
+    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10941
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10942
 }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10943
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10944
-# test for warning when an object doesn't have a freeze()
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10945
 {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10946
-    my $warned = 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10947
-    local $SIG{__WARN__} = sub { $warned++ };
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10948
-    my $bar = Test2->new("bar");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10949
-    my $dumped_bar = Dumper($bar);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10950
-    is($warned, 0, "A missing freeze() shouldn't warn.");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10951
-}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10952
+    my ($obj, %dumps);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10953
+    my $foo = Test1->new("foo");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10954
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10955
+    local $Data::Dumper::Freezer = 'freeze';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10956
+    $obj = Data::Dumper->new( [ $foo ] );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10957
+    $dumps{'ddftrue'} = _dumptostr($obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10958
+    local $Data::Dumper::Freezer = '';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10959
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10960
+    $obj = Data::Dumper->new( [ $foo ] );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10961
+    $obj->Freezer('freeze');
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10962
+    $dumps{'objset'} = _dumptostr($obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10963
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10964
-# run the same test with useperl, which always worked
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10965
-{
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10966
-    local $Data::Dumper::Useperl = 1;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10967
-    my $warned = 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10968
-    local $SIG{__WARN__} = sub { $warned++ };
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10969
-    my $bar = Test2->new("bar");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10970
-    my $dumped_bar = Dumper($bar);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10971
-    is($warned, 0, "A missing freeze() shouldn't warn with useperl");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10972
+    is($dumps{'ddftrue'}, $dumps{'objset'},
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10973
+        "\$Data::Dumper::Freezer and Freezer() are equivalent");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10974
 }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10975
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10976
-# a freeze() which die()s should still trigger the warning
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10977
 {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10978
-    my $warned = 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10979
-    local $SIG{__WARN__} = sub { $warned++; };
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10980
-    my $bar = Test3->new("bar");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10981
-    my $dumped_bar = Dumper($bar);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10982
-    is($warned, 1, "A freeze() which die()s should warn.");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10983
+    my ($obj, %dumps);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10984
+    my $foo = Test1->new("foo");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10985
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10986
+    local $Data::Dumper::Freezer = '';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10987
+    $obj = Data::Dumper->new( [ $foo ] );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10988
+    $dumps{'ddfemptystr'} = _dumptostr($obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10989
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10990
+    local $Data::Dumper::Freezer = undef;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10991
+    $obj = Data::Dumper->new( [ $foo ] );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10992
+    $dumps{'ddfundef'} = _dumptostr($obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10993
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10994
+    is($dumps{'ddfundef'}, $dumps{'ddfemptystr'},
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10995
+        "\$Data::Dumper::Freezer same with empty string or undef");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10996
 }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10997
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10998
-# the same should work in useperl
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10999
 {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11000
-    local $Data::Dumper::Useperl = 1;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11001
-    my $warned = 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11002
-    local $SIG{__WARN__} = sub { $warned++; };
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11003
-    my $bar = Test3->new("bar");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11004
-    my $dumped_bar = Dumper($bar);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11005
-    is($warned, 1, "A freeze() which die()s should warn with useperl.");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11006
+    my ($obj, %dumps);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11007
+    my $foo = Test1->new("foo");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11008
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11009
+    $obj = Data::Dumper->new( [ $foo ] );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11010
+    $obj->Freezer('');
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11011
+    $dumps{'objemptystr'} = _dumptostr($obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11012
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11013
+    $obj = Data::Dumper->new( [ $foo ] );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11014
+    $obj->Freezer(undef);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11015
+    $dumps{'objundef'} = _dumptostr($obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11016
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11017
+    is($dumps{'objundef'}, $dumps{'objemptystr'},
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11018
+        "Freezer() same with empty string or undef");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11019
 }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11020
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11021
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11022
 # a package with a freeze() which returns a non-ref
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11023
 package Test1;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11024
 sub new { bless({name => $_[1]}, $_[0]) }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11025
diff -ur --new-file perl-5.16.3/dist/Data-Dumper/t/indent.t perl-5.16.3/dist/Data-Dumper/t/indent.t
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11026
--- perl-5.16.3/dist/Data-Dumper/t/indent.t	1969-12-31 19:00:00.000000000 -0500
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11027
+++ perl-5.16.3/dist/Data-Dumper/t/indent.t	2014-09-29 13:47:39.521173457 -0400
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11028
@@ -0,0 +1,113 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11029
+#!./perl -w
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11030
+# t/indent.t - Test Indent()
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11031
+BEGIN {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11032
+    if ($ENV{PERL_CORE}){
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11033
+        require Config; import Config;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11034
+        no warnings 'once';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11035
+        if ($Config{'extensions'} !~ /\bData\/Dumper\b/) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11036
+            print "1..0 # Skip: Data::Dumper was not built\n";
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11037
+            exit 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11038
+        }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11039
+    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11040
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11041
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11042
+use strict;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11043
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11044
+use Data::Dumper;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11045
+use Test::More tests => 10;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11046
+use lib qw( ./t/lib );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11047
+use Testing qw( _dumptostr );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11048
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11049
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11050
+my $hash = { foo => 42 };
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11051
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11052
+my (%dumpstr);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11053
+my $dumper;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11054
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11055
+$dumper = Data::Dumper->new([$hash]);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11056
+$dumpstr{noindent} = _dumptostr($dumper);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11057
+# $VAR1 = {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11058
+#           'foo' => 42
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11059
+#         };
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11060
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11061
+$dumper = Data::Dumper->new([$hash]);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11062
+$dumper->Indent();
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11063
+$dumpstr{indent_no_arg} = _dumptostr($dumper);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11064
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11065
+$dumper = Data::Dumper->new([$hash]);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11066
+$dumper->Indent(undef);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11067
+$dumpstr{indent_undef} = _dumptostr($dumper);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11068
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11069
+$dumper = Data::Dumper->new([$hash]);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11070
+$dumper->Indent(0);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11071
+$dumpstr{indent_0} = _dumptostr($dumper);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11072
+# $VAR1 = {'foo' => 42}; # no newline
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11073
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11074
+$dumper = Data::Dumper->new([$hash]);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11075
+$dumper->Indent(1);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11076
+$dumpstr{indent_1} = _dumptostr($dumper);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11077
+# $VAR1 = {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11078
+#   'foo' => 42
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11079
+# };
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11080
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11081
+$dumper = Data::Dumper->new([$hash]);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11082
+$dumper->Indent(2);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11083
+$dumpstr{indent_2} = _dumptostr($dumper);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11084
+# $VAR1 = {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11085
+#           'foo' => 42
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11086
+#         };
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11087
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11088
+is($dumpstr{noindent}, $dumpstr{indent_no_arg},
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11089
+    "absence of Indent is same as Indent()");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11090
+is($dumpstr{noindent}, $dumpstr{indent_undef},
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11091
+    "absence of Indent is same as Indent(undef)");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11092
+isnt($dumpstr{noindent}, $dumpstr{indent_0},
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11093
+    "absence of Indent is different from Indent(0)");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11094
+isnt($dumpstr{indent_0}, $dumpstr{indent_1},
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11095
+    "Indent(0) is different from Indent(1)");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11096
+cmp_ok(length($dumpstr{indent_0}), '<=', length($dumpstr{indent_1}),
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11097
+    "Indent(0) is more compact than Indent(1)");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11098
+is($dumpstr{noindent}, $dumpstr{indent_2},
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11099
+    "absence of Indent is same as Indent(2), i.e., 2 is default");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11100
+cmp_ok(length($dumpstr{indent_1}), '<=', length($dumpstr{indent_2}),
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11101
+    "Indent(1) is more compact than Indent(2)");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11102
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11103
+my $array = [ qw| foo 42 | ];
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11104
+$dumper = Data::Dumper->new([$array]);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11105
+$dumper->Indent(2);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11106
+$dumpstr{ar_indent_2} = _dumptostr($dumper);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11107
+# $VAR1 = [
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11108
+#           'foo',
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11109
+#           '42'
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11110
+#         ];
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11111
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11112
+$dumper = Data::Dumper->new([$array]);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11113
+$dumper->Indent(3);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11114
+$dumpstr{ar_indent_3} = _dumptostr($dumper);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11115
+# $VAR1 = [
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11116
+#           #0
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11117
+#           'foo',
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11118
+#           #1
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11119
+#           '42'
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11120
+#         ];
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11121
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11122
+isnt($dumpstr{ar_indent_2}, $dumpstr{ar_indent_3},
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11123
+    "On arrays, Indent(2) is different from Indent(3)");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11124
+like($dumpstr{ar_indent_3},
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11125
+    qr/\#0.+'foo'.+\#1.+42/s,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11126
+    "Indent(3) annotates array elements with their indices"
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11127
+);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11128
+{
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11129
+    no if $] < 5.011, warnings => 'deprecated';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11130
+    is(scalar(split("\n" => $dumpstr{ar_indent_2})) + 2,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11131
+        scalar(split("\n" => $dumpstr{ar_indent_3})),
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11132
+        "Indent(3) runs 2 lines longer than Indent(2)");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11133
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11134
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11135
+__END__
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11136
+is($dumpstr{noindent}, $dumpstr{indent_0},
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11137
+    "absence of Indent is same as Indent(0)");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11138
+isnt($dumpstr{noindent}, $dumpstr{indent_1},
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11139
+    "absence of Indent is different from Indent(1)");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11140
+print STDERR $dumpstr{indent_0};
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11141
+print STDERR $dumpstr{ar_indent_3};
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11142
diff -ur --new-file perl-5.16.3/dist/Data-Dumper/t/lib/Testing.pm perl-5.16.3/dist/Data-Dumper/t/lib/Testing.pm
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11143
--- perl-5.16.3/dist/Data-Dumper/t/lib/Testing.pm	1969-12-31 19:00:00.000000000 -0500
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11144
+++ perl-5.16.3/dist/Data-Dumper/t/lib/Testing.pm	2014-09-29 13:47:39.519595298 -0400
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11145
@@ -0,0 +1,15 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11146
+package Testing;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11147
+use 5.006_001;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11148
+use strict;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11149
+use warnings;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11150
+require Exporter;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11151
+our @ISA = qw(Exporter);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11152
+our @EXPORT_OK = qw(_dumptostr);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11153
+use Carp;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11154
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11155
+sub _dumptostr {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11156
+    my ($obj) = @_;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11157
+    return join '', $obj->Dump;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11158
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11159
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11160
+1;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11161
diff -ur --new-file perl-5.16.3/dist/Data-Dumper/t/misc.t perl-5.16.3/dist/Data-Dumper/t/misc.t
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11162
--- perl-5.16.3/dist/Data-Dumper/t/misc.t	1969-12-31 19:00:00.000000000 -0500
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11163
+++ perl-5.16.3/dist/Data-Dumper/t/misc.t	2014-09-29 13:47:39.514435582 -0400
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11164
@@ -0,0 +1,209 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11165
+#!./perl -w
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11166
+# t/misc.t - Test various functionality
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11167
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11168
+BEGIN {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11169
+    if ($ENV{PERL_CORE}){
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11170
+        require Config; import Config;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11171
+        no warnings 'once';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11172
+        if ($Config{'extensions'} !~ /\bData\/Dumper\b/) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11173
+            print "1..0 # Skip: Data::Dumper was not built\n";
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11174
+            exit 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11175
+        }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11176
+    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11177
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11178
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11179
+use strict;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11180
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11181
+use Data::Dumper;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11182
+use Test::More tests => 20;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11183
+use lib qw( ./t/lib );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11184
+use Testing qw( _dumptostr );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11185
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11186
+my ($a, $b, @c, %d);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11187
+$a = 'alpha';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11188
+$b = 'beta';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11189
+@c = ( qw| gamma delta epsilon | );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11190
+%d = ( zeta => 'eta', theta => 'iota' );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11191
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11192
+note("Argument validation for new()");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11193
+{
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11194
+    local $@ = '';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11195
+    eval { my $obj = Data::Dumper->new(undef); };
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11196
+    like($@,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11197
+        qr/^Usage:\s+PACKAGE->new\(ARRAYREF,\s*\[ARRAYREF\]\)/,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11198
+        "Got error message: new() needs defined argument"
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11199
+    );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11200
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11201
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11202
+{
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11203
+    local $@ = '';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11204
+    eval { my $obj = Data::Dumper->new( { $a => $b } ); };
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11205
+    like($@,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11206
+        qr/^Usage:\s+PACKAGE->new\(ARRAYREF,\s*\[ARRAYREF\]\)/,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11207
+        "Got error message: new() needs array reference"
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11208
+    );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11209
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11210
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11211
+{
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11212
+    note("\$Data::Dumper::Useperl, Useqq, Deparse");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11213
+    my ($obj, %dumpstr);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11214
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11215
+    local $Data::Dumper::Useperl = 1;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11216
+    $obj = Data::Dumper->new( [ \@c, \%d ] );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11217
+    $dumpstr{useperl} = [ $obj->Values ];
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11218
+    local $Data::Dumper::Useperl = 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11219
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11220
+    local $Data::Dumper::Useqq = 1;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11221
+    $obj = Data::Dumper->new( [ \@c, \%d ] );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11222
+    $dumpstr{useqq} = [ $obj->Values ];
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11223
+    local $Data::Dumper::Useqq = 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11224
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11225
+    is_deeply($dumpstr{useperl}, $dumpstr{useqq},
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11226
+        "Useperl and Useqq return same");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11227
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11228
+    local $Data::Dumper::Deparse = 1;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11229
+    $obj = Data::Dumper->new( [ \@c, \%d ] );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11230
+    $dumpstr{deparse} = [ $obj->Values ];
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11231
+    local $Data::Dumper::Deparse = 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11232
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11233
+    is_deeply($dumpstr{useperl}, $dumpstr{deparse},
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11234
+        "Useperl and Deparse return same");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11235
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11236
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11237
+{
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11238
+    note("\$Data::Dumper::Pad and \$obj->Pad");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11239
+    my ($obj, %dumps, $pad);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11240
+    $obj = Data::Dumper->new([$a,$b]);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11241
+    $dumps{'noprev'} = _dumptostr($obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11242
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11243
+    $obj = Data::Dumper->new([$a,$b]);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11244
+    $obj->Pad(undef);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11245
+    $dumps{'undef'} = _dumptostr($obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11246
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11247
+    $obj = Data::Dumper->new([$a,$b]);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11248
+    $obj->Pad('');
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11249
+    $dumps{'emptystring'} = _dumptostr($obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11250
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11251
+    is($dumps{'noprev'}, $dumps{'undef'},
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11252
+        "No setting for \$Data::Dumper::Pad and Pad(undef) give same result");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11253
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11254
+    is($dumps{'noprev'}, $dumps{'emptystring'},
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11255
+        "No setting for \$Data::Dumper::Pad and Pad('') give same result");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11256
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11257
+    $pad = 'XXX: ';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11258
+    local $Data::Dumper::Pad = $pad;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11259
+    $obj = Data::Dumper->new([$a,$b]);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11260
+    $dumps{'ddp'} = _dumptostr($obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11261
+    local $Data::Dumper::Pad = '';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11262
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11263
+    $obj = Data::Dumper->new([$a,$b]);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11264
+    $obj->Pad($pad);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11265
+    $dumps{'obj'} = _dumptostr($obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11266
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11267
+    is($dumps{'ddp'}, $dumps{'obj'},
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11268
+        "\$Data::Dumper::Pad and \$obj->Pad() give same result");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11269
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11270
+    is( (grep {! /^$pad/} (split(/\n/, $dumps{'ddp'}))), 0,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11271
+        "Each line of dumped output padded as expected");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11272
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11273
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11274
+{
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11275
+    note("\$Data::Dumper::Varname and \$obj->Varname");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11276
+    my ($obj, %dumps, $varname);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11277
+    $obj = Data::Dumper->new([$a,$b]);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11278
+    $dumps{'noprev'} = _dumptostr($obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11279
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11280
+    $obj = Data::Dumper->new([$a,$b]);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11281
+    $obj->Varname(undef);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11282
+    $dumps{'undef'} = _dumptostr($obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11283
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11284
+    $obj = Data::Dumper->new([$a,$b]);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11285
+    $obj->Varname('');
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11286
+    $dumps{'emptystring'} = _dumptostr($obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11287
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11288
+    is($dumps{'noprev'}, $dumps{'undef'},
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11289
+        "No setting for \$Data::Dumper::Varname and Varname(undef) give same result");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11290
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11291
+    # Because Varname defaults to '$VAR', providing an empty argument to
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11292
+    # Varname produces a non-default result.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11293
+    isnt($dumps{'noprev'}, $dumps{'emptystring'},
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11294
+        "No setting for \$Data::Dumper::Varname and Varname('') give different results");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11295
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11296
+    $varname = 'MIMI';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11297
+    local $Data::Dumper::Varname = $varname;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11298
+    $obj = Data::Dumper->new([$a,$b]);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11299
+    $dumps{'ddv'} = _dumptostr($obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11300
+    local $Data::Dumper::Varname = undef;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11301
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11302
+    $obj = Data::Dumper->new([$a,$b]);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11303
+    $obj->Varname($varname);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11304
+    $dumps{'varname'} = _dumptostr($obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11305
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11306
+    is($dumps{'ddv'}, $dumps{'varname'},
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11307
+        "Setting for \$Data::Dumper::Varname and Varname() give same result");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11308
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11309
+    is( (grep { /^\$$varname/ } (split(/\n/, $dumps{'ddv'}))), 2,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11310
+        "All lines of dumped output use provided varname");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11311
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11312
+    is( (grep { /^\$VAR/ } (split(/\n/, $dumps{'ddv'}))), 0,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11313
+        "No lines of dumped output use default \$VAR");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11314
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11315
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11316
+{
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11317
+    note("\$Data::Dumper::Useqq and \$obj->Useqq");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11318
+    my ($obj, %dumps, $useqq);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11319
+    $obj = Data::Dumper->new([$a,$b]);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11320
+    $dumps{'noprev'} = _dumptostr($obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11321
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11322
+    $obj = Data::Dumper->new([$a,$b]);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11323
+    $obj->Useqq(undef);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11324
+    $dumps{'undef'} = _dumptostr($obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11325
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11326
+    $obj = Data::Dumper->new([$a,$b]);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11327
+    $obj->Useqq('');
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11328
+    $dumps{'emptystring'} = _dumptostr($obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11329
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11330
+    $obj = Data::Dumper->new([$a,$b]);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11331
+    $obj->Useqq(0);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11332
+    $dumps{'zero'} = _dumptostr($obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11333
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11334
+    my $current = $Data::Dumper::Useqq;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11335
+    local $Data::Dumper::Useqq = 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11336
+    $obj = Data::Dumper->new([$a,$b]);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11337
+    $dumps{'dduzero'} = _dumptostr($obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11338
+    local $Data::Dumper::Useqq = $current;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11339
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11340
+    is($dumps{'noprev'}, $dumps{'undef'},
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11341
+        "No setting for \$Data::Dumper::Useqq and Useqq(undef) give same result");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11342
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11343
+    is($dumps{'noprev'}, $dumps{'zero'},
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11344
+        "No setting for \$Data::Dumper::Useqq and Useqq(0) give same result");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11345
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11346
+    is($dumps{'noprev'}, $dumps{'emptystring'},
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11347
+        "No setting for \$Data::Dumper::Useqq and Useqq('') give same result");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11348
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11349
+    is($dumps{'noprev'}, $dumps{'dduzero'},
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11350
+        "No setting for \$Data::Dumper::Useqq and Useqq(undef) give same result");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11351
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11352
+    local $Data::Dumper::Useqq = 1;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11353
+    $obj = Data::Dumper->new([$a,$b]);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11354
+    $dumps{'ddu'} = _dumptostr($obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11355
+    local $Data::Dumper::Useqq = $current;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11356
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11357
+    $obj = Data::Dumper->new([$a,$b]);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11358
+    $obj->Useqq(1);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11359
+    $dumps{'obj'} = _dumptostr($obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11360
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11361
+    is($dumps{'ddu'}, $dumps{'obj'},
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11362
+        "\$Data::Dumper::Useqq=1 and Useqq(1) give same result");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11363
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11364
+    like($dumps{'ddu'},
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11365
+        qr/"$a".+?"$b"/s,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11366
+        "Double-quotes used around values"
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11367
+    );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11368
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11369
+    unlike($dumps{'ddu'},
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11370
+        qr/'$a'.+?'$b'/s,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11371
+        "Single-quotes not used around values"
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11372
+    );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11373
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11374
diff -ur --new-file perl-5.16.3/dist/Data-Dumper/t/names.t perl-5.16.3/dist/Data-Dumper/t/names.t
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11375
--- perl-5.16.3/dist/Data-Dumper/t/names.t	1969-12-31 19:00:00.000000000 -0500
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11376
+++ perl-5.16.3/dist/Data-Dumper/t/names.t	2014-09-29 13:47:39.515518983 -0400
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11377
@@ -0,0 +1,66 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11378
+#!./perl -w
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11379
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11380
+BEGIN {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11381
+    if ($ENV{PERL_CORE}){
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11382
+        require Config; import Config;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11383
+        no warnings 'once';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11384
+        if ($Config{'extensions'} !~ /\bData\/Dumper\b/) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11385
+            print "1..0 # Skip: Data::Dumper was not built\n";
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11386
+            exit 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11387
+        }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11388
+    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11389
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11390
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11391
+use strict;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11392
+use Carp;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11393
+use Data::Dumper;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11394
+use Test::More tests => 15;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11395
+use lib qw( ./t/lib );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11396
+use Testing qw( _dumptostr );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11397
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11398
+my ($a, $b, $obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11399
+my (@names);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11400
+my (@newnames, $objagain, %newnames);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11401
+my $dumpstr;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11402
+$a = 'alpha';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11403
+$b = 'beta';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11404
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11405
+$obj = Data::Dumper->new([$a,$b], [qw(a b)]);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11406
+@names = $obj->Names;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11407
+is_deeply(\@names, [qw(a b)], "Names() returned expected list");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11408
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11409
+@newnames = ( qw| gamma delta | );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11410
+$objagain = $obj->Names(\@newnames);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11411
+is($objagain, $obj, "Names returned same object");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11412
+is_deeply($objagain->{names}, \@newnames,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11413
+    "Able to use Names() to set names to be dumped");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11414
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11415
+$obj = Data::Dumper->new([$a,$b], [qw(a b)]);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11416
+%newnames = ( gamma => 'delta', epsilon => 'zeta' );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11417
+eval { @names = $obj->Names(\%newnames); };
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11418
+like($@, qr/Argument to Names, if provided, must be array ref/,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11419
+    "Got expected error message: bad argument to Names()");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11420
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11421
+$obj = Data::Dumper->new([$a,$b], [qw(a b)]);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11422
+@newnames = ( qw| gamma delta epsilon | );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11423
+$objagain = $obj->Names(\@newnames);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11424
+is($objagain, $obj, "Names returned same object");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11425
+is_deeply($objagain->{names}, \@newnames,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11426
+    "Able to use Names() to set names to be dumped");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11427
+$dumpstr = _dumptostr($obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11428
+like($dumpstr, qr/gamma/s, "Got first name expected");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11429
+like($dumpstr, qr/delta/s, "Got first name expected");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11430
+unlike($dumpstr, qr/epsilon/s, "Did not get name which was not expected");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11431
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11432
+$obj = Data::Dumper->new([$a,$b], [qw(a b)]);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11433
+@newnames = ( qw| gamma | );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11434
+$objagain = $obj->Names(\@newnames);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11435
+is($objagain, $obj, "Names returned same object");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11436
+is_deeply($objagain->{names}, \@newnames,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11437
+    "Able to use Names() to set names to be dumped");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11438
+$dumpstr = _dumptostr($obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11439
+like($dumpstr, qr/gamma/s, "Got name expected");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11440
+unlike($dumpstr, qr/delta/s, "Did not get name which was not expected");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11441
+unlike($dumpstr, qr/epsilon/s, "Did not get name which was not expected");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11442
+like($dumpstr, qr/\$VAR2/s, "Got default name");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11443
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11444
diff -ur --new-file perl-5.16.3/dist/Data-Dumper/t/perl-74170.t perl-5.16.3/dist/Data-Dumper/t/perl-74170.t
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11445
--- perl-5.16.3/dist/Data-Dumper/t/perl-74170.t	2014-09-29 13:45:01.140878166 -0400
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11446
+++ perl-5.16.3/dist/Data-Dumper/t/perl-74170.t	2014-09-29 13:47:39.518685932 -0400
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11447
@@ -4,20 +4,20 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11448
 # Since it’s so large, it gets its own file.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11449
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11450
 BEGIN {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11451
-    require Config; import Config;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11452
-    no warnings 'once';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11453
-    if ($Config{'extensions'} !~ /\bData\/Dumper\b/) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11454
-	print "1..0 # Skip: Data::Dumper was not built\n";
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11455
-	exit 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11456
+    if ($ENV{PERL_CORE}){
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11457
+        require Config; import Config;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11458
+        no warnings 'once';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11459
+        if ($Config{'extensions'} !~ /\bData\/Dumper\b/) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11460
+            print "1..0 # Skip: Data::Dumper was not built\n";
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11461
+            exit 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11462
+        }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11463
     }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11464
 }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11465
-
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11466
 use strict;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11467
 use Test::More tests => 1;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11468
 use Data::Dumper;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11469
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11470
-our %repos = ();
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11471
-&real_life_setup();
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11472
+our %repos = real_life_setup();
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11473
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11474
 $Data::Dumper::Indent = 1;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11475
 # A custom sort sub is necessary for reproducing the bug, as this is where
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11476
@@ -25,13 +25,14 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11477
 $Data::Dumper::Sortkeys = sub { return [ reverse sort keys %{$_[0]} ]; }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11478
     unless exists $ENV{NO_SORT_SUB};
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11479
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11480
-ok +Data::Dumper->Dumpxs([\%repos], [qw(*repos)]);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11481
+ok(Data::Dumper->Dump([\%repos], [qw(*repos)]), "RT 74170 test");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11482
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11483
 sub real_life_setup {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11484
     # set up the %repos hash in a manner that reflects a real run of
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11485
-    # gitolite's "compiler" script:
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11486
+    # the gitolite "compiler" script:
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11487
     # Yes, all this is necessary to get the stack in such a state that the
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11488
     # custom sort sub will trigger a reallocation.
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11489
+    my %repos;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11490
     push @{ $repos{''}{'@all'} }, ();
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11491
     push @{ $repos{''}{'guser86'} }, ();
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11492
     push @{ $repos{''}{'guser87'} }, ();
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11493
@@ -140,4 +141,5 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11494
     $repos{''}{R}{'user8'} = 1;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11495
     $repos{''}{W}{'user8'} = 1;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11496
     push @{ $repos{''}{'user8'} }, ();
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11497
+    return %repos;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11498
 }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11499
diff -ur --new-file perl-5.16.3/dist/Data-Dumper/t/purity_deepcopy_maxdepth.t perl-5.16.3/dist/Data-Dumper/t/purity_deepcopy_maxdepth.t
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11500
--- perl-5.16.3/dist/Data-Dumper/t/purity_deepcopy_maxdepth.t	1969-12-31 19:00:00.000000000 -0500
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11501
+++ perl-5.16.3/dist/Data-Dumper/t/purity_deepcopy_maxdepth.t	2014-09-29 13:47:39.514118511 -0400
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11502
@@ -0,0 +1,418 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11503
+#!./perl -w
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11504
+# t/purity_deepcopy_maxdepth.t - Test Purity(), Deepcopy(),
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11505
+# Maxdepth() and recursive structures
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11506
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11507
+BEGIN {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11508
+    if ($ENV{PERL_CORE}){
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11509
+        require Config; import Config;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11510
+        no warnings 'once';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11511
+        if ($Config{'extensions'} !~ /\bData\/Dumper\b/) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11512
+            print "1..0 # Skip: Data::Dumper was not built\n";
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11513
+            exit 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11514
+        }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11515
+    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11516
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11517
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11518
+use strict;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11519
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11520
+use Data::Dumper;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11521
+use Test::More tests => 24;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11522
+use lib qw( ./t/lib );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11523
+use Testing qw( _dumptostr );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11524
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11525
+my ($a, $b, $c, @d);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11526
+my ($d, $e, $f);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11527
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11528
+note("\$Data::Dumper::Purity and Purity()");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11529
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11530
+{
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11531
+    my ($obj, %dumps, $purity);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11532
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11533
+    # Adapted from example in Dumper.pm POD:
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11534
+    @d = ('c');
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11535
+    $c = \@d;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11536
+    $b = {};
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11537
+    $a = [1, $b, $c];
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11538
+    $b->{a} = $a;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11539
+    $b->{b} = $a->[1];
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11540
+    $b->{c} = $a->[2];
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11541
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11542
+    $obj = Data::Dumper->new([$a,$b,$c], [qw(a b c)]);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11543
+    $dumps{'noprev'} = _dumptostr($obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11544
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11545
+    note("Discrepancy between Dumpxs() and Dumpperl() behavior with respect to \$Data::Dumper::Purity = undef");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11546
+    local $Data::Dumper::Useperl = 1;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11547
+    $purity = undef;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11548
+    local $Data::Dumper::Purity = $purity;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11549
+    $obj = Data::Dumper->new([$a,$b,$c], [qw(a b c)]);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11550
+    $dumps{'ddpundef'} = _dumptostr($obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11551
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11552
+    $purity = 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11553
+    local $Data::Dumper::Purity = $purity;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11554
+    $obj = Data::Dumper->new([$a,$b,$c], [qw(a b c)]);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11555
+    $dumps{'ddpzero'} = _dumptostr($obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11556
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11557
+    is($dumps{'noprev'}, $dumps{'ddpundef'},
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11558
+        "No previous Purity setting equivalent to \$Data::Dumper::Purity = undef");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11559
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11560
+    is($dumps{'noprev'}, $dumps{'ddpzero'},
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11561
+        "No previous Purity setting equivalent to \$Data::Dumper::Purity = 0");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11562
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11563
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11564
+{
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11565
+    my ($obj, %dumps, $purity);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11566
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11567
+    @d = ('c');
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11568
+    $c = \@d;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11569
+    $b = {};
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11570
+    $a = [1, $b, $c];
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11571
+    $b->{a} = $a;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11572
+    $b->{b} = $a->[1];
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11573
+    $b->{c} = $a->[2];
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11574
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11575
+    $obj = Data::Dumper->new([$a,$b,$c], [qw(a b c)]);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11576
+    $dumps{'noprev'} = _dumptostr($obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11577
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11578
+    $purity = 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11579
+    $obj = Data::Dumper->new([$a,$b,$c], [qw(a b c)]);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11580
+    $obj->Purity($purity);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11581
+    $dumps{'objzero'} = _dumptostr($obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11582
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11583
+    is($dumps{'noprev'}, $dumps{'objzero'},
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11584
+        "No previous Purity setting equivalent to Purity(0)");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11585
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11586
+    $purity = undef;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11587
+    $obj = Data::Dumper->new([$a,$b,$c], [qw(a b c)]);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11588
+    $obj->Purity($purity);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11589
+   $dumps{'objundef'} = _dumptostr($obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11590
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11591
+    is($dumps{'noprev'}, $dumps{'objundef'},
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11592
+        "No previous Purity setting equivalent to Purity(undef)");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11593
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11594
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11595
+{
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11596
+    my ($obj, %dumps, $purity);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11597
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11598
+    @d = ('c');
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11599
+    $c = \@d;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11600
+    $b = {};
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11601
+    $a = [1, $b, $c];
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11602
+    $b->{a} = $a;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11603
+    $b->{b} = $a->[1];
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11604
+    $b->{c} = $a->[2];
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11605
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11606
+    $obj = Data::Dumper->new([$a,$b,$c], [qw(a b c)]);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11607
+    $dumps{'noprev'} = _dumptostr($obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11608
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11609
+    $purity = 1;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11610
+    local $Data::Dumper::Purity = $purity;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11611
+    $obj = Data::Dumper->new([$a,$b,$c], [qw(a b c)]);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11612
+    $dumps{'ddpone'} = _dumptostr($obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11613
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11614
+    isnt($dumps{'noprev'}, $dumps{'ddpone'},
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11615
+        "No previous Purity setting different from \$Data::Dumper::Purity = 1");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11616
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11617
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11618
+{
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11619
+    my ($obj, %dumps, $purity);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11620
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11621
+    @d = ('c');
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11622
+    $c = \@d;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11623
+    $b = {};
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11624
+    $a = [1, $b, $c];
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11625
+    $b->{a} = $a;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11626
+    $b->{b} = $a->[1];
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11627
+    $b->{c} = $a->[2];
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11628
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11629
+    $obj = Data::Dumper->new([$a,$b,$c], [qw(a b c)]);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11630
+    $dumps{'noprev'} = _dumptostr($obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11631
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11632
+    $purity = 1;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11633
+    $obj = Data::Dumper->new([$a,$b,$c], [qw(a b c)]);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11634
+    $obj->Purity(1);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11635
+    $dumps{'objone'} = _dumptostr($obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11636
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11637
+    isnt($dumps{'noprev'}, $dumps{'objone'},
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11638
+        "No previous Purity setting different from Purity(0)");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11639
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11640
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11641
+{
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11642
+    my ($obj, %dumps, $purity);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11643
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11644
+    @d = ('c');
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11645
+    $c = \@d;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11646
+    $b = {};
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11647
+    $a = [1, $b, $c];
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11648
+    $b->{a} = $a;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11649
+    $b->{b} = $a->[1];
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11650
+    $b->{c} = $a->[2];
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11651
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11652
+    $purity = 1;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11653
+    local $Data::Dumper::Purity = $purity;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11654
+    $obj = Data::Dumper->new([$a,$b,$c], [qw(a b c)]);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11655
+    $dumps{'ddpone'} = _dumptostr($obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11656
+    local $Data::Dumper::Purity = undef;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11657
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11658
+    $obj = Data::Dumper->new([$a,$b,$c], [qw(a b c)]);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11659
+    $obj->Purity(1);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11660
+    $dumps{'objone'} = _dumptostr($obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11661
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11662
+    is($dumps{'ddpone'}, $dumps{'objone'},
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11663
+        "\$Data::Dumper::Purity = 1 and Purity(1) are equivalent");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11664
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11665
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11666
+note("\$Data::Dumper::Deepcopy and Deepcopy()");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11667
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11668
+{
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11669
+    my ($obj, %dumps, $deepcopy);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11670
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11671
+    # Adapted from example in Dumper.pm POD:
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11672
+    @d = ('c');
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11673
+    $c = \@d;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11674
+    $b = {};
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11675
+    $a = [1, $b, $c];
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11676
+    $b->{a} = $a;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11677
+    $b->{b} = $a->[1];
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11678
+    $b->{c} = $a->[2];
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11679
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11680
+    $obj = Data::Dumper->new([$a,$b,$c], [qw(a b c)]);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11681
+    $dumps{'noprev'} = _dumptostr($obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11682
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11683
+    $deepcopy = undef;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11684
+    local $Data::Dumper::Deepcopy = $deepcopy;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11685
+    $obj = Data::Dumper->new([$a,$b,$c], [qw(a b c)]);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11686
+    $dumps{'dddundef'} = _dumptostr($obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11687
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11688
+    $deepcopy = 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11689
+    local $Data::Dumper::Deepcopy = $deepcopy;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11690
+    $obj = Data::Dumper->new([$a,$b,$c], [qw(a b c)]);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11691
+    $dumps{'dddzero'} = _dumptostr($obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11692
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11693
+    is($dumps{'noprev'}, $dumps{'dddundef'},
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11694
+        "No previous Deepcopy setting equivalent to \$Data::Dumper::Deepcopy = undef");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11695
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11696
+    is($dumps{'noprev'}, $dumps{'dddzero'},
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11697
+        "No previous Deepcopy setting equivalent to \$Data::Dumper::Deepcopy = 0");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11698
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11699
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11700
+{
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11701
+    my ($obj, %dumps, $deepcopy);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11702
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11703
+    @d = ('c');
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11704
+    $c = \@d;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11705
+    $b = {};
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11706
+    $a = [1, $b, $c];
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11707
+    $b->{a} = $a;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11708
+    $b->{b} = $a->[1];
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11709
+    $b->{c} = $a->[2];
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11710
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11711
+    $obj = Data::Dumper->new([$a,$b,$c], [qw(a b c)]);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11712
+    $dumps{'noprev'} = _dumptostr($obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11713
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11714
+    $deepcopy = 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11715
+    $obj = Data::Dumper->new([$a,$b,$c], [qw(a b c)]);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11716
+    $obj->Deepcopy($deepcopy);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11717
+    $dumps{'objzero'} = _dumptostr($obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11718
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11719
+    is($dumps{'noprev'}, $dumps{'objzero'},
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11720
+        "No previous Deepcopy setting equivalent to Deepcopy(0)");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11721
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11722
+    $deepcopy = undef;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11723
+    $obj = Data::Dumper->new([$a,$b,$c], [qw(a b c)]);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11724
+    $obj->Deepcopy($deepcopy);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11725
+    $dumps{'objundef'} = _dumptostr($obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11726
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11727
+    is($dumps{'noprev'}, $dumps{'objundef'},
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11728
+        "No previous Deepcopy setting equivalent to Deepcopy(undef)");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11729
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11730
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11731
+{
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11732
+    my ($obj, %dumps, $deepcopy);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11733
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11734
+    @d = ('c');
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11735
+    $c = \@d;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11736
+    $b = {};
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11737
+    $a = [1, $b, $c];
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11738
+    $b->{a} = $a;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11739
+    $b->{b} = $a->[1];
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11740
+    $b->{c} = $a->[2];
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11741
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11742
+    $obj = Data::Dumper->new([$a,$b,$c], [qw(a b c)]);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11743
+    $dumps{'noprev'} = _dumptostr($obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11744
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11745
+    $deepcopy = 1;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11746
+    local $Data::Dumper::Deepcopy = $deepcopy;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11747
+    $obj = Data::Dumper->new([$a,$b,$c], [qw(a b c)]);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11748
+    $dumps{'dddone'} = _dumptostr($obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11749
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11750
+    isnt($dumps{'noprev'}, $dumps{'dddone'},
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11751
+        "No previous Deepcopy setting different from \$Data::Dumper::Deepcopy = 1");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11752
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11753
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11754
+{
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11755
+    my ($obj, %dumps, $deepcopy);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11756
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11757
+    @d = ('c');
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11758
+    $c = \@d;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11759
+    $b = {};
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11760
+    $a = [1, $b, $c];
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11761
+    $b->{a} = $a;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11762
+    $b->{b} = $a->[1];
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11763
+    $b->{c} = $a->[2];
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11764
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11765
+    $obj = Data::Dumper->new([$a,$b,$c], [qw(a b c)]);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11766
+    $dumps{'noprev'} = _dumptostr($obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11767
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11768
+    $deepcopy = 1;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11769
+    $obj = Data::Dumper->new([$a,$b,$c], [qw(a b c)]);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11770
+    $obj->Deepcopy(1);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11771
+    $dumps{'objone'} = _dumptostr($obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11772
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11773
+    isnt($dumps{'noprev'}, $dumps{'objone'},
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11774
+        "No previous Deepcopy setting different from Deepcopy(0)");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11775
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11776
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11777
+{
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11778
+    my ($obj, %dumps, $deepcopy);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11779
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11780
+    @d = ('c');
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11781
+    $c = \@d;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11782
+    $b = {};
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11783
+    $a = [1, $b, $c];
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11784
+    $b->{a} = $a;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11785
+    $b->{b} = $a->[1];
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11786
+    $b->{c} = $a->[2];
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11787
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11788
+    $deepcopy = 1;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11789
+    local $Data::Dumper::Deepcopy = $deepcopy;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11790
+    $obj = Data::Dumper->new([$a,$b,$c], [qw(a b c)]);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11791
+    $dumps{'dddone'} = _dumptostr($obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11792
+    local $Data::Dumper::Deepcopy = undef;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11793
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11794
+    $obj = Data::Dumper->new([$a,$b,$c], [qw(a b c)]);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11795
+    $obj->Deepcopy(1);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11796
+    $dumps{'objone'} = _dumptostr($obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11797
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11798
+    is($dumps{'dddone'}, $dumps{'objone'},
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11799
+        "\$Data::Dumper::Deepcopy = 1 and Deepcopy(1) are equivalent");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11800
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11801
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11802
+note("\$Data::Dumper::Maxdepth and Maxdepth()");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11803
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11804
+{
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11805
+    # Adapted from Dumper.pm POD
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11806
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11807
+    my ($obj, %dumps, $maxdepth);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11808
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11809
+    $a = "pearl";
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11810
+    $b = [ $a ];
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11811
+    $c = { 'b' => $b };
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11812
+    $d = [ $c ];
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11813
+    $e = { 'd' => $d };
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11814
+    $f = { 'e' => $e };
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11815
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11816
+    note("Discrepancy between Dumpxs() and Dumpperl() behavior with respect to \$Data::Dumper::Maxdepth = undef");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11817
+    local $Data::Dumper::Useperl = 1;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11818
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11819
+    $obj = Data::Dumper->new([$f], [qw(f)]);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11820
+    $dumps{'noprev'} = _dumptostr($obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11821
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11822
+    $Data::Dumper::Maxdepth = undef;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11823
+    $obj = Data::Dumper->new([$f], [qw(f)]);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11824
+    $dumps{'ddmundef'} = _dumptostr($obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11825
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11826
+    $maxdepth = 3;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11827
+    local $Data::Dumper::Maxdepth = $maxdepth;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11828
+    $obj = Data::Dumper->new([$f], [qw(f)]);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11829
+    $dumps{'ddm'} = _dumptostr($obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11830
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11831
+    is($dumps{'noprev'}, $dumps{'ddmundef'},
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11832
+        "No previous Maxdepth setting equivalent to \$Data::Dumper::Maxdepth = undef");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11833
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11834
+    like($dumps{'noprev'}, qr/$a/s,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11835
+        "Without Maxdepth, got output from deepest level");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11836
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11837
+    isnt($dumps{'noprev'}, $dumps{'ddm'},
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11838
+        "No previous Maxdepth setting differs from setting a shallow Maxdepth");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11839
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11840
+    unlike($dumps{'ddm'}, qr/$a/s,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11841
+        "With Maxdepth, did not get output from deepest level");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11842
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11843
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11844
+{
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11845
+    # Adapted from Dumper.pm POD
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11846
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11847
+    my ($obj, %dumps, $maxdepth);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11848
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11849
+    $a = "pearl";
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11850
+    $b = [ $a ];
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11851
+    $c = { 'b' => $b };
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11852
+    $d = [ $c ];
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11853
+    $e = { 'd' => $d };
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11854
+    $f = { 'e' => $e };
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11855
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11856
+    note("Discrepancy between Dumpxs() and Dumpperl() behavior with respect to \$Data::Dumper::Maxdepth = undef");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11857
+    local $Data::Dumper::Useperl = 1;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11858
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11859
+    $obj = Data::Dumper->new([$f], [qw(f)]);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11860
+    $dumps{'noprev'} = _dumptostr($obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11861
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11862
+    $obj = Data::Dumper->new([$f], [qw(f)]);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11863
+    $obj->Maxdepth();
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11864
+    $dumps{'maxdepthempty'} = _dumptostr($obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11865
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11866
+    is($dumps{'noprev'}, $dumps{'maxdepthempty'},
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11867
+        "No previous Maxdepth setting equivalent to Maxdepth() with no argument");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11868
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11869
+    $obj = Data::Dumper->new([$f], [qw(f)]);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11870
+    $obj->Maxdepth(undef);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11871
+    $dumps{'maxdepthundef'} = _dumptostr($obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11872
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11873
+    is($dumps{'noprev'}, $dumps{'maxdepthundef'},
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11874
+        "No previous Maxdepth setting equivalent to Maxdepth(undef)");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11875
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11876
+    $maxdepth = 3;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11877
+    $obj = Data::Dumper->new([$f], [qw(f)]);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11878
+    $obj->Maxdepth($maxdepth);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11879
+    $dumps{'maxdepthset'} = _dumptostr($obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11880
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11881
+    isnt($dumps{'noprev'}, $dumps{'maxdepthset'},
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11882
+        "No previous Maxdepth setting differs from Maxdepth() with shallow depth");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11883
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11884
+    local $Data::Dumper::Maxdepth = 3;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11885
+    $obj = Data::Dumper->new([$f], [qw(f)]);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11886
+    $dumps{'ddmset'} = _dumptostr($obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11887
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11888
+    is($dumps{'maxdepthset'}, $dumps{'ddmset'},
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11889
+        "Maxdepth set and \$Data::Dumper::Maxdepth are equivalent");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11890
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11891
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11892
+{
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11893
+    my ($obj, %dumps);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11894
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11895
+    my $warning = '';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11896
+    local $SIG{__WARN__} = sub { $warning = $_[0] };
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11897
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11898
+    local $Data::Dumper::Deparse = 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11899
+    local $Data::Dumper::Purity  = 1;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11900
+    local $Data::Dumper::Useperl = 1;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11901
+    sub hello { print "Hello world\n"; }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11902
+    $obj = Data::Dumper->new( [ \&hello ] );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11903
+    $dumps{'ddsksub'} = _dumptostr($obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11904
+    like($warning, qr/^Encountered CODE ref, using dummy placeholder/,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11905
+        "Got expected warning: dummy placeholder under Purity = 1");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11906
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11907
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11908
+{
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11909
+    my ($obj, %dumps);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11910
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11911
+    my $warning = '';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11912
+    local $SIG{__WARN__} = sub { $warning = $_[0] };
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11913
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11914
+    local $Data::Dumper::Deparse = 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11915
+    local $Data::Dumper::Useperl = 1;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11916
+    sub jello { print "Jello world\n"; }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11917
+    $obj = Data::Dumper->new( [ \&hello ] );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11918
+    $dumps{'ddsksub'} = _dumptostr($obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11919
+    ok(! $warning, "Encountered CODE ref, but no Purity, hence no warning");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11920
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11921
diff -ur --new-file perl-5.16.3/dist/Data-Dumper/t/quotekeys.t perl-5.16.3/dist/Data-Dumper/t/quotekeys.t
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11922
--- perl-5.16.3/dist/Data-Dumper/t/quotekeys.t	1969-12-31 19:00:00.000000000 -0500
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11923
+++ perl-5.16.3/dist/Data-Dumper/t/quotekeys.t	2014-09-29 13:47:39.520312169 -0400
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11924
@@ -0,0 +1,135 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11925
+#!./perl -w
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11926
+# t/quotekeys.t - Test Quotekeys()
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11927
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11928
+BEGIN {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11929
+    if ($ENV{PERL_CORE}){
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11930
+        require Config; import Config;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11931
+        no warnings 'once';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11932
+        if ($Config{'extensions'} !~ /\bData\/Dumper\b/) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11933
+            print "1..0 # Skip: Data::Dumper was not built\n";
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11934
+            exit 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11935
+        }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11936
+    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11937
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11938
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11939
+use strict;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11940
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11941
+use Data::Dumper;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11942
+use Test::More tests => 18;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11943
+use lib qw( ./t/lib );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11944
+use Testing qw( _dumptostr );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11945
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11946
+my %d = (
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11947
+    delta   => 'd',
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11948
+    beta    => 'b',
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11949
+    gamma   => 'c',
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11950
+    alpha   => 'a',
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11951
+);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11952
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11953
+run_tests_for_quotekeys();
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11954
+SKIP: {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11955
+    skip "XS version was unavailable, so we already ran with pure Perl", 5
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11956
+        if $Data::Dumper::Useperl;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11957
+    local $Data::Dumper::Useperl = 1;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11958
+    run_tests_for_quotekeys();
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11959
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11960
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11961
+sub run_tests_for_quotekeys {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11962
+    note("\$Data::Dumper::Useperl = $Data::Dumper::Useperl");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11963
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11964
+    my ($obj, %dumps, $quotekeys, $starting);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11965
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11966
+    note("\$Data::Dumper::Quotekeys and Quotekeys() set to true value");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11967
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11968
+    $obj = Data::Dumper->new( [ \%d ] );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11969
+    $dumps{'ddqkdefault'} = _dumptostr($obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11970
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11971
+    $starting = $Data::Dumper::Quotekeys;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11972
+    $quotekeys = 1;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11973
+    local $Data::Dumper::Quotekeys = $quotekeys;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11974
+    $obj = Data::Dumper->new( [ \%d ] );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11975
+    $dumps{'ddqkone'} = _dumptostr($obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11976
+    local $Data::Dumper::Quotekeys = $starting;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11977
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11978
+    $obj = Data::Dumper->new( [ \%d ] );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11979
+    $obj->Quotekeys($quotekeys);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11980
+    $dumps{'objqkone'} = _dumptostr($obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11981
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11982
+    is($dumps{'ddqkdefault'}, $dumps{'ddqkone'},
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11983
+        "\$Data::Dumper::Quotekeys = 1 is default");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11984
+    is($dumps{'ddqkone'}, $dumps{'objqkone'},
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11985
+        "\$Data::Dumper::Quotekeys = 1 and Quotekeys(1) are equivalent");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11986
+    %dumps = ();
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11987
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11988
+    $quotekeys = 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11989
+    local $Data::Dumper::Quotekeys = $quotekeys;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11990
+    $obj = Data::Dumper->new( [ \%d ] );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11991
+    $dumps{'ddqkzero'} = _dumptostr($obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11992
+    local $Data::Dumper::Quotekeys = $starting;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11993
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11994
+    $obj = Data::Dumper->new( [ \%d ] );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11995
+    $obj->Quotekeys($quotekeys);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11996
+    $dumps{'objqkzero'} = _dumptostr($obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11997
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11998
+    is($dumps{'ddqkzero'}, $dumps{'objqkzero'},
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11999
+        "\$Data::Dumper::Quotekeys = 0 and Quotekeys(0) are equivalent");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12000
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12001
+    $quotekeys = undef;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12002
+    local $Data::Dumper::Quotekeys = $quotekeys;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12003
+    $obj = Data::Dumper->new( [ \%d ] );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12004
+    $dumps{'ddqkundef'} = _dumptostr($obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12005
+    local $Data::Dumper::Quotekeys = $starting;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12006
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12007
+    $obj = Data::Dumper->new( [ \%d ] );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12008
+    $obj->Quotekeys($quotekeys);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12009
+    $dumps{'objqkundef'} = _dumptostr($obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12010
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12011
+    note("Quotekeys(undef) will fall back to the default value\nfor \$Data::Dumper::Quotekeys, which is a true value.");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12012
+    isnt($dumps{'ddqkundef'}, $dumps{'objqkundef'},
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12013
+        "\$Data::Dumper::Quotekeys = undef and Quotekeys(undef) are equivalent");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12014
+    isnt($dumps{'ddqkzero'}, $dumps{'objqkundef'},
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12015
+        "\$Data::Dumper::Quotekeys = undef and = 0 are equivalent");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12016
+    %dumps = ();
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12017
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12018
+    local $Data::Dumper::Quotekeys = 1;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12019
+    local $Data::Dumper::Sortkeys = 1;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12020
+    local $Data::Dumper::Indent = 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12021
+    local $Data::Dumper::Useqq = 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12022
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12023
+    my %qkdata =
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12024
+      (
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12025
+       0 => 1,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12026
+       '012345' => 1,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12027
+       12 => 1,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12028
+       123456789 => 1,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12029
+       1234567890 => 1,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12030
+       '::de::fg' => 1,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12031
+       ab => 1,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12032
+       'hi::12' => 1,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12033
+       "1\x{660}" => 1,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12034
+      );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12035
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12036
+    is(Dumper(\%qkdata),
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12037
+       q($VAR1 = {'0' => 1,'012345' => 1,'12' => 1,'123456789' => 1,'1234567890' => 1,"1\x{660}" => 1,'::de::fg' => 1,'ab' => 1,'hi::12' => 1};),
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12038
+       "always quote when quotekeys true");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12039
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12040
+    {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12041
+        local $Data::Dumper::Useqq = 1;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12042
+        is(Dumper(\%qkdata),
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12043
+	   q($VAR1 = {"0" => 1,"012345" => 1,"12" => 1,"123456789" => 1,"1234567890" => 1,"1\x{660}" => 1,"::de::fg" => 1,"ab" => 1,"hi::12" => 1};),
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12044
+	   "always quote when quotekeys true (useqq)");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12045
+    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12046
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12047
+    local $Data::Dumper::Quotekeys = 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12048
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12049
+    is(Dumper(\%qkdata),
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12050
+       q($VAR1 = {0 => 1,'012345' => 1,12 => 1,123456789 => 1,'1234567890' => 1,"1\x{660}" => 1,'::de::fg' => 1,ab => 1,'hi::12' => 1};),
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12051
+	      "avoid quotes when quotekeys false");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12052
+    {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12053
+        local $Data::Dumper::Useqq = 1;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12054
+	is(Dumper(\%qkdata),
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12055
+	   q($VAR1 = {0 => 1,"012345" => 1,12 => 1,123456789 => 1,"1234567890" => 1,"1\x{660}" => 1,"::de::fg" => 1,ab => 1,"hi::12" => 1};),
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12056
+	      "avoid quotes when quotekeys false (useqq)");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12057
+    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12058
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12059
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12060
diff -ur --new-file perl-5.16.3/dist/Data-Dumper/t/recurse.t perl-5.16.3/dist/Data-Dumper/t/recurse.t
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12061
--- perl-5.16.3/dist/Data-Dumper/t/recurse.t	1969-12-31 19:00:00.000000000 -0500
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12062
+++ perl-5.16.3/dist/Data-Dumper/t/recurse.t	2014-09-29 13:47:39.518386357 -0400
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12063
@@ -0,0 +1,45 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12064
+#!perl
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12065
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12066
+# Test the Maxrecurse option
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12067
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12068
+use strict;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12069
+use Test::More tests => 32;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12070
+use Data::Dumper;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12071
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12072
+SKIP: {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12073
+    skip "no XS available", 16
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12074
+      if $Data::Dumper::Useperl;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12075
+    local $Data::Dumper::Useperl = 1;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12076
+    test_recursion();
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12077
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12078
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12079
+test_recursion();
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12080
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12081
+sub test_recursion {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12082
+    my $pp = $Data::Dumper::Useperl ? "pure perl" : "XS";
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12083
+    $Data::Dumper::Purity = 1; # make sure this has no effect
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12084
+    $Data::Dumper::Indent = 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12085
+    $Data::Dumper::Maxrecurse = 1;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12086
+    is(eval { Dumper([]) }, '$VAR1 = [];', "$pp: maxrecurse 1, []");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12087
+    is(eval { Dumper([[]]) }, undef, "$pp: maxrecurse 1, [[]]");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12088
+    ok($@, "exception thrown");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12089
+    is(eval { Dumper({}) }, '$VAR1 = {};', "$pp: maxrecurse 1, {}");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12090
+    is(eval { Dumper({ a => 1 }) }, q($VAR1 = {'a' => 1};),
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12091
+       "$pp: maxrecurse 1, { a => 1 }");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12092
+    is(eval { Dumper({ a => {} }) }, undef, "$pp: maxrecurse 1, { a => {} }");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12093
+    ok($@, "exception thrown");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12094
+    is(eval { Dumper(\1) }, "\$VAR1 = \\1;", "$pp: maxrecurse 1, \\1");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12095
+    is(eval { Dumper(\\1) }, undef, "$pp: maxrecurse 1, \\1");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12096
+    ok($@, "exception thrown");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12097
+    $Data::Dumper::Maxrecurse = 3;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12098
+    is(eval { Dumper(\1) }, "\$VAR1 = \\1;", "$pp: maxrecurse 3, \\1");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12099
+    is(eval { Dumper(\(my $s = {})) }, "\$VAR1 = \\{};", "$pp: maxrecurse 3, \\{}");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12100
+    is(eval { Dumper(\(my $s = { a => [] })) }, "\$VAR1 = \\{'a' => []};",
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12101
+       "$pp: maxrecurse 3, \\{ a => [] }");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12102
+    is(eval { Dumper(\(my $s = { a => [{}] })) }, undef,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12103
+       "$pp: maxrecurse 3, \\{ a => [{}] }");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12104
+    ok($@, "exception thrown");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12105
+    $Data::Dumper::Maxrecurse = 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12106
+    is(eval { Dumper([[[[[]]]]]) }, q($VAR1 = [[[[[]]]]];),
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12107
+       "$pp: check Maxrecurse doesn't set limit to 0 recursion");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12108
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12109
diff -ur --new-file perl-5.16.3/dist/Data-Dumper/t/seen.t perl-5.16.3/dist/Data-Dumper/t/seen.t
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12110
--- perl-5.16.3/dist/Data-Dumper/t/seen.t	1969-12-31 19:00:00.000000000 -0500
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12111
+++ perl-5.16.3/dist/Data-Dumper/t/seen.t	2014-09-29 13:47:39.517242163 -0400
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12112
@@ -0,0 +1,103 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12113
+#!./perl -w
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12114
+# t/seen.t - Test Seen()
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12115
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12116
+BEGIN {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12117
+    if ($ENV{PERL_CORE}){
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12118
+        require Config; import Config;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12119
+        no warnings 'once';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12120
+        if ($Config{'extensions'} !~ /\bData\/Dumper\b/) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12121
+            print "1..0 # Skip: Data::Dumper was not built\n";
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12122
+            exit 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12123
+        }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12124
+    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12125
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12126
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12127
+use strict;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12128
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12129
+use Data::Dumper;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12130
+use Test::More tests => 10;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12131
+use lib qw( ./t/lib );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12132
+use Testing qw( _dumptostr );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12133
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12134
+my ($obj, %dumps);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12135
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12136
+my (@e, %f, @rv, @g, %h, $k);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12137
+@e = ( qw| alpha beta gamma | );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12138
+%f = ( epsilon => 'zeta', eta => 'theta' );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12139
+@g = ( qw| iota kappa lambda | );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12140
+%h = ( mu => 'nu', omicron => 'pi' );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12141
+sub j { print "Hello world\n"; }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12142
+$k = 'just another scalar';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12143
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12144
+{
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12145
+    my $warning = '';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12146
+    local $SIG{__WARN__} = sub { $warning = $_[0] };
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12147
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12148
+    $obj = Data::Dumper->new( [ \@e, \%f ]);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12149
+    @rv = $obj->Seen( { mark => 'snark' } );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12150
+    like($warning,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12151
+        qr/^Only refs supported, ignoring non-ref item \$mark/,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12152
+        "Got expected warning for non-ref item");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12153
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12154
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12155
+{
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12156
+    my $warning = '';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12157
+    local $SIG{__WARN__} = sub { $warning = $_[0] };
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12158
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12159
+    $obj = Data::Dumper->new( [ \@e, \%f ]);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12160
+    @rv = $obj->Seen( { mark => undef } );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12161
+    like($warning,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12162
+        qr/^Value of ref must be defined; ignoring undefined item \$mark/,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12163
+        "Got expected warning for undefined value of item");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12164
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12165
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12166
+{
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12167
+    $obj = Data::Dumper->new( [ \@e, \%f ]);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12168
+    @rv = $obj->Seen( undef );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12169
+    is(@rv, 0, "Seen(undef) returned empty array");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12170
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12171
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12172
+{
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12173
+    $obj = Data::Dumper->new( [ \@e, \%f ]);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12174
+    @rv = $obj->Seen( [ qw| mark snark | ] );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12175
+    is(@rv, 0, "Seen(ref other than hashref) returned empty array");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12176
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12177
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12178
+{
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12179
+    $obj = Data::Dumper->new( [ \@e, \%f ]);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12180
+    @rv = $obj->Seen( { '*samba' => \@g } );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12181
+    is_deeply($rv[0], $obj, "Got the object back: value array ref");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12182
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12183
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12184
+{
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12185
+    $obj = Data::Dumper->new( [ \@e, \%f ]);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12186
+    @rv = $obj->Seen( { '*canasta' => \%h } );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12187
+    is_deeply($rv[0], $obj, "Got the object back: value hash ref");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12188
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12189
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12190
+{
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12191
+    $obj = Data::Dumper->new( [ \@e, \%f ]);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12192
+    @rv = $obj->Seen( { '*pinochle' => \&j } );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12193
+    is_deeply($rv[0], $obj, "Got the object back: value code ref");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12194
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12195
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12196
+{
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12197
+    $obj = Data::Dumper->new( [ \@e, \%f ]);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12198
+    @rv = $obj->Seen( { '*poker' => \$k } );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12199
+    is_deeply($rv[0], $obj, "Got the object back: value ref to scalar");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12200
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12201
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12202
+{
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12203
+    my $l = 'loo';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12204
+    $obj = Data::Dumper->new( [ \@e, \%f ]);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12205
+    @rv = $obj->Seen( { $l => \$k } );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12206
+    is_deeply($rv[0], $obj, "Got the object back: value ref to scalar");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12207
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12208
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12209
+{
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12210
+    my $l = '$loo';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12211
+    $obj = Data::Dumper->new( [ \@e, \%f ]);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12212
+    @rv = $obj->Seen( { $l => \$k } );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12213
+    is_deeply($rv[0], $obj, "Got the object back: value ref to scalar");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12214
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12215
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12216
diff -ur --new-file perl-5.16.3/dist/Data-Dumper/t/sortkeys.t perl-5.16.3/dist/Data-Dumper/t/sortkeys.t
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12217
--- perl-5.16.3/dist/Data-Dumper/t/sortkeys.t	1969-12-31 19:00:00.000000000 -0500
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12218
+++ perl-5.16.3/dist/Data-Dumper/t/sortkeys.t	2014-09-29 13:47:39.520016221 -0400
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12219
@@ -0,0 +1,190 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12220
+#!./perl -w
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12221
+# t/sortkeys.t - Test Sortkeys()
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12222
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12223
+BEGIN {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12224
+    if ($ENV{PERL_CORE}){
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12225
+        require Config; import Config;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12226
+        no warnings 'once';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12227
+        if ($Config{'extensions'} !~ /\bData\/Dumper\b/) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12228
+            print "1..0 # Skip: Data::Dumper was not built\n";
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12229
+            exit 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12230
+        }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12231
+    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12232
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12233
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12234
+use strict;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12235
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12236
+use Data::Dumper;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12237
+use Test::More tests => 26;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12238
+use lib qw( ./t/lib );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12239
+use Testing qw( _dumptostr );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12240
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12241
+run_tests_for_sortkeys();
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12242
+SKIP: {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12243
+    skip "XS version was unavailable, so we already ran with pure Perl", 13 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12244
+        if $Data::Dumper::Useperl;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12245
+    local $Data::Dumper::Useperl = 1;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12246
+    run_tests_for_sortkeys();
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12247
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12248
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12249
+sub run_tests_for_sortkeys {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12250
+    note("\$Data::Dumper::Useperl = $Data::Dumper::Useperl");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12251
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12252
+    my %d = (
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12253
+        delta   => 'd',
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12254
+        beta    => 'b',
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12255
+        gamma   => 'c',
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12256
+        alpha   => 'a',
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12257
+    );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12258
+    
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12259
+    {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12260
+        my ($obj, %dumps, $sortkeys, $starting);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12261
+    
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12262
+        note("\$Data::Dumper::Sortkeys and Sortkeys() set to true value");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12263
+    
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12264
+        $starting = $Data::Dumper::Sortkeys;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12265
+        $sortkeys = 1;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12266
+        local $Data::Dumper::Sortkeys = $sortkeys;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12267
+        $obj = Data::Dumper->new( [ \%d ] );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12268
+        $dumps{'ddskone'} = _dumptostr($obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12269
+        local $Data::Dumper::Sortkeys = $starting;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12270
+    
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12271
+        $obj = Data::Dumper->new( [ \%d ] );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12272
+        $obj->Sortkeys($sortkeys);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12273
+        $dumps{'objskone'} = _dumptostr($obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12274
+    
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12275
+        is($dumps{'ddskone'}, $dumps{'objskone'},
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12276
+            "\$Data::Dumper::Sortkeys = 1 and Sortkeys(1) are equivalent");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12277
+        like($dumps{'ddskone'},
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12278
+            qr/alpha.*?beta.*?delta.*?gamma/s,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12279
+            "Sortkeys returned hash keys in Perl's default sort order");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12280
+        %dumps = ();
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12281
+    
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12282
+    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12283
+    
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12284
+    {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12285
+        my ($obj, %dumps, $starting);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12286
+    
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12287
+        note("\$Data::Dumper::Sortkeys and Sortkeys() set to coderef");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12288
+    
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12289
+        $starting = $Data::Dumper::Sortkeys;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12290
+        local $Data::Dumper::Sortkeys = \&reversekeys;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12291
+        $obj = Data::Dumper->new( [ \%d ] );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12292
+        $dumps{'ddsksub'} = _dumptostr($obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12293
+        local $Data::Dumper::Sortkeys = $starting;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12294
+    
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12295
+        $obj = Data::Dumper->new( [ \%d ] );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12296
+        $obj->Sortkeys(\&reversekeys);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12297
+        $dumps{'objsksub'} = _dumptostr($obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12298
+    
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12299
+        is($dumps{'ddsksub'}, $dumps{'objsksub'},
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12300
+            "\$Data::Dumper::Sortkeys = CODEREF and Sortkeys(CODEREF) are equivalent");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12301
+        like($dumps{'ddsksub'},
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12302
+            qr/gamma.*?delta.*?beta.*?alpha/s,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12303
+            "Sortkeys returned hash keys per sorting subroutine");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12304
+        %dumps = ();
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12305
+    
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12306
+    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12307
+    
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12308
+    {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12309
+        my ($obj, %dumps, $starting);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12310
+    
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12311
+        note("\$Data::Dumper::Sortkeys and Sortkeys() set to coderef with filter");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12312
+        $starting = $Data::Dumper::Sortkeys;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12313
+        local $Data::Dumper::Sortkeys = \&reversekeystrim;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12314
+        $obj = Data::Dumper->new( [ \%d ] );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12315
+        $dumps{'ddsksub'} = _dumptostr($obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12316
+        local $Data::Dumper::Sortkeys = $starting;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12317
+    
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12318
+        $obj = Data::Dumper->new( [ \%d ] );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12319
+        $obj->Sortkeys(\&reversekeystrim);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12320
+        $dumps{'objsksub'} = _dumptostr($obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12321
+    
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12322
+        is($dumps{'ddsksub'}, $dumps{'objsksub'},
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12323
+            "\$Data::Dumper::Sortkeys = CODEREF and Sortkeys(CODEREF) select same keys");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12324
+        like($dumps{'ddsksub'},
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12325
+            qr/gamma.*?delta.*?beta/s,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12326
+            "Sortkeys returned hash keys per sorting subroutine");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12327
+        unlike($dumps{'ddsksub'},
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12328
+            qr/alpha/s,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12329
+            "Sortkeys filtered out one key per request");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12330
+        %dumps = ();
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12331
+    
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12332
+    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12333
+    
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12334
+    {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12335
+        my ($obj, %dumps, $sortkeys, $starting);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12336
+    
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12337
+        note("\$Data::Dumper::Sortkeys(undef) and Sortkeys(undef)");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12338
+    
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12339
+        $starting = $Data::Dumper::Sortkeys;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12340
+        $sortkeys = 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12341
+        local $Data::Dumper::Sortkeys = $sortkeys;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12342
+        $obj = Data::Dumper->new( [ \%d ] );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12343
+        $dumps{'ddskzero'} = _dumptostr($obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12344
+        local $Data::Dumper::Sortkeys = $starting;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12345
+    
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12346
+        $obj = Data::Dumper->new( [ \%d ] );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12347
+        $obj->Sortkeys($sortkeys);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12348
+        $dumps{'objskzero'} = _dumptostr($obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12349
+    
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12350
+        $sortkeys = undef;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12351
+        local $Data::Dumper::Sortkeys = $sortkeys;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12352
+        $obj = Data::Dumper->new( [ \%d ] );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12353
+        $dumps{'ddskundef'} = _dumptostr($obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12354
+        local $Data::Dumper::Sortkeys = $starting;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12355
+    
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12356
+        $obj = Data::Dumper->new( [ \%d ] );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12357
+        $obj->Sortkeys($sortkeys);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12358
+        $dumps{'objskundef'} = _dumptostr($obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12359
+    
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12360
+        is($dumps{'ddskzero'}, $dumps{'objskzero'},
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12361
+            "\$Data::Dumper::Sortkeys = 0 and Sortkeys(0) are equivalent");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12362
+        is($dumps{'ddskzero'}, $dumps{'ddskundef'},
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12363
+            "\$Data::Dumper::Sortkeys = 0 and = undef equivalent");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12364
+        is($dumps{'objkzero'}, $dumps{'objkundef'},
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12365
+            "Sortkeys(0) and Sortkeys(undef) are equivalent");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12366
+        %dumps = ();
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12367
+    
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12368
+    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12369
+    
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12370
+    note("Internal subroutine _sortkeys");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12371
+    my %e = (
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12372
+        nu      => 'n',
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12373
+        lambda  => 'l',
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12374
+        kappa   => 'k',
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12375
+        mu      => 'm',
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12376
+        omicron => 'o',
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12377
+    );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12378
+    my $rv = Data::Dumper::_sortkeys(\%e);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12379
+    is(ref($rv), 'ARRAY', "Data::Dumper::_sortkeys returned an array ref");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12380
+    is_deeply($rv, [ qw( kappa lambda mu nu omicron ) ],
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12381
+        "Got keys in Perl default order");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12382
+    {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12383
+        my $warning = '';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12384
+        local $SIG{__WARN__} = sub { $warning = $_[0] };
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12385
+    
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12386
+        my ($obj, %dumps, $starting);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12387
+    
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12388
+        note("\$Data::Dumper::Sortkeys and Sortkeys() set to coderef");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12389
+    
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12390
+        $starting = $Data::Dumper::Sortkeys;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12391
+        local $Data::Dumper::Sortkeys = \&badreturnvalue;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12392
+        $obj = Data::Dumper->new( [ \%d ] );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12393
+        $dumps{'ddsksub'} = _dumptostr($obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12394
+        like($warning, qr/^Sortkeys subroutine did not return ARRAYREF/,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12395
+            "Got expected warning: sorting routine did not return array ref");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12396
+    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12397
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12398
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12399
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12400
+sub reversekeys { return [ reverse sort keys %{+shift} ]; }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12401
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12402
+sub reversekeystrim {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12403
+    my $hr = shift;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12404
+    my @keys = sort keys %{$hr};
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12405
+    shift(@keys);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12406
+    return [ reverse @keys ];
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12407
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12408
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12409
+sub badreturnvalue { return { %{+shift} }; }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12410
diff -ur --new-file perl-5.16.3/dist/Data-Dumper/t/sparseseen.t perl-5.16.3/dist/Data-Dumper/t/sparseseen.t
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12411
--- perl-5.16.3/dist/Data-Dumper/t/sparseseen.t	1969-12-31 19:00:00.000000000 -0500
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12412
+++ perl-5.16.3/dist/Data-Dumper/t/sparseseen.t	2014-09-29 13:47:39.521485497 -0400
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12413
@@ -0,0 +1,88 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12414
+#!./perl -w
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12415
+# t/sparseseen.t - Test Sparseseen()
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12416
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12417
+BEGIN {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12418
+    if ($ENV{PERL_CORE}){
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12419
+        require Config; import Config;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12420
+        no warnings 'once';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12421
+        if ($Config{'extensions'} !~ /\bData\/Dumper\b/) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12422
+            print "1..0 # Skip: Data::Dumper was not built\n";
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12423
+            exit 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12424
+        }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12425
+    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12426
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12427
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12428
+use strict;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12429
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12430
+use Data::Dumper;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12431
+use Test::More tests =>  8;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12432
+use lib qw( ./t/lib );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12433
+use Testing qw( _dumptostr );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12434
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12435
+my %d = (
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12436
+    delta   => 'd',
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12437
+    beta    => 'b',
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12438
+    gamma   => 'c',
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12439
+    alpha   => 'a',
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12440
+);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12441
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12442
+run_tests_for_sparseseen();
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12443
+SKIP: {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12444
+    skip "XS version was unavailable, so we already ran with pure Perl", 4
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12445
+        if $Data::Dumper::Useperl;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12446
+    local $Data::Dumper::Useperl = 1;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12447
+    run_tests_for_sparseseen();
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12448
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12449
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12450
+sub run_tests_for_sparseseen {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12451
+    note("\$Data::Dumper::Useperl = $Data::Dumper::Useperl");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12452
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12453
+    my ($obj, %dumps, $sparseseen, $starting);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12454
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12455
+    note("\$Data::Dumper::Sparseseen and Sparseseen() set to true value");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12456
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12457
+    $starting = $Data::Dumper::Sparseseen;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12458
+    $sparseseen = 1;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12459
+    local $Data::Dumper::Sparseseen = $sparseseen;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12460
+    $obj = Data::Dumper->new( [ \%d ] );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12461
+    $dumps{'ddssone'} = _dumptostr($obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12462
+    local $Data::Dumper::Sparseseen = $starting;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12463
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12464
+    $obj = Data::Dumper->new( [ \%d ] );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12465
+    $obj->Sparseseen($sparseseen);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12466
+    $dumps{'objssone'} = _dumptostr($obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12467
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12468
+    is($dumps{'ddssone'}, $dumps{'objssone'},
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12469
+        "\$Data::Dumper::Sparseseen = 1 and Sparseseen(1) are equivalent");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12470
+    %dumps = ();
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12471
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12472
+    $sparseseen = 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12473
+    local $Data::Dumper::Sparseseen = $sparseseen;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12474
+    $obj = Data::Dumper->new( [ \%d ] );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12475
+    $dumps{'ddsszero'} = _dumptostr($obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12476
+    local $Data::Dumper::Sparseseen = $starting;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12477
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12478
+    $obj = Data::Dumper->new( [ \%d ] );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12479
+    $obj->Sparseseen($sparseseen);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12480
+    $dumps{'objsszero'} = _dumptostr($obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12481
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12482
+    is($dumps{'ddsszero'}, $dumps{'objsszero'},
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12483
+        "\$Data::Dumper::Sparseseen = 0 and Sparseseen(0) are equivalent");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12484
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12485
+    $sparseseen = undef;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12486
+    local $Data::Dumper::Sparseseen = $sparseseen;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12487
+    $obj = Data::Dumper->new( [ \%d ] );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12488
+    $dumps{'ddssundef'} = _dumptostr($obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12489
+    local $Data::Dumper::Sparseseen = $starting;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12490
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12491
+    $obj = Data::Dumper->new( [ \%d ] );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12492
+    $obj->Sparseseen($sparseseen);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12493
+    $dumps{'objssundef'} = _dumptostr($obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12494
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12495
+    is($dumps{'ddssundef'}, $dumps{'objssundef'},
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12496
+        "\$Data::Dumper::Sparseseen = undef and Sparseseen(undef) are equivalent");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12497
+    is($dumps{'ddsszero'}, $dumps{'objssundef'},
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12498
+        "\$Data::Dumper::Sparseseen = undef and = 0 are equivalent");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12499
+    %dumps = ();
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12500
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12501
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12502
diff -ur --new-file perl-5.16.3/dist/Data-Dumper/t/terse.t perl-5.16.3/dist/Data-Dumper/t/terse.t
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12503
--- perl-5.16.3/dist/Data-Dumper/t/terse.t	2014-09-29 13:45:01.139088341 -0400
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12504
+++ perl-5.16.3/dist/Data-Dumper/t/terse.t	2014-09-29 13:47:39.517537286 -0400
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12505
@@ -2,9 +2,11 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12506
 use strict;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12507
 use warnings;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12508
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12509
-use Test::More tests => 2;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12510
-
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12511
 use Data::Dumper;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12512
+use Test::More tests => 6;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12513
+use lib qw( ./t/lib );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12514
+use Testing qw( _dumptostr );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12515
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12516
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12517
 my $hash = { foo => 42 };
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12518
 
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12519
@@ -20,3 +22,40 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12520
 }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12521
 WANT
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12522
 }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12523
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12524
+my (%dumpstr);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12525
+my $dumper;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12526
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12527
+$dumper = Data::Dumper->new([$hash]);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12528
+$dumpstr{noterse} = _dumptostr($dumper);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12529
+# $VAR1 = {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12530
+#           'foo' => 42
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12531
+#         };
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12532
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12533
+$dumper = Data::Dumper->new([$hash]);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12534
+$dumper->Terse();
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12535
+$dumpstr{terse_no_arg} = _dumptostr($dumper);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12536
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12537
+$dumper = Data::Dumper->new([$hash]);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12538
+$dumper->Terse(0);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12539
+$dumpstr{terse_0} = _dumptostr($dumper);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12540
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12541
+$dumper = Data::Dumper->new([$hash]);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12542
+$dumper->Terse(1);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12543
+$dumpstr{terse_1} = _dumptostr($dumper);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12544
+# {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12545
+#   'foo' => 42
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12546
+# }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12547
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12548
+$dumper = Data::Dumper->new([$hash]);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12549
+$dumper->Terse(undef);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12550
+$dumpstr{terse_undef} = _dumptostr($dumper);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12551
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12552
+is($dumpstr{noterse}, $dumpstr{terse_no_arg},
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12553
+    "absence of Terse is same as Terse()");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12554
+is($dumpstr{noterse}, $dumpstr{terse_0},
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12555
+    "absence of Terse is same as Terse(0)");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12556
+isnt($dumpstr{noterse}, $dumpstr{terse_1},
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12557
+    "absence of Terse is different from Terse(1)");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12558
+is($dumpstr{noterse}, $dumpstr{terse_undef},
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12559
+    "absence of Terse is same as Terse(undef)");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12560
diff -ur --new-file perl-5.16.3/dist/Data-Dumper/t/toaster.t perl-5.16.3/dist/Data-Dumper/t/toaster.t
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12561
--- perl-5.16.3/dist/Data-Dumper/t/toaster.t	1969-12-31 19:00:00.000000000 -0500
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12562
+++ perl-5.16.3/dist/Data-Dumper/t/toaster.t	2014-09-29 13:47:39.516332067 -0400
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12563
@@ -0,0 +1,88 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12564
+#!./perl -w
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12565
+# t/toaster.t - Test Toaster()
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12566
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12567
+BEGIN {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12568
+    if ($ENV{PERL_CORE}){
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12569
+        require Config; import Config;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12570
+        no warnings 'once';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12571
+        if ($Config{'extensions'} !~ /\bData\/Dumper\b/) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12572
+            print "1..0 # Skip: Data::Dumper was not built\n";
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12573
+            exit 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12574
+        }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12575
+    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12576
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12577
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12578
+use strict;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12579
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12580
+use Data::Dumper;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12581
+use Test::More tests =>  8;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12582
+use lib qw( ./t/lib );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12583
+use Testing qw( _dumptostr );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12584
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12585
+my %d = (
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12586
+    delta   => 'd',
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12587
+    beta    => 'b',
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12588
+    gamma   => 'c',
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12589
+    alpha   => 'a',
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12590
+);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12591
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12592
+run_tests_for_toaster();
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12593
+SKIP: {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12594
+    skip "XS version was unavailable, so we already ran with pure Perl", 4
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12595
+        if $Data::Dumper::Useperl;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12596
+    local $Data::Dumper::Useperl = 1;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12597
+    run_tests_for_toaster();
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12598
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12599
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12600
+sub run_tests_for_toaster {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12601
+    note("\$Data::Dumper::Useperl = $Data::Dumper::Useperl");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12602
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12603
+    my ($obj, %dumps, $toaster, $starting);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12604
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12605
+    note("\$Data::Dumper::Toaster and Toaster() set to true value");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12606
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12607
+    $starting = $Data::Dumper::Toaster;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12608
+    $toaster = 1;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12609
+    local $Data::Dumper::Toaster = $toaster;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12610
+    $obj = Data::Dumper->new( [ \%d ] );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12611
+    $dumps{'ddtoasterone'} = _dumptostr($obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12612
+    local $Data::Dumper::Toaster = $starting;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12613
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12614
+    $obj = Data::Dumper->new( [ \%d ] );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12615
+    $obj->Toaster($toaster);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12616
+    $dumps{'objtoasterone'} = _dumptostr($obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12617
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12618
+    is($dumps{'ddtoasterone'}, $dumps{'objtoasterone'},
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12619
+        "\$Data::Dumper::Toaster = 1 and Toaster(1) are equivalent");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12620
+    %dumps = ();
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12621
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12622
+    $toaster = 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12623
+    local $Data::Dumper::Toaster = $toaster;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12624
+    $obj = Data::Dumper->new( [ \%d ] );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12625
+    $dumps{'ddtoasterzero'} = _dumptostr($obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12626
+    local $Data::Dumper::Toaster = $starting;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12627
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12628
+    $obj = Data::Dumper->new( [ \%d ] );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12629
+    $obj->Toaster($toaster);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12630
+    $dumps{'objtoasterzero'} = _dumptostr($obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12631
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12632
+    is($dumps{'ddtoasterzero'}, $dumps{'objtoasterzero'},
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12633
+        "\$Data::Dumper::Toaster = 0 and Toaster(0) are equivalent");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12634
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12635
+    $toaster = undef;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12636
+    local $Data::Dumper::Toaster = $toaster;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12637
+    $obj = Data::Dumper->new( [ \%d ] );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12638
+    $dumps{'ddtoasterundef'} = _dumptostr($obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12639
+    local $Data::Dumper::Toaster = $starting;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12640
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12641
+    $obj = Data::Dumper->new( [ \%d ] );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12642
+    $obj->Toaster($toaster);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12643
+    $dumps{'objtoasterundef'} = _dumptostr($obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12644
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12645
+    is($dumps{'ddtoasterundef'}, $dumps{'objtoasterundef'},
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12646
+        "\$Data::Dumper::Toaster = undef and Toaster(undef) are equivalent");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12647
+    is($dumps{'ddtoasterzero'}, $dumps{'objtoasterundef'},
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12648
+        "\$Data::Dumper::Toaster = undef and = 0 are equivalent");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12649
+    %dumps = ();
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12650
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12651
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12652
diff -ur --new-file perl-5.16.3/dist/Data-Dumper/t/values.t perl-5.16.3/dist/Data-Dumper/t/values.t
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12653
--- perl-5.16.3/dist/Data-Dumper/t/values.t	1969-12-31 19:00:00.000000000 -0500
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12654
+++ perl-5.16.3/dist/Data-Dumper/t/values.t	2014-09-29 13:47:39.520608078 -0400
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12655
@@ -0,0 +1,40 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12656
+#!./perl -w
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12657
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12658
+BEGIN {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12659
+    if ($ENV{PERL_CORE}){
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12660
+        require Config; import Config;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12661
+        no warnings 'once';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12662
+        if ($Config{'extensions'} !~ /\bData\/Dumper\b/) {
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12663
+            print "1..0 # Skip: Data::Dumper was not built\n";
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12664
+            exit 0;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12665
+        }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12666
+    }
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12667
+}
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12668
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12669
+use strict;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12670
+use Data::Dumper;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12671
+use Test::More tests => 4;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12672
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12673
+my ($a, $b, $obj);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12674
+my (@values, @names);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12675
+my (@newvalues, $objagain, %newvalues);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12676
+$a = 'alpha';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12677
+$b = 'beta';
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12678
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12679
+$obj = Data::Dumper->new([$a,$b], [qw(a b)]);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12680
+@values = $obj->Values;
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12681
+is_deeply(\@values, [$a,$b], "Values() returned expected list");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12682
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12683
+@newvalues = ( qw| gamma delta epsilon | );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12684
+$objagain = $obj->Values(\@newvalues);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12685
+is($objagain, $obj, "Values returned same object");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12686
+is_deeply($objagain->{todump}, \@newvalues,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12687
+    "Able to use Values() to set values to be dumped");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12688
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12689
+$obj = Data::Dumper->new([$a,$b], [qw(a b)]);
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12690
+%newvalues = ( gamma => 'delta', epsilon => 'zeta' );
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12691
+eval { @values = $obj->Values(\%newvalues); };
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12692
+like($@, qr/Argument to Values, if provided, must be array ref/,
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12693
+    "Got expected error message: bad argument to Values()");
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12694
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12695
+
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12696
diff -ur --new-file perl-5.16.3/MANIFEST perl-5.16.3/MANIFEST
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12697
--- perl-5.16.3/MANIFEST	2013-03-04 07:16:21.000000000 -0800
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12698
+++ perl-5.16.3/MANIFEST	2014-10-03 14:09:44.039495148 -0700
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12699
@@ -3071,15 +3071,31 @@
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12700
 dist/Data-Dumper/Dumper.pm	Data pretty printer, module
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12701
 dist/Data-Dumper/Dumper.xs	Data pretty printer, externals
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12702
 dist/Data-Dumper/t/bless.t	See if Data::Dumper works
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12703
+dist/Data-Dumper/t/bless_var_method.t
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12704
 dist/Data-Dumper/t/bugs.t	See if Data::Dumper works
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12705
+dist/Data-Dumper/t/deparse.t
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12706
 dist/Data-Dumper/t/dumper.t	See if Data::Dumper works
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12707
+dist/Data-Dumper/t/dumpperl.t
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12708
 dist/Data-Dumper/t/freezer.t	See if $Data::Dumper::Freezer works
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12709
-dist/Data-Dumper/Todo		Data pretty printer, futures
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12710
+dist/Data-Dumper/t/freezer_useperl.t
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12711
+dist/Data-Dumper/t/indent.t
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12712
+dist/Data-Dumper/t/lib/Testing.pm
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12713
+dist/Data-Dumper/t/misc.t
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12714
+dist/Data-Dumper/t/names.t
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12715
+dist/Data-Dumper/Todo		Data pretty printer, futures
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12716
 dist/Data-Dumper/t/overload.t	See if Data::Dumper works for overloaded data
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12717
 dist/Data-Dumper/t/pair.t	See if Data::Dumper pair separator works
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12718
 dist/Data-Dumper/t/perl-74170.t	Regression test for stack reallocation
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12719
+dist/Data-Dumper/t/purity_deepcopy_maxdepth.t
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12720
 dist/Data-Dumper/t/qr.t		See if Data::Dumper works with qr|/|
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12721
+dist/Data-Dumper/t/quotekeys.t
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12722
+dist/Data-Dumper/t/recurse.t
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12723
+dist/Data-Dumper/t/seen.t
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12724
+dist/Data-Dumper/t/sortkeys.t
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12725
+dist/Data-Dumper/t/sparseseen.t
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12726
 dist/Data-Dumper/t/terse.t	See if Data::Dumper terse option works
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12727
+dist/Data-Dumper/t/toaster.t
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12728
+dist/Data-Dumper/t/values.t
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12729
 dist/Devel-SelfStubber/lib/Devel/SelfStubber.pm	Generate stubs for SelfLoader.pm
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12730
 dist/Devel-SelfStubber/t/Devel-SelfStubber.t	See if Devel::SelfStubber works
f1e602172275 19696237 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12731
 dist/Dumpvalue/lib/Dumpvalue.pm	Screen dump of perl values