components/perl512/patches/CVE-2014-4330.patch
author Bill Rushmore <bill.rushmore@oracle.com>
Thu, 16 Oct 2014 11:40:28 -0700
changeset 2154 d5b710c8edde
permissions -rw-r--r--
19768631 problem in UTILITY/PERL
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2154
d5b710c8edde 19768631 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:
d5b710c8edde 19768631 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
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
     3
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
     4
diff -ur --new-file perl-5.12.5/dist/Data-Dumper/Changes perl-5.12.5_dumper/dist/Data-Dumper/Changes
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
     5
--- perl-5.12.5/dist/Data-Dumper/Changes	2012-11-03 19:25:59.000000000 -0400
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
     6
+++ perl-5.12.5_dumper/dist/Data-Dumper/Changes	2014-10-09 15:06:36.166260359 -0400
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
     7
@@ -1,11 +1,165 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
     8
 =head1 NAME
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
     9
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    10
-HISTORY - public release history for Data::Dumper
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    11
+Changes - public release history for Data::Dumper
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    12
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    13
 =head1 DESCRIPTION
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    14
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    15
 =over 8
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    16
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    17
+=item 2.154 (Sep 18 2014)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    18
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    19
+Most notably, this release fixes CVE-2014-4330:
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    20
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    21
+  Don't recurse infinitely in Data::Dumper
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    22
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    23
+  Add a configuration variable/option to limit recursion when dumping
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    24
+  deep data structures.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    25
+  [...]
d5b710c8edde 19768631 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
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    27
+  reported by: LSE Leading Security Experts GmbH employee Markus
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    28
+  Vervier.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    29
+
d5b710c8edde 19768631 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,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    31
+see "git log" if the core perl distribution for details.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    32
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    33
+=item 2.151 (Mar 7 2014)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    34
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    35
+A "useqq" implementation for the XS version of Data::Dumper.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    36
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    37
+Better compatibility wrt. hash key quoting between PP and XS
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    38
+versions of Data::Dumper.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    39
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    40
+EBCDIC fixes.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    41
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    42
+64bit safety fixes (for very large arrays).
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    43
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    44
+Build fixes for threaded perls.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    45
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    46
+clang warning fixes.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    47
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    48
+Warning fixes in tests on older perls.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    49
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    50
+Typo fixes in documentation.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    51
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    52
+=item 2.145 (Mar 15 2013)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    53
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    54
+Test refactoring and fixing wide and far.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    55
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    56
+Various old-perl compat fixes.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    57
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    58
+=item 2.143 (Feb 26 2013)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    59
+
d5b710c8edde 19768631 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
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    61
+obscure case.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    62
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    63
+Major improvements to test coverage and significant refactoring.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    64
+
d5b710c8edde 19768631 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.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    66
+
d5b710c8edde 19768631 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
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    68
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    69
+=item 2.139 (Dec 12 2012)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    70
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    71
+Supply an explicit dynamic_config => 0 in META
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    72
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    73
+Properly list BUILD_REQUIRES prereqs (P5-RT#116028)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    74
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    75
+Some optimizations. Removed useless "register" declarations.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    76
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    77
+=item 2.136 (Oct 04 2012)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    78
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    79
+Promote to stable release.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    80
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    81
+Drop some "register" declarations.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    82
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    83
+=item 2.135_07 (Aug 06 2012)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    84
+
d5b710c8edde 19768631 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
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    86
+reading buffer overrun.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    87
+
d5b710c8edde 19768631 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
d5b710c8edde 19768631 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
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    90
+
d5b710c8edde 19768631 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
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    92
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    93
+Avoid a warning from clang when compiling Data::Dumper
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    94
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    95
+Fix DD's dumping of qr|\/|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    96
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    97
+Data::Dumper's Perl implementation was not working with overloaded
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    98
+blessed globs, which it thought were strings.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    99
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   100
+Allow Data::Dumper to load on miniperl
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   101
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   102
+=item 2.135_02 (Dec 29 2011)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   103
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   104
+Makes DD dump *{''} properly.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   105
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   106
+[perl #101162] DD support for vstrings:
d5b710c8edde 19768631 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
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   108
+implementations.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   109
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   110
+=item 2.135_01 (Dec 19 2011)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   111
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   112
+Make Data::Dumper UTF8- and null-clean with GVs.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   113
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   114
+In Dumper.xs, use sv_newmortal() instead of sv_mortalcopy(&PL_sv_undef)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   115
+for efficiency.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   116
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   117
+Suppress compiler warning
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   118
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   119
+Keep verbatim pod in Data::Dumper within 80 cols
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   120
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   121
+=item 2.131 (May 27 2011)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   122
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   123
+Essentially the same as version 2.130_02, but a production release.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   124
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   125
+=item 2.130_03 (May 20 2011)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   126
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   127
+Essentially the same as version 2.130_02, but a CPAN release
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   128
+for the eventual 2.131.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   129
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   130
+=item 2.130_02
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   131
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   132
+This was only shipped with the perl core, never released to CPAN.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   133
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   134
+Convert overload.t to Test::More
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   135
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   136
+Fix some spelling errors
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   137
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   138
+Fix some compiler warnings
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   139
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   140
+Fix an out of bounds write in Data-Dumper with malformed utf8 input
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   141
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   142
+=item 2.130 (Nov 20 2010)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   143
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   144
+C<Dumpxs> can now handle malformed UTF-8.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   145
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   146
+=item 2.129 (Oct 20 2010)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   147
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   148
+C<Dumpxs> no longer crashes with globs returned by C<*$io_ref>
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   149
+[perl #72332].
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   150
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   151
+=item 2.128 (Sep 10 2010)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   152
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   153
+Promote previous release to stable version with the correct version.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   154
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   155
+=item 2.127 (Sep 10 2010)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   156
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   157
+Promote previous release to stable version.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   158
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   159
+=item 2.126_01 (Sep  6 2010)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   160
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   161
+Port core perl changes e3ec2293dc, fe642606b19.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   162
+Fixes core perl RT #74170 (handle the stack changing in the
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   163
+custom sort functions) and adds a test.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   164
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   165
+=item 2.126 (Apr 15 2010)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   166
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   167
+Fix Data::Dumper's Fix Terse(1) + Indent(2):
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   168
+perl-RT #73604: When $Data::Dumper::Terse is true, the indentation is thrown
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   169
+off. It appears to be acting as if the $VAR1 = is still there.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   170
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   171
 =item 2.125 (Aug  8 2009)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   172
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   173
 CPAN distribution fixes (meta information for META.yml).
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   174
diff -ur --new-file perl-5.12.5/dist/Data-Dumper/Dumper.pm perl-5.12.5_dumper/dist/Data-Dumper/Dumper.pm
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   175
--- perl-5.12.5/dist/Data-Dumper/Dumper.pm	2012-11-03 19:25:59.000000000 -0400
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   176
+++ perl-5.12.5_dumper/dist/Data-Dumper/Dumper.pm	2014-10-09 15:06:36.167092691 -0400
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   177
@@ -9,7 +9,9 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   178
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   179
 package Data::Dumper;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   180
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   181
-$VERSION = '2.125'; # Don't forget to set version and release date in POD!
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   182
+BEGIN {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   183
+    $VERSION = '2.154'; # Don't forget to set version and release
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   184
+}               # date in POD below!
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   185
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   186
 #$| = 1;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   187
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   188
@@ -28,13 +30,13 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   189
     # XSLoader should be attempted to load, or the pure perl flag
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   190
     # toggled on load failure.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   191
     eval {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   192
-	require XSLoader;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   193
-    };
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   194
-    $Useperl = 1 if $@;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   195
+        require XSLoader;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   196
+        XSLoader::load( 'Data::Dumper' );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   197
+        1
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   198
+    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   199
+    or $Useperl = 1;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   200
 }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   201
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   202
-XSLoader::load( 'Data::Dumper' ) unless $Useperl;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   203
-
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   204
 # module vars and their defaults
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   205
 $Indent     = 2         unless defined $Indent;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   206
 $Purity     = 0         unless defined $Purity;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   207
@@ -53,6 +55,8 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   208
 $Useperl    = 0         unless defined $Useperl;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   209
 $Sortkeys   = 0         unless defined $Sortkeys;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   210
 $Deparse    = 0         unless defined $Deparse;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   211
+$Sparseseen = 0         unless defined $Sparseseen;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   212
+$Maxrecurse = 1000      unless defined $Maxrecurse;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   213
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   214
 #
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   215
 # expects an arrayref of values to be dumped.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   216
@@ -63,36 +67,38 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   217
 sub new {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   218
   my($c, $v, $n) = @_;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   219
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   220
-  croak "Usage:  PACKAGE->new(ARRAYREF, [ARRAYREF])" 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   221
+  croak "Usage:  PACKAGE->new(ARRAYREF, [ARRAYREF])"
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   222
     unless (defined($v) && (ref($v) eq 'ARRAY'));
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   223
   $n = [] unless (defined($n) && (ref($n) eq 'ARRAY'));
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   224
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   225
-  my($s) = { 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   226
-             level      => 0,           # current recursive depth
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   227
-	     indent     => $Indent,     # various styles of indenting
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   228
-	     pad	=> $Pad,        # all lines prefixed by this string
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   229
-	     xpad       => "",          # padding-per-level
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   230
-	     apad       => "",          # added padding for hash keys n such
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   231
-	     sep        => "",          # list separator
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   232
-	     pair	=> $Pair,	# hash key/value separator: defaults to ' => '
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   233
-	     seen       => {},          # local (nested) refs (id => [name, val])
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   234
-	     todump     => $v,          # values to dump []
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   235
-	     names      => $n,          # optional names for values []
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   236
-	     varname    => $Varname,    # prefix to use for tagging nameless ones
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   237
-             purity     => $Purity,     # degree to which output is evalable
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   238
-             useqq 	=> $Useqq,      # use "" for strings (backslashitis ensues)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   239
-             terse 	=> $Terse,      # avoid name output (where feasible)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   240
-             freezer	=> $Freezer,    # name of Freezer method for objects
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   241
-             toaster	=> $Toaster,    # name of method to revive objects
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   242
-             deepcopy	=> $Deepcopy,   # dont cross-ref, except to stop recursion
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   243
-             quotekeys	=> $Quotekeys,  # quote hash keys
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   244
-             'bless'	=> $Bless,	# keyword to use for "bless"
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   245
-#	     expdepth   => $Expdepth,   # cutoff depth for explicit dumping
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   246
-	     maxdepth	=> $Maxdepth,   # depth beyond which we give up
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   247
-	     useperl    => $Useperl,    # use the pure Perl implementation
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   248
-	     sortkeys   => $Sortkeys,   # flag or filter for sorting hash keys
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   249
-	     deparse	=> $Deparse,	# use B::Deparse for coderefs
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   250
-	   };
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   251
+  my($s) = {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   252
+        level      => 0,           # current recursive depth
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   253
+        indent     => $Indent,     # various styles of indenting
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   254
+        pad        => $Pad,        # all lines prefixed by this string
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   255
+        xpad       => "",          # padding-per-level
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   256
+        apad       => "",          # added padding for hash keys n such
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   257
+        sep        => "",          # list separator
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   258
+        pair       => $Pair,    # hash key/value separator: defaults to ' => '
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   259
+        seen       => {},          # local (nested) refs (id => [name, val])
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   260
+        todump     => $v,          # values to dump []
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   261
+        names      => $n,          # optional names for values []
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   262
+        varname    => $Varname,    # prefix to use for tagging nameless ones
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   263
+        purity     => $Purity,     # degree to which output is evalable
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   264
+        useqq      => $Useqq,      # use "" for strings (backslashitis ensues)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   265
+        terse      => $Terse,      # avoid name output (where feasible)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   266
+        freezer    => $Freezer,    # name of Freezer method for objects
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   267
+        toaster    => $Toaster,    # name of method to revive objects
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   268
+        deepcopy   => $Deepcopy,   # do not cross-ref, except to stop recursion
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   269
+        quotekeys  => $Quotekeys,  # quote hash keys
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   270
+        'bless'    => $Bless,    # keyword to use for "bless"
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   271
+#        expdepth   => $Expdepth,   # cutoff depth for explicit dumping
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   272
+        maxdepth   => $Maxdepth,   # depth beyond which we give up
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   273
+	maxrecurse => $Maxrecurse, # depth beyond which we abort
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   274
+        useperl    => $Useperl,    # use the pure Perl implementation
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   275
+        sortkeys   => $Sortkeys,   # flag or filter for sorting hash keys
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   276
+        deparse    => $Deparse,    # use B::Deparse for coderefs
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   277
+        noseen     => $Sparseseen, # do not populate the seen hash unless necessary
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   278
+       };
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   279
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   280
   if ($Indent > 0) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   281
     $s->{xpad} = "  ";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   282
@@ -101,26 +107,39 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   283
   return bless($s, $c);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   284
 }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   285
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   286
-if ($] >= 5.008) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   287
-  # Packed numeric addresses take less memory. Plus pack is faster than sprintf
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   288
-  *init_refaddr_format = sub {};
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   289
+# Packed numeric addresses take less memory. Plus pack is faster than sprintf
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   290
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   291
+# Most users of current versions of Data::Dumper will be 5.008 or later.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   292
+# Anyone on 5.6.1 and 5.6.2 upgrading will be rare (particularly judging by
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   293
+# the bug reports from users on those platforms), so for the common case avoid
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   294
+# complexity, and avoid even compiling the unneeded code.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   295
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   296
-  *format_refaddr  = sub {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   297
+sub init_refaddr_format {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   298
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   299
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   300
+sub format_refaddr {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   301
     require Scalar::Util;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   302
     pack "J", Scalar::Util::refaddr(shift);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   303
-  };
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   304
-} else {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   305
-  *init_refaddr_format = sub {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   306
-    require Config;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   307
-    my $f = $Config::Config{uvxformat};
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   308
-    $f =~ tr/"//d;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   309
-    our $refaddr_format = "0x%" . $f;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   310
-  };
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   311
+};
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   312
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   313
-  *format_refaddr = sub {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   314
-    require Scalar::Util;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   315
-    sprintf our $refaddr_format, Scalar::Util::refaddr(shift);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   316
-  }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   317
+if ($] < 5.008) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   318
+    eval <<'EOC' or die;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   319
+    no warnings 'redefine';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   320
+    my $refaddr_format;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   321
+    sub init_refaddr_format {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   322
+        require Config;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   323
+        my $f = $Config::Config{uvxformat};
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   324
+        $f =~ tr/"//d;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   325
+        $refaddr_format = "0x%" . $f;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   326
+    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   327
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   328
+    sub format_refaddr {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   329
+        require Scalar::Util;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   330
+        sprintf $refaddr_format, Scalar::Util::refaddr(shift);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   331
+    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   332
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   333
+    1
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   334
+EOC
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   335
 }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   336
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   337
 #
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   338
@@ -132,21 +151,26 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   339
     init_refaddr_format();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   340
     my($k, $v, $id);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   341
     while (($k, $v) = each %$g) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   342
-      if (defined $v and ref $v) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   343
-	$id = format_refaddr($v);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   344
-	if ($k =~ /^[*](.*)$/) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   345
-	  $k = (ref $v eq 'ARRAY') ? ( "\\\@" . $1 ) :
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   346
-	       (ref $v eq 'HASH')  ? ( "\\\%" . $1 ) :
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   347
-	       (ref $v eq 'CODE')  ? ( "\\\&" . $1 ) :
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   348
-				     (   "\$" . $1 ) ;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   349
-	}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   350
-	elsif ($k !~ /^\$/) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   351
-	  $k = "\$" . $k;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   352
-	}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   353
-	$s->{seen}{$id} = [$k, $v];
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   354
+      if (defined $v) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   355
+        if (ref $v) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   356
+          $id = format_refaddr($v);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   357
+          if ($k =~ /^[*](.*)$/) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   358
+            $k = (ref $v eq 'ARRAY') ? ( "\\\@" . $1 ) :
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   359
+                 (ref $v eq 'HASH')  ? ( "\\\%" . $1 ) :
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   360
+                 (ref $v eq 'CODE')  ? ( "\\\&" . $1 ) :
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   361
+                 (   "\$" . $1 ) ;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   362
+          }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   363
+          elsif ($k !~ /^\$/) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   364
+            $k = "\$" . $k;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   365
+          }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   366
+          $s->{seen}{$id} = [$k, $v];
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   367
+        }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   368
+        else {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   369
+          carp "Only refs supported, ignoring non-ref item \$$k";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   370
+        }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   371
       }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   372
       else {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   373
-	carp "Only refs supported, ignoring non-ref item \$$k";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   374
+        carp "Value of ref must be defined; ignoring undefined item \$$k";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   375
       }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   376
     }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   377
     return $s;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   378
@@ -161,9 +185,14 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   379
 #
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   380
 sub Values {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   381
   my($s, $v) = @_;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   382
-  if (defined($v) && (ref($v) eq 'ARRAY'))  {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   383
-    $s->{todump} = [@$v];        # make a copy
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   384
-    return $s;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   385
+  if (defined($v)) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   386
+    if (ref($v) eq 'ARRAY')  {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   387
+      $s->{todump} = [@$v];        # make a copy
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   388
+      return $s;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   389
+    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   390
+    else {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   391
+      croak "Argument to Values, if provided, must be array ref";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   392
+    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   393
   }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   394
   else {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   395
     return @{$s->{todump}};
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   396
@@ -175,9 +204,14 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   397
 #
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   398
 sub Names {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   399
   my($s, $n) = @_;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   400
-  if (defined($n) && (ref($n) eq 'ARRAY'))  {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   401
-    $s->{names} = [@$n];         # make a copy
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   402
-    return $s;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   403
+  if (defined($n)) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   404
+    if (ref($n) eq 'ARRAY') {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   405
+      $s->{names} = [@$n];         # make a copy
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   406
+      return $s;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   407
+    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   408
+    else {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   409
+      croak "Argument to Names, if provided, must be array ref";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   410
+    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   411
   }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   412
   else {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   413
     return @{$s->{names}};
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   414
@@ -188,9 +222,8 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   415
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   416
 sub Dump {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   417
     return &Dumpxs
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   418
-	unless $Data::Dumper::Useperl || (ref($_[0]) && $_[0]->{useperl}) ||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   419
-	       $Data::Dumper::Useqq   || (ref($_[0]) && $_[0]->{useqq}) ||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   420
-	       $Data::Dumper::Deparse || (ref($_[0]) && $_[0]->{deparse});
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   421
+    unless $Data::Dumper::Useperl || (ref($_[0]) && $_[0]->{useperl}) ||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   422
+           $Data::Dumper::Deparse || (ref($_[0]) && $_[0]->{deparse});
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   423
     return &Dumpperl;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   424
 }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   425
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   426
@@ -208,40 +241,19 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   427
   $s = $s->new(@_) unless ref $s;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   428
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   429
   for $val (@{$s->{todump}}) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   430
-    my $out = "";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   431
     @post = ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   432
     $name = $s->{names}[$i++];
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   433
-    if (defined $name) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   434
-      if ($name =~ /^[*](.*)$/) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   435
-	if (defined $val) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   436
-	  $name = (ref $val eq 'ARRAY') ? ( "\@" . $1 ) :
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   437
-		  (ref $val eq 'HASH')  ? ( "\%" . $1 ) :
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   438
-		  (ref $val eq 'CODE')  ? ( "\*" . $1 ) :
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   439
-					  ( "\$" . $1 ) ;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   440
-	}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   441
-	else {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   442
-	  $name = "\$" . $1;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   443
-	}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   444
-      }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   445
-      elsif ($name !~ /^\$/) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   446
-	$name = "\$" . $name;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   447
-      }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   448
-    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   449
-    else {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   450
-      $name = "\$" . $s->{varname} . $i;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   451
-    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   452
+    $name = $s->_refine_name($name, $val, $i);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   453
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   454
     my $valstr;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   455
     {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   456
       local($s->{apad}) = $s->{apad};
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   457
-      $s->{apad} .= ' ' x (length($name) + 3) if $s->{indent} >= 2;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   458
+      $s->{apad} .= ' ' x (length($name) + 3) if $s->{indent} >= 2 and !$s->{terse};
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   459
       $valstr = $s->_dump($val, $name);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   460
     }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   461
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   462
     $valstr = "$name = " . $valstr . ';' if @post or !$s->{terse};
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   463
-    $out .= $s->{pad} . $valstr . $s->{sep};
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   464
-    $out .= $s->{pad} . join(';' . $s->{sep} . $s->{pad}, @post) 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   465
-      . ';' . $s->{sep} if @post;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   466
+    my $out = $s->_compose_out($valstr, \@post);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   467
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   468
     push @out, $out;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   469
   }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   470
@@ -255,6 +267,10 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   471
     return  "'" . $val .  "'";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   472
 }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   473
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   474
+# Old Perls (5.14-) have trouble resetting vstring magic when it is no
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   475
+# longer valid.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   476
+use constant _bad_vsmg => defined &_vstring && (_vstring(~v0)||'') eq "v0";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   477
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   478
 #
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   479
 # twist, toil and turn;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   480
 # and recurse, of course.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   481
@@ -263,8 +279,7 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   482
 #
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   483
 sub _dump {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   484
   my($s, $val, $name) = @_;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   485
-  my($sname);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   486
-  my($out, $realpack, $realtype, $type, $ipad, $id, $blesspad);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   487
+  my($out, $type, $id, $sname);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   488
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   489
   $type = ref $val;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   490
   $out = "";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   491
@@ -281,65 +296,70 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   492
     }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   493
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   494
     require Scalar::Util;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   495
-    $realpack = Scalar::Util::blessed($val);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   496
-    $realtype = $realpack ? Scalar::Util::reftype($val) : ref $val;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   497
+    my $realpack = Scalar::Util::blessed($val);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   498
+    my $realtype = $realpack ? Scalar::Util::reftype($val) : ref $val;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   499
     $id = format_refaddr($val);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   500
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   501
-    # if it has a name, we need to either look it up, or keep a tab
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   502
-    # on it so we know when we hit it later
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   503
-    if (defined($name) and length($name)) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   504
-      # keep a tab on it so that we dont fall into recursive pit
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   505
-      if (exists $s->{seen}{$id}) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   506
-#	if ($s->{expdepth} < $s->{level}) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   507
-	  if ($s->{purity} and $s->{level} > 0) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   508
-	    $out = ($realtype eq 'HASH')  ? '{}' :
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   509
-	      ($realtype eq 'ARRAY') ? '[]' :
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   510
-		'do{my $o}' ;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   511
-	    push @post, $name . " = " . $s->{seen}{$id}[0];
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   512
-	  }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   513
-	  else {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   514
-	    $out = $s->{seen}{$id}[0];
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   515
-	    if ($name =~ /^([\@\%])/) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   516
-	      my $start = $1;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   517
-	      if ($out =~ /^\\$start/) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   518
-		$out = substr($out, 1);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   519
-	      }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   520
-	      else {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   521
-		$out = $start . '{' . $out . '}';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   522
-	      }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   523
-	    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   524
-          }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   525
-	  return $out;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   526
-#        }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   527
+    # Note: By this point $name is always defined and of non-zero length.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   528
+    # Keep a tab on it so that we do not fall into recursive pit.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   529
+    if (exists $s->{seen}{$id}) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   530
+      if ($s->{purity} and $s->{level} > 0) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   531
+        $out = ($realtype eq 'HASH')  ? '{}' :
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   532
+               ($realtype eq 'ARRAY') ? '[]' :
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   533
+               'do{my $o}' ;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   534
+        push @post, $name . " = " . $s->{seen}{$id}[0];
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   535
       }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   536
       else {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   537
-        # store our name
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   538
-        $s->{seen}{$id} = [ (($name =~ /^[@%]/)     ? ('\\' . $name ) :
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   539
-			     ($realtype eq 'CODE' and
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   540
-			      $name =~ /^[*](.*)$/) ? ('\\&' . $1 )   :
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   541
-			     $name          ),
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   542
-			    $val ];
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   543
+        $out = $s->{seen}{$id}[0];
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   544
+        if ($name =~ /^([\@\%])/) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   545
+          my $start = $1;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   546
+          if ($out =~ /^\\$start/) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   547
+            $out = substr($out, 1);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   548
+          }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   549
+          else {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   550
+            $out = $start . '{' . $out . '}';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   551
+          }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   552
+        }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   553
       }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   554
+      return $out;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   555
     }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   556
-    my $no_bless = 0; 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   557
+    else {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   558
+      # store our name
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   559
+      $s->{seen}{$id} = [ (
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   560
+          ($name =~ /^[@%]/)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   561
+            ? ('\\' . $name )
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   562
+            : ($realtype eq 'CODE' and $name =~ /^[*](.*)$/)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   563
+              ? ('\\&' . $1 )
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   564
+              : $name
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   565
+        ), $val ];
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   566
+    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   567
+    my $no_bless = 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   568
     my $is_regex = 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   569
     if ( $realpack and ($] >= 5.009005 ? re::is_regexp($val) : $realpack eq 'Regexp') ) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   570
         $is_regex = 1;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   571
         $no_bless = $realpack eq 'Regexp';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   572
     }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   573
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   574
-    # If purity is not set and maxdepth is set, then check depth: 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   575
+    # If purity is not set and maxdepth is set, then check depth:
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   576
     # if we have reached maximum depth, return the string
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   577
     # representation of the thing we are currently examining
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   578
-    # at this depth (i.e., 'Foo=ARRAY(0xdeadbeef)'). 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   579
+    # at this depth (i.e., 'Foo=ARRAY(0xdeadbeef)').
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   580
     if (!$s->{purity}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   581
-	and $s->{maxdepth} > 0
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   582
-	and $s->{level} >= $s->{maxdepth})
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   583
+      and defined($s->{maxdepth})
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   584
+      and $s->{maxdepth} > 0
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   585
+      and $s->{level} >= $s->{maxdepth})
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   586
     {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   587
       return qq['$val'];
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   588
     }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   589
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   590
+    # avoid recursing infinitely [perl #122111]
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   591
+    if ($s->{maxrecurse} > 0
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   592
+        and $s->{level} >= $s->{maxrecurse}) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   593
+        die "Recursion limit of $s->{maxrecurse} exceeded";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   594
+    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   595
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   596
     # we have a blessed ref
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   597
+    my ($blesspad);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   598
     if ($realpack and !$no_bless) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   599
       $out = $s->{'bless'} . '( ';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   600
       $blesspad = $s->{apad};
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   601
@@ -347,186 +367,208 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   602
     }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   603
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   604
     $s->{level}++;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   605
-    $ipad = $s->{xpad} x $s->{level};
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   606
+    my $ipad = $s->{xpad} x $s->{level};
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   607
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   608
     if ($is_regex) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   609
         my $pat;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   610
-        # This really sucks, re:regexp_pattern is in ext/re/re.xs and not in 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   611
-        # universal.c, and even worse we cant just require that re to be loaded
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   612
-        # we *have* to use() it. 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   613
-        # We should probably move it to universal.c for 5.10.1 and fix this.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   614
-        # Currently we only use re::regexp_pattern when the re is blessed into another
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   615
-        # package. This has the disadvantage of meaning that a DD dump won't round trip
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   616
-        # as the pattern will be repeatedly wrapped with the same modifiers.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   617
-        # This is an aesthetic issue so we will leave it for now, but we could use
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   618
-        # regexp_pattern() in list context to get the modifiers separately.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   619
-        # But since this means loading the full debugging engine in process we wont
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   620
-        # bother unless its necessary for accuracy.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   621
-        if (($realpack ne 'Regexp') && defined(*re::regexp_pattern{CODE})) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   622
-            $pat = re::regexp_pattern($val);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   623
-        } else {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   624
-            $pat = "$val";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   625
+        my $flags = "";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   626
+        if (defined(*re::regexp_pattern{CODE})) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   627
+          ($pat, $flags) = re::regexp_pattern($val);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   628
+        }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   629
+        else {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   630
+          $pat = "$val";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   631
         }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   632
-        $pat =~ s,/,\\/,g;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   633
-        $out .= "qr/$pat/";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   634
+        $pat =~ s <(\\.)|/> { $1 || '\\/' }ge;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   635
+        $out .= "qr/$pat/$flags";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   636
     }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   637
-    elsif ($realtype eq 'SCALAR' || $realtype eq 'REF') {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   638
+    elsif ($realtype eq 'SCALAR' || $realtype eq 'REF'
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   639
+    || $realtype eq 'VSTRING') {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   640
       if ($realpack) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   641
-	$out .= 'do{\\(my $o = ' . $s->_dump($$val, "\${$name}") . ')}';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   642
+        $out .= 'do{\\(my $o = ' . $s->_dump($$val, "\${$name}") . ')}';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   643
       }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   644
       else {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   645
-	$out .= '\\' . $s->_dump($$val, "\${$name}");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   646
+        $out .= '\\' . $s->_dump($$val, "\${$name}");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   647
       }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   648
     }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   649
     elsif ($realtype eq 'GLOB') {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   650
-	$out .= '\\' . $s->_dump($$val, "*{$name}");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   651
+      $out .= '\\' . $s->_dump($$val, "*{$name}");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   652
     }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   653
     elsif ($realtype eq 'ARRAY') {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   654
       my($pad, $mname);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   655
       my($i) = 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   656
       $out .= ($name =~ /^\@/) ? '(' : '[';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   657
       $pad = $s->{sep} . $s->{pad} . $s->{apad};
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   658
-      ($name =~ /^\@(.*)$/) ? ($mname = "\$" . $1) : 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   659
-	# omit -> if $foo->[0]->{bar}, but not ${$foo->[0]}->{bar}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   660
-	($name =~ /^\\?[\%\@\*\$][^{].*[]}]$/) ? ($mname = $name) :
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   661
-	  ($mname = $name . '->');
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   662
+      ($name =~ /^\@(.*)$/) ? ($mname = "\$" . $1) :
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   663
+    # omit -> if $foo->[0]->{bar}, but not ${$foo->[0]}->{bar}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   664
+        ($name =~ /^\\?[\%\@\*\$][^{].*[]}]$/) ? ($mname = $name) :
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   665
+        ($mname = $name . '->');
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   666
       $mname .= '->' if $mname =~ /^\*.+\{[A-Z]+\}$/;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   667
       for my $v (@$val) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   668
-	$sname = $mname . '[' . $i . ']';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   669
-	$out .= $pad . $ipad . '#' . $i if $s->{indent} >= 3;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   670
-	$out .= $pad . $ipad . $s->_dump($v, $sname);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   671
-	$out .= "," if $i++ < $#$val;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   672
+        $sname = $mname . '[' . $i . ']';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   673
+        $out .= $pad . $ipad . '#' . $i
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   674
+          if $s->{indent} >= 3;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   675
+        $out .= $pad . $ipad . $s->_dump($v, $sname);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   676
+        $out .= "," if $i++ < $#$val;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   677
       }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   678
       $out .= $pad . ($s->{xpad} x ($s->{level} - 1)) if $i;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   679
       $out .= ($name =~ /^\@/) ? ')' : ']';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   680
     }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   681
     elsif ($realtype eq 'HASH') {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   682
-      my($k, $v, $pad, $lpad, $mname, $pair);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   683
+      my ($k, $v, $pad, $lpad, $mname, $pair);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   684
       $out .= ($name =~ /^\%/) ? '(' : '{';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   685
       $pad = $s->{sep} . $s->{pad} . $s->{apad};
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   686
       $lpad = $s->{apad};
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   687
       $pair = $s->{pair};
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   688
       ($name =~ /^\%(.*)$/) ? ($mname = "\$" . $1) :
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   689
-	# omit -> if $foo->[0]->{bar}, but not ${$foo->[0]}->{bar}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   690
-	($name =~ /^\\?[\%\@\*\$][^{].*[]}]$/) ? ($mname = $name) :
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   691
-	  ($mname = $name . '->');
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   692
+    # omit -> if $foo->[0]->{bar}, but not ${$foo->[0]}->{bar}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   693
+        ($name =~ /^\\?[\%\@\*\$][^{].*[]}]$/) ? ($mname = $name) :
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   694
+        ($mname = $name . '->');
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   695
       $mname .= '->' if $mname =~ /^\*.+\{[A-Z]+\}$/;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   696
-      my ($sortkeys, $keys, $key) = ("$s->{sortkeys}");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   697
+      my $sortkeys = defined($s->{sortkeys}) ? $s->{sortkeys} : '';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   698
+      my $keys = [];
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   699
       if ($sortkeys) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   700
-	if (ref($s->{sortkeys}) eq 'CODE') {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   701
-	  $keys = $s->{sortkeys}($val);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   702
-	  unless (ref($keys) eq 'ARRAY') {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   703
-	    carp "Sortkeys subroutine did not return ARRAYREF";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   704
-	    $keys = [];
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   705
-	  }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   706
-	}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   707
-	else {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   708
-	  $keys = [ sort keys %$val ];
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   709
-	}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   710
+        if (ref($s->{sortkeys}) eq 'CODE') {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   711
+          $keys = $s->{sortkeys}($val);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   712
+          unless (ref($keys) eq 'ARRAY') {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   713
+            carp "Sortkeys subroutine did not return ARRAYREF";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   714
+            $keys = [];
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   715
+          }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   716
+        }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   717
+        else {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   718
+          $keys = [ sort keys %$val ];
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   719
+        }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   720
       }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   721
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   722
       # Ensure hash iterator is reset
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   723
       keys(%$val);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   724
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   725
+      my $key;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   726
       while (($k, $v) = ! $sortkeys ? (each %$val) :
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   727
-	     @$keys ? ($key = shift(@$keys), $val->{$key}) :
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   728
-	     () ) 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   729
+         @$keys ? ($key = shift(@$keys), $val->{$key}) :
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   730
+         () )
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   731
       {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   732
-	my $nk = $s->_dump($k, "");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   733
-	$nk = $1 if !$s->{quotekeys} and $nk =~ /^[\"\']([A-Za-z_]\w*)[\"\']$/;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   734
-	$sname = $mname . '{' . $nk . '}';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   735
-	$out .= $pad . $ipad . $nk . $pair;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   736
-
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   737
-	# temporarily alter apad
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   738
-	$s->{apad} .= (" " x (length($nk) + 4)) if $s->{indent} >= 2;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   739
-	$out .= $s->_dump($val->{$k}, $sname) . ",";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   740
-	$s->{apad} = $lpad if $s->{indent} >= 2;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   741
+        my $nk = $s->_dump($k, "");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   742
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   743
+        # _dump doesn't quote numbers of this form
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   744
+        if ($s->{quotekeys} && $nk =~ /^(?:0|-?[1-9][0-9]{0,8})\z/) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   745
+          $nk = $s->{useqq} ? qq("$nk") : qq('$nk');
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   746
+        }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   747
+        elsif (!$s->{quotekeys} and $nk =~ /^[\"\']([A-Za-z_]\w*)[\"\']$/) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   748
+          $nk = $1
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   749
+        }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   750
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   751
+        $sname = $mname . '{' . $nk . '}';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   752
+        $out .= $pad . $ipad . $nk . $pair;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   753
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   754
+        # temporarily alter apad
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   755
+        $s->{apad} .= (" " x (length($nk) + 4))
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   756
+          if $s->{indent} >= 2;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   757
+        $out .= $s->_dump($val->{$k}, $sname) . ",";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   758
+        $s->{apad} = $lpad
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   759
+          if $s->{indent} >= 2;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   760
       }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   761
       if (substr($out, -1) eq ',') {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   762
-	chop $out;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   763
-	$out .= $pad . ($s->{xpad} x ($s->{level} - 1));
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   764
+        chop $out;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   765
+        $out .= $pad . ($s->{xpad} x ($s->{level} - 1));
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   766
       }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   767
       $out .= ($name =~ /^\%/) ? ')' : '}';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   768
     }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   769
     elsif ($realtype eq 'CODE') {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   770
       if ($s->{deparse}) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   771
-	require B::Deparse;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   772
-	my $sub =  'sub ' . (B::Deparse->new)->coderef2text($val);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   773
-	$pad    =  $s->{sep} . $s->{pad} . $s->{apad} . $s->{xpad} x ($s->{level} - 1);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   774
-	$sub    =~ s/\n/$pad/gse;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   775
-	$out   .=  $sub;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   776
-      } else {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   777
+        require B::Deparse;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   778
+        my $sub =  'sub ' . (B::Deparse->new)->coderef2text($val);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   779
+        $pad    =  $s->{sep} . $s->{pad} . $s->{apad} . $s->{xpad} x ($s->{level} - 1);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   780
+        $sub    =~ s/\n/$pad/gse;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   781
+        $out   .=  $sub;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   782
+      }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   783
+      else {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   784
         $out .= 'sub { "DUMMY" }';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   785
         carp "Encountered CODE ref, using dummy placeholder" if $s->{purity};
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   786
       }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   787
     }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   788
     else {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   789
-      croak "Can\'t handle $realtype type.";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   790
+      croak "Can't handle '$realtype' type";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   791
     }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   792
-    
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   793
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   794
     if ($realpack and !$no_bless) { # we have a blessed ref
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   795
       $out .= ', ' . _quote($realpack) . ' )';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   796
-      $out .= '->' . $s->{toaster} . '()'  if $s->{toaster} ne '';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   797
+      $out .= '->' . $s->{toaster} . '()'
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   798
+        if $s->{toaster} ne '';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   799
       $s->{apad} = $blesspad;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   800
     }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   801
     $s->{level}--;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   802
-
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   803
   }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   804
   else {                                 # simple scalar
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   805
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   806
     my $ref = \$_[1];
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   807
+    my $v;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   808
     # first, catalog the scalar
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   809
     if ($name ne '') {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   810
       $id = format_refaddr($ref);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   811
       if (exists $s->{seen}{$id}) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   812
         if ($s->{seen}{$id}[2]) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   813
-	  $out = $s->{seen}{$id}[0];
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   814
-	  #warn "[<$out]\n";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   815
-	  return "\${$out}";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   816
-	}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   817
+          $out = $s->{seen}{$id}[0];
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   818
+          #warn "[<$out]\n";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   819
+          return "\${$out}";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   820
+        }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   821
       }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   822
       else {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   823
-	#warn "[>\\$name]\n";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   824
-	$s->{seen}{$id} = ["\\$name", $ref];
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   825
+        #warn "[>\\$name]\n";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   826
+        $s->{seen}{$id} = ["\\$name", $ref];
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   827
       }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   828
     }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   829
-    if (ref($ref) eq 'GLOB' or "$ref" =~ /=GLOB\([^()]+\)$/) {  # glob
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   830
+    $ref = \$val;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   831
+    if (ref($ref) eq 'GLOB') {  # glob
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   832
       my $name = substr($val, 1);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   833
-      if ($name =~ /^[A-Za-z_][\w:]*$/) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   834
-	$name =~ s/^main::/::/;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   835
-	$sname = $name;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   836
+      if ($name =~ /^[A-Za-z_][\w:]*$/ && $name ne 'main::') {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   837
+        $name =~ s/^main::/::/;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   838
+        $sname = $name;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   839
       }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   840
       else {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   841
-	$sname = $s->_dump($name, "");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   842
-	$sname = '{' . $sname . '}';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   843
+        $sname = $s->_dump(
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   844
+          $name eq 'main::' || $] < 5.007 && $name eq "main::\0"
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   845
+            ? ''
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   846
+            : $name,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   847
+          "",
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   848
+        );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   849
+        $sname = '{' . $sname . '}';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   850
       }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   851
       if ($s->{purity}) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   852
-	my $k;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   853
-	local ($s->{level}) = 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   854
-	for $k (qw(SCALAR ARRAY HASH)) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   855
-	  my $gval = *$val{$k};
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   856
-	  next unless defined $gval;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   857
-	  next if $k eq "SCALAR" && ! defined $$gval;  # always there
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   858
-
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   859
-	  # _dump can push into @post, so we hold our place using $postlen
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   860
-	  my $postlen = scalar @post;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   861
-	  $post[$postlen] = "\*$sname = ";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   862
-	  local ($s->{apad}) = " " x length($post[$postlen]) if $s->{indent} >= 2;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   863
-	  $post[$postlen] .= $s->_dump($gval, "\*$sname\{$k\}");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   864
-	}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   865
+        my $k;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   866
+        local ($s->{level}) = 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   867
+        for $k (qw(SCALAR ARRAY HASH)) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   868
+          my $gval = *$val{$k};
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   869
+          next unless defined $gval;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   870
+          next if $k eq "SCALAR" && ! defined $$gval;  # always there
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   871
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   872
+          # _dump can push into @post, so we hold our place using $postlen
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   873
+          my $postlen = scalar @post;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   874
+          $post[$postlen] = "\*$sname = ";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   875
+          local ($s->{apad}) = " " x length($post[$postlen]) if $s->{indent} >= 2;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   876
+          $post[$postlen] .= $s->_dump($gval, "\*$sname\{$k\}");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   877
+        }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   878
       }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   879
       $out .= '*' . $sname;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   880
     }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   881
     elsif (!defined($val)) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   882
       $out .= "undef";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   883
     }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   884
-    elsif ($val =~ /^(?:0|-?[1-9]\d{0,8})\z/) { # safe decimal number
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   885
+    elsif (defined &_vstring and $v = _vstring($val)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   886
+      and !_bad_vsmg || eval $v eq $val) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   887
+      $out .= $v;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   888
+    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   889
+    elsif (!defined &_vstring
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   890
+       and ref $ref eq 'VSTRING' || eval{Scalar::Util::isvstring($val)}) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   891
+      $out .= sprintf "%vd", $val;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   892
+    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   893
+    # \d here would treat "1\x{660}" as a safe decimal number
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   894
+    elsif ($val =~ /^(?:0|-?[1-9][0-9]{0,8})\z/) { # safe decimal number
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   895
       $out .= $val;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   896
     }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   897
-    else {				 # string
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   898
+    else {                 # string
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   899
       if ($s->{useqq} or $val =~ tr/\0-\377//c) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   900
         # Fall back to qq if there's Unicode
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   901
-	$out .= qquote($val, $s->{useqq});
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   902
+        $out .= qquote($val, $s->{useqq});
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   903
       }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   904
       else {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   905
         $out .= _quote($val);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   906
@@ -545,7 +587,7 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   907
   }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   908
   return $out;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   909
 }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   910
-  
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   911
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   912
 #
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   913
 # non-OO style of earlier version
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   914
 #
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   915
@@ -558,12 +600,8 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   916
   return Data::Dumper->Dumpxs([@_], []);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   917
 }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   918
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   919
-sub Dumpf { return Data::Dumper->Dump(@_) }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   920
-
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   921
-sub Dumpp { print Data::Dumper->Dump(@_) }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   922
-
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   923
 #
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   924
-# reset the "seen" cache 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   925
+# reset the "seen" cache
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   926
 #
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   927
 sub Reset {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   928
   my($s) = shift;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   929
@@ -650,6 +688,11 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   930
   defined($v) ? (($s->{'maxdepth'} = $v), return $s) : $s->{'maxdepth'};
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   931
 }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   932
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   933
+sub Maxrecurse {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   934
+  my($s, $v) = @_;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   935
+  defined($v) ? (($s->{'maxrecurse'} = $v), return $s) : $s->{'maxrecurse'};
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   936
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   937
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   938
 sub Useperl {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   939
   my($s, $v) = @_;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   940
   defined($v) ? (($s->{'useperl'} = $v), return $s) : $s->{'useperl'};
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   941
@@ -665,8 +708,13 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   942
   defined($v) ? (($s->{'deparse'} = $v), return $s) : $s->{'deparse'};
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   943
 }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   944
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   945
+sub Sparseseen {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   946
+  my($s, $v) = @_;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   947
+  defined($v) ? (($s->{'noseen'} = $v), return $s) : $s->{'noseen'};
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   948
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   949
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   950
 # used by qquote below
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   951
-my %esc = (  
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   952
+my %esc = (
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   953
     "\a" => "\\a",
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   954
     "\b" => "\\b",
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   955
     "\t" => "\\t",
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   956
@@ -681,8 +729,8 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   957
   local($_) = shift;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   958
   s/([\\\"\@\$])/\\$1/g;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   959
   my $bytes; { use bytes; $bytes = length }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   960
-  s/([^\x00-\x7f])/'\x{'.sprintf("%x",ord($1)).'}'/ge if $bytes > length;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   961
-  return qq("$_") unless 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   962
+  s/([[:^ascii:]])/'\x{'.sprintf("%x",ord($1)).'}'/ge if $bytes > length;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   963
+  return qq("$_") unless
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   964
     /[^ !"\#\$%&'()*+,\-.\/0-9:;<=>?\@A-Z[\\\]^_`a-z{|}~]/;  # fast exit
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   965
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   966
   my $high = shift || "";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   967
@@ -719,6 +767,45 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   968
 # access to sortsv() from XS
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   969
 sub _sortkeys { [ sort keys %{$_[0]} ] }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   970
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   971
+sub _refine_name {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   972
+    my $s = shift;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   973
+    my ($name, $val, $i) = @_;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   974
+    if (defined $name) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   975
+      if ($name =~ /^[*](.*)$/) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   976
+        if (defined $val) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   977
+            $name = (ref $val eq 'ARRAY') ? ( "\@" . $1 ) :
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   978
+              (ref $val eq 'HASH')  ? ( "\%" . $1 ) :
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   979
+              (ref $val eq 'CODE')  ? ( "\*" . $1 ) :
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   980
+              ( "\$" . $1 ) ;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   981
+        }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   982
+        else {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   983
+          $name = "\$" . $1;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   984
+        }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   985
+      }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   986
+      elsif ($name !~ /^\$/) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   987
+        $name = "\$" . $name;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   988
+      }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   989
+    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   990
+    else { # no names provided
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   991
+      $name = "\$" . $s->{varname} . $i;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   992
+    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   993
+    return $name;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   994
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   995
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   996
+sub _compose_out {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   997
+    my $s = shift;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   998
+    my ($valstr, $postref) = @_;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   999
+    my $out = "";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1000
+    $out .= $s->{pad} . $valstr . $s->{sep};
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1001
+    if (@{$postref}) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1002
+        $out .= $s->{pad} .
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1003
+            join(';' . $s->{sep} . $s->{pad}, @{$postref}) .
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1004
+            ';' .
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1005
+            $s->{sep};
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1006
+    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1007
+    return $out;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1008
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1009
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1010
 1;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1011
 __END__
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1012
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1013
@@ -759,7 +846,8 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1014
 structures correctly.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1015
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1016
 The return value can be C<eval>ed to get back an identical copy of the
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1017
-original reference structure.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1018
+original reference structure.  (Please do consider the security implications
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1019
+of eval'ing code from untrusted sources!)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1020
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1021
 Any references that are the same as one of those passed in will be named
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1022
 C<$VAR>I<n> (where I<n> is a numeric suffix), and other duplicate references
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1023
@@ -777,7 +865,7 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1024
 you need to ensure that any variables it accesses are previously declared.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1025
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1026
 In the extended usage form, the references to be dumped can be given
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1027
-user-specified names.  If a name begins with a C<*>, the output will 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1028
+user-specified names.  If a name begins with a C<*>, the output will
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1029
 describe the dereferenced type of the supplied reference for hashes and
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1030
 arrays, and coderefs.  Output of names will be avoided where possible if
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1031
 the C<Terse> flag is set.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1032
@@ -787,7 +875,7 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1033
 chained together.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1034
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1035
 Several styles of output are possible, all controlled by setting
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1036
-the C<Indent> flag.  See L<Configuration Variables or Methods> below 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1037
+the C<Indent> flag.  See L<Configuration Variables or Methods> below
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1038
 for details.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1039
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1040
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1041
@@ -839,15 +927,21 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1042
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1043
 =item I<$OBJ>->Values(I<[ARRAYREF]>)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1044
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1045
-Queries or replaces the internal array of values that will be dumped.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1046
-When called without arguments, returns the values.  Otherwise, returns the
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1047
-object itself.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1048
+Queries or replaces the internal array of values that will be dumped.  When
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1049
+called without arguments, returns the values as a list.  When called with a
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1050
+reference to an array of replacement values, returns the object itself.  When
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1051
+called with any other type of argument, dies.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1052
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1053
 =item I<$OBJ>->Names(I<[ARRAYREF]>)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1054
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1055
 Queries or replaces the internal array of user supplied names for the values
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1056
-that will be dumped.  When called without arguments, returns the names.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1057
-Otherwise, returns the object itself.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1058
+that will be dumped.  When called without arguments, returns the names.  When
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1059
+called with an array of replacement names, returns the object itself.  If the
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1060
+number of replacement names exceeds the number of values to be named, the
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1061
+excess names will not be used.  If the number of replacement names falls short
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1062
+of the number of values to be named, the list of replacement names will be
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1063
+exhausted and remaining values will not be renamed.  When
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1064
+called with any other type of argument, dies.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1065
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1066
 =item I<$OBJ>->Reset
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1067
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1068
@@ -874,7 +968,7 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1069
 Several configuration variables can be used to control the kind of output
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1070
 generated when using the procedural interface.  These variables are usually
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1071
 C<local>ized in a block so that other parts of the code are not affected by
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1072
-the change.  
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1073
+the change.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1074
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1075
 These variables determine the default state of the object created by calling
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1076
 the C<new> method, but cannot be used to alter the state of the object
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1077
@@ -987,7 +1081,7 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1078
 $Data::Dumper::Quotekeys  I<or>  $I<OBJ>->Quotekeys(I<[NEWVAL]>)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1079
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1080
 Can be set to a boolean value to control whether hash keys are quoted.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1081
-A false value will avoid quoting hash keys when it looks like a simple
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1082
+A defined false value will avoid quoting hash keys when it looks like a simple
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1083
 string.  Default is 1, which will always enclose hash keys in quotes.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1084
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1085
 =item *
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1086
@@ -1019,8 +1113,18 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1087
 Can be set to a positive integer that specifies the depth beyond which
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1088
 we don't venture into a structure.  Has no effect when
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1089
 C<Data::Dumper::Purity> is set.  (Useful in debugger when we often don't
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1090
-want to see more than enough).  Default is 0, which means there is 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1091
-no maximum depth. 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1092
+want to see more than enough).  Default is 0, which means there is
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1093
+no maximum depth.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1094
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1095
+=item *
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1096
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1097
+$Data::Dumper::Maxrecurse  I<or>  $I<OBJ>->Maxrecurse(I<[NEWVAL]>)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1098
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1099
+Can be set to a positive integer that specifies the depth beyond which
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1100
+recursion into a structure will throw an exception.  This is intended
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1101
+as a security measure to prevent perl running out of stack space when
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1102
+dumping an excessively deep structure.  Can be set to 0 to remove the
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1103
+limit.  Default is 1000.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1104
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1105
 =item *
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1106
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1107
@@ -1064,6 +1168,26 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1108
 Caution : use this option only if you know that your coderefs will be
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1109
 properly reconstructed by C<B::Deparse>.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1110
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1111
+=item *
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1112
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1113
+$Data::Dumper::Sparseseen I<or>  $I<OBJ>->Sparseseen(I<[NEWVAL]>)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1114
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1115
+By default, Data::Dumper builds up the "seen" hash of scalars that
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1116
+it has encountered during serialization. This is very expensive.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1117
+This seen hash is necessary to support and even just detect circular
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1118
+references. It is exposed to the user via the C<Seen()> call both
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1119
+for writing and reading.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1120
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1121
+If you, as a user, do not need explicit access to the "seen" hash,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1122
+then you can set the C<Sparseseen> option to allow Data::Dumper
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1123
+to eschew building the "seen" hash for scalars that are known not
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1124
+to possess more than one reference. This speeds up serialization
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1125
+considerably if you use the XS implementation.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1126
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1127
+Note: If you turn on C<Sparseseen>, then you must not rely on the
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1128
+content of the seen hash since its contents will be an
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1129
+implementation detail!
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1130
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1131
 =back
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1132
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1133
 =head2 Exports
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1134
@@ -1095,7 +1219,7 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1135
     $foo = Foo->new;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1136
     $fuz = Fuz->new;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1137
     $boo = [ 1, [], "abcd", \*foo,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1138
-             {1 => 'a', 023 => 'b', 0x45 => 'c'}, 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1139
+             {1 => 'a', 023 => 'b', 0x45 => 'c'},
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1140
              \\"p\q\'r", $foo, $fuz];
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1141
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1142
     ########
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1143
@@ -1106,20 +1230,20 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1144
     print($@) if $@;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1145
     print Dumper($boo), Dumper($bar);  # pretty print (no array indices)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1146
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1147
-    $Data::Dumper::Terse = 1;          # don't output names where feasible
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1148
-    $Data::Dumper::Indent = 0;         # turn off all pretty print
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1149
+    $Data::Dumper::Terse = 1;        # don't output names where feasible
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1150
+    $Data::Dumper::Indent = 0;       # turn off all pretty print
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1151
     print Dumper($boo), "\n";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1152
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1153
-    $Data::Dumper::Indent = 1;         # mild pretty print
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1154
+    $Data::Dumper::Indent = 1;       # mild pretty print
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1155
     print Dumper($boo);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1156
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1157
-    $Data::Dumper::Indent = 3;         # pretty print with array indices
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1158
+    $Data::Dumper::Indent = 3;       # pretty print with array indices
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1159
     print Dumper($boo);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1160
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1161
-    $Data::Dumper::Useqq = 1;          # print strings in double quotes
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1162
+    $Data::Dumper::Useqq = 1;        # print strings in double quotes
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1163
     print Dumper($boo);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1164
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1165
-    $Data::Dumper::Pair = " : ";       # specify hash key/value separator
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1166
+    $Data::Dumper::Pair = " : ";     # specify hash key/value separator
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1167
     print Dumper($boo);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1168
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1169
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1170
@@ -1185,20 +1309,20 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1171
     sub new { bless { state => 'awake' }, shift }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1172
     sub Freeze {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1173
         my $s = shift;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1174
-	print STDERR "preparing to sleep\n";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1175
-	$s->{state} = 'asleep';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1176
-	return bless $s, 'Foo::ZZZ';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1177
+        print STDERR "preparing to sleep\n";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1178
+        $s->{state} = 'asleep';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1179
+        return bless $s, 'Foo::ZZZ';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1180
     }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1181
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1182
     package Foo::ZZZ;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1183
     sub Thaw {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1184
         my $s = shift;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1185
-	print STDERR "waking up\n";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1186
-	$s->{state} = 'awake';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1187
-	return bless $s, 'Foo';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1188
+        print STDERR "waking up\n";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1189
+        $s->{state} = 'awake';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1190
+        return bless $s, 'Foo';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1191
     }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1192
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1193
-    package Foo;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1194
+    package main;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1195
     use Data::Dumper;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1196
     $a = Foo->new;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1197
     $b = Data::Dumper->new([$a], ['c']);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1198
@@ -1291,13 +1415,13 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1199
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1200
 Gurusamy Sarathy        [email protected]
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1201
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1202
-Copyright (c) 1996-98 Gurusamy Sarathy. All rights reserved.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1203
+Copyright (c) 1996-2014 Gurusamy Sarathy. All rights reserved.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1204
 This program is free software; you can redistribute it and/or
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1205
 modify it under the same terms as Perl itself.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1206
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1207
 =head1 VERSION
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1208
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1209
-Version 2.125  (Aug  8 2009)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1210
+Version 2.154  (September 18 2014)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1211
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1212
 =head1 SEE ALSO
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1213
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1214
diff -ur --new-file perl-5.12.5/dist/Data-Dumper/Dumper.xs perl-5.12.5_dumper/dist/Data-Dumper/Dumper.xs
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1215
--- perl-5.12.5/dist/Data-Dumper/Dumper.xs	2012-11-03 19:25:59.000000000 -0400
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1216
+++ perl-5.12.5_dumper/dist/Data-Dumper/Dumper.xs	2014-10-09 15:06:36.168048722 -0400
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1217
@@ -12,22 +12,32 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1218
 #  define DD_USE_OLD_ID_FORMAT
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1219
 #endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1220
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1221
+#ifndef isWORDCHAR
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1222
+#   define isWORDCHAR(c) isALNUM(c)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1223
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1224
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1225
 static I32 num_q (const char *s, STRLEN slen);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1226
 static I32 esc_q (char *dest, const char *src, STRLEN slen);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1227
-static I32 esc_q_utf8 (pTHX_ SV *sv, const char *src, STRLEN slen);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1228
-static I32 needs_quote(register const char *s);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1229
+static I32 esc_q_utf8 (pTHX_ SV *sv, const char *src, STRLEN slen, I32 do_utf8, I32 useqq);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1230
+static bool globname_needs_quote(const char *s, STRLEN len);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1231
+static bool key_needs_quote(const char *s, STRLEN len);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1232
+static bool safe_decimal_number(const char *p, STRLEN len);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1233
 static SV *sv_x (pTHX_ SV *sv, const char *str, STRLEN len, I32 n);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1234
 static I32 DD_dump (pTHX_ SV *val, const char *name, STRLEN namelen, SV *retval,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1235
 		    HV *seenhv, AV *postav, I32 *levelp, I32 indent,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1236
 		    SV *pad, SV *xpad, SV *apad, SV *sep, SV *pair,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1237
 		    SV *freezer, SV *toaster,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1238
 		    I32 purity, I32 deepcopy, I32 quotekeys, SV *bless,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1239
-		    I32 maxdepth, SV *sortkeys);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1240
+		    I32 maxdepth, SV *sortkeys, int use_sparse_seen_hash, I32 useqq, IV maxrecurse);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1241
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1242
 #ifndef HvNAME_get
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1243
 #define HvNAME_get HvNAME
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1244
 #endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1245
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1246
+/* Perls 7 through portions of 15 used utf8_to_uvchr() which didn't have a
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1247
+ * length parameter.  This wrongly allowed reading beyond the end of buffer
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1248
+ * given malformed input */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1249
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1250
 #if PERL_VERSION <= 6 /* Perl 5.6 and earlier */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1251
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1252
 # ifdef EBCDIC
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1253
@@ -37,21 +47,43 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1254
 # endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1255
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1256
 UV
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1257
-Perl_utf8_to_uvchr(pTHX_ U8 *s, STRLEN *retlen)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1258
+Perl_utf8_to_uvchr_buf(pTHX_ U8 *s, U8 *send, STRLEN *retlen)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1259
 {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1260
-    const UV uv = utf8_to_uv(s, UTF8_MAXLEN, retlen,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1261
+    const UV uv = utf8_to_uv(s, send - s, retlen,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1262
                     ckWARN(WARN_UTF8) ? 0 : UTF8_ALLOW_ANY);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1263
     return UNI_TO_NATIVE(uv);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1264
 }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1265
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1266
 # if !defined(PERL_IMPLICIT_CONTEXT)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1267
-#  define utf8_to_uvchr	     Perl_utf8_to_uvchr
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1268
+#  define utf8_to_uvchr_buf	     Perl_utf8_to_uvchr_buf
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1269
 # else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1270
-#  define utf8_to_uvchr(a,b) Perl_utf8_to_uvchr(aTHX_ a,b)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1271
+#  define utf8_to_uvchr_buf(a,b,c) Perl_utf8_to_uvchr_buf(aTHX_ a,b,c)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1272
 # endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1273
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1274
 #endif /* PERL_VERSION <= 6 */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1275
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1276
+/* Perl 5.7 through part of 5.15 */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1277
+#if PERL_VERSION > 6 && PERL_VERSION <= 15 && ! defined(utf8_to_uvchr_buf)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1278
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1279
+UV
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1280
+Perl_utf8_to_uvchr_buf(pTHX_ U8 *s, U8 *send, STRLEN *retlen)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1281
+{
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1282
+    /* We have to discard <send> for these versions; hence can read off the
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1283
+     * end of the buffer if there is a malformation that indicates the
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1284
+     * character is longer than the space available */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1285
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1286
+    const UV uv = utf8_to_uvchr(s, retlen);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1287
+    return UNI_TO_NATIVE(uv);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1288
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1289
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1290
+# if !defined(PERL_IMPLICIT_CONTEXT)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1291
+#  define utf8_to_uvchr_buf	     Perl_utf8_to_uvchr_buf
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1292
+# else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1293
+#  define utf8_to_uvchr_buf(a,b,c) Perl_utf8_to_uvchr_buf(aTHX_ a,b,c)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1294
+# endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1295
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1296
+#endif /* PERL_VERSION > 6 && <= 15 */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1297
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1298
 /* Changes in 5.7 series mean that now IOK is only set if scalar is
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1299
    precisely integer but in 5.6 and earlier we need to do a more
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1300
    complex test  */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1301
@@ -61,38 +93,95 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1302
 #define DD_is_integer(sv) SvIOK(sv)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1303
 #endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1304
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1305
-/* does a string need to be protected? */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1306
-static I32
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1307
-needs_quote(register const char *s)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1308
+/* does a glob name need to be protected? */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1309
+static bool
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1310
+globname_needs_quote(const char *s, STRLEN len)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1311
 {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1312
+    const char *send = s+len;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1313
 TOP:
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1314
     if (s[0] == ':') {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1315
-	if (*++s) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1316
+	if (++s<send) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1317
 	    if (*s++ != ':')
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1318
-		return 1;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1319
+                return TRUE;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1320
 	}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1321
 	else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1322
-	    return 1;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1323
+	    return TRUE;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1324
     }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1325
     if (isIDFIRST(*s)) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1326
-	while (*++s)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1327
-	    if (!isALNUM(*s)) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1328
+	while (++s<send)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1329
+	    if (!isWORDCHAR(*s)) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1330
 		if (*s == ':')
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1331
 		    goto TOP;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1332
 		else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1333
-		    return 1;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1334
+                    return TRUE;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1335
 	    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1336
     }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1337
     else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1338
-	return 1;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1339
-    return 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1340
+        return TRUE;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1341
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1342
+    return FALSE;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1343
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1344
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1345
+/* does a hash key need to be quoted (to the left of => ).
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1346
+   Previously this used (globname_)needs_quote() which accepted strings
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1347
+   like '::foo', but these aren't safe as unquoted keys under strict.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1348
+*/
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1349
+static bool
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1350
+key_needs_quote(const char *s, STRLEN len) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1351
+    const char *send = s+len;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1352
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1353
+    if (safe_decimal_number(s, len)) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1354
+        return FALSE;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1355
+    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1356
+    else if (isIDFIRST(*s)) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1357
+        while (++s<send)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1358
+            if (!isWORDCHAR(*s))
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1359
+                return TRUE;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1360
+    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1361
+    else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1362
+        return TRUE;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1363
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1364
+    return FALSE;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1365
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1366
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1367
+/* Check that the SV can be represented as a simple decimal integer.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1368
+ *
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1369
+ * The perl code does this by matching against /^(?:0|-?[1-9]\d{0,8})\z/
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1370
+*/
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1371
+static bool
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1372
+safe_decimal_number(const char *p, STRLEN len) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1373
+    if (len == 1 && *p == '0')
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1374
+        return TRUE;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1375
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1376
+    if (len && *p == '-') {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1377
+        ++p;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1378
+        --len;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1379
+    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1380
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1381
+    if (len == 0 || *p < '1' || *p > '9')
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1382
+        return FALSE;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1383
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1384
+    ++p;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1385
+    --len;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1386
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1387
+    if (len > 8)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1388
+        return FALSE;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1389
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1390
+    while (len > 0) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1391
+         /* the perl code checks /\d/ but we don't want unicode digits here */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1392
+         if (*p < '0' || *p > '9')
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1393
+             return FALSE;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1394
+         ++p;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1395
+         --len;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1396
+    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1397
+    return TRUE;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1398
 }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1399
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1400
 /* count the number of "'"s and "\"s in string */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1401
 static I32
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1402
-num_q(register const char *s, register STRLEN slen)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1403
+num_q(const char *s, STRLEN slen)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1404
 {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1405
-    register I32 ret = 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1406
+    I32 ret = 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1407
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1408
     while (slen > 0) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1409
 	if (*s == '\'' || *s == '\\')
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1410
@@ -108,9 +197,9 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1411
 /* slen number of characters in s will be escaped */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1412
 /* destination must be long enough for additional chars */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1413
 static I32
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1414
-esc_q(register char *d, register const char *s, register STRLEN slen)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1415
+esc_q(char *d, const char *s, STRLEN slen)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1416
 {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1417
-    register I32 ret = 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1418
+    I32 ret = 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1419
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1420
     while (slen > 0) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1421
 	switch (*s) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1422
@@ -118,6 +207,7 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1423
 	case '\\':
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1424
 	    *d = '\\';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1425
 	    ++d; ++ret;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1426
+            /* FALLTHROUGH */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1427
 	default:
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1428
 	    *d = *s;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1429
 	    ++d; ++s; --slen;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1430
@@ -127,8 +217,9 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1431
     return ret;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1432
 }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1433
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1434
+/* this function is also misused for implementing $Useqq */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1435
 static I32
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1436
-esc_q_utf8(pTHX_ SV* sv, register const char *src, register STRLEN slen)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1437
+esc_q_utf8(pTHX_ SV* sv, const char *src, STRLEN slen, I32 do_utf8, I32 useqq)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1438
 {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1439
     char *r, *rstart;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1440
     const char *s = src;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1441
@@ -142,10 +233,21 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1442
     STRLEN single_quotes = 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1443
     STRLEN qq_escapables = 0;	/* " $ @ will need a \ in "" strings.  */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1444
     STRLEN normal = 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1445
+    int increment;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1446
+    UV next;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1447
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1448
     /* this will need EBCDICification */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1449
-    for (s = src; s < send; s += UTF8SKIP(s)) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1450
-        const UV k = utf8_to_uvchr((U8*)s, NULL);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1451
+    for (s = src; s < send; do_utf8 ? s += increment : s++) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1452
+        const UV k = do_utf8 ? utf8_to_uvchr_buf((U8*)s, (U8*) send, NULL) : *(U8*)s;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1453
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1454
+        /* check for invalid utf8 */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1455
+        increment = (k == 0 && *s != '\0') ? 1 : UTF8SKIP(s);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1456
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1457
+	/* this is only used to check if the next character is an
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1458
+	 * ASCII digit, which are invariant, so if the following collects
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1459
+	 * a UTF-8 start byte it does no harm
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1460
+	 */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1461
+	next = (s + increment >= send ) ? 0 : *(U8*)(s+increment);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1462
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1463
 #ifdef EBCDIC
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1464
 	if (!isprint(k) || k > 256) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1465
@@ -160,6 +262,17 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1466
                 k <= 0xFFFFFFFF ? 8 : UVSIZE * 4
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1467
 #endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1468
                 );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1469
+#ifndef EBCDIC
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1470
+	} else if (useqq &&
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1471
+	    /* we can't use the short form like '\0' if followed by a digit */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1472
+                   (((k >= 7 && k <= 10) || k == 12 || k == 13 || k == 27)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1473
+                 || (k < 8 && (next < '0' || next > '9')))) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1474
+	    grow += 2;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1475
+	} else if (useqq && k <= 31 && (next < '0' || next > '9')) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1476
+	    grow += 3;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1477
+	} else if (useqq && (k <= 31 || k >= 127)) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1478
+	    grow += 4;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1479
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1480
         } else if (k == '\\') {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1481
             backslashes++;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1482
         } else if (k == '\'') {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1483
@@ -170,7 +283,7 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1484
             normal++;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1485
         }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1486
     }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1487
-    if (grow) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1488
+    if (grow || useqq) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1489
         /* We have something needing hex. 3 is ""\0 */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1490
         sv_grow(sv, cur + 3 + grow + 2*backslashes + single_quotes
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1491
 		+ 2*qq_escapables + normal);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1492
@@ -178,8 +291,8 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1493
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1494
         *r++ = '"';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1495
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1496
-        for (s = src; s < send; s += UTF8SKIP(s)) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1497
-            const UV k = utf8_to_uvchr((U8*)s, NULL);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1498
+        for (s = src; s < send; do_utf8 ? s += UTF8SKIP(s) : s++) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1499
+            const UV k = do_utf8 ? utf8_to_uvchr_buf((U8*)s, (U8*) send, NULL) : *(U8*)s;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1500
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1501
             if (k == '"' || k == '\\' || k == '$' || k == '@') {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1502
                 *r++ = '\\';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1503
@@ -189,7 +302,44 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1504
 #ifdef EBCDIC
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1505
 	      if (isprint(k) && k < 256)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1506
 #else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1507
-	      if (k < 0x80)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1508
+	      if (useqq && (k <= 31 || k == 127 || (!do_utf8 && k > 127))) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1509
+	        bool next_is_digit;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1510
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1511
+		*r++ = '\\';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1512
+		switch (k) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1513
+		case 7:  *r++ = 'a'; break;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1514
+		case 8:  *r++ = 'b'; break;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1515
+		case 9:  *r++ = 't'; break;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1516
+		case 10: *r++ = 'n'; break;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1517
+		case 12: *r++ = 'f'; break;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1518
+		case 13: *r++ = 'r'; break;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1519
+		case 27: *r++ = 'e'; break;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1520
+		default:
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1521
+		    increment = (k == 0 && *s != '\0') ? 1 : UTF8SKIP(s);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1522
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1523
+		    /* only ASCII digits matter here, which are invariant,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1524
+		     * since we only encode characters \377 and under, or
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1525
+		     * \x177 and under for a unicode string
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1526
+		     */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1527
+		    next = (s+increment < send) ? *(U8*)(s+increment) : 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1528
+		    next_is_digit = next >= '0' && next <= '9';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1529
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1530
+		    /* faster than
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1531
+		     * r = r + my_sprintf(r, "%o", k);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1532
+		     */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1533
+		    if (k <= 7 && !next_is_digit) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1534
+			*r++ = (char)k + '0';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1535
+		    } else if (k <= 63 && !next_is_digit) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1536
+			*r++ = (char)(k>>3) + '0';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1537
+			*r++ = (char)(k&7) + '0';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1538
+		    } else {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1539
+			*r++ = (char)(k>>6) + '0';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1540
+			*r++ = (char)((k&63)>>3) + '0';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1541
+			*r++ = (char)(k&7) + '0';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1542
+		    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1543
+		}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1544
+	    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1545
+	    else if (k < 0x80)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1546
 #endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1547
                 *r++ = (char)k;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1548
             else {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1549
@@ -229,7 +379,7 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1550
 sv_x(pTHX_ SV *sv, const char *str, STRLEN len, I32 n)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1551
 {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1552
     if (!sv)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1553
-	sv = newSVpvn("", 0);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1554
+	sv = newSVpvs("");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1555
 #ifdef DEBUGGING
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1556
     else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1557
 	assert(SvTYPE(sv) >= SVt_PV);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1558
@@ -262,10 +412,11 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1559
 DD_dump(pTHX_ SV *val, const char *name, STRLEN namelen, SV *retval, HV *seenhv,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1560
 	AV *postav, I32 *levelp, I32 indent, SV *pad, SV *xpad,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1561
 	SV *apad, SV *sep, SV *pair, SV *freezer, SV *toaster, I32 purity,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1562
-	I32 deepcopy, I32 quotekeys, SV *bless, I32 maxdepth, SV *sortkeys)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1563
+	I32 deepcopy, I32 quotekeys, SV *bless, I32 maxdepth, SV *sortkeys,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1564
+        int use_sparse_seen_hash, I32 useqq, IV maxrecurse)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1565
 {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1566
     char tmpbuf[128];
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1567
-    U32 i;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1568
+    Size_t i;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1569
     char *c, *r, *realpack;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1570
 #ifdef DD_USE_OLD_ID_FORMAT
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1571
     char id[128];
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1572
@@ -289,7 +440,7 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1573
     if (!val)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1574
 	return 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1575
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1576
-    /* If the ouput buffer has less than some arbitary amount of space
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1577
+    /* If the ouput buffer has less than some arbitrary amount of space
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1578
        remaining, then enlarge it. For the test case (25M of output),
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1579
        *1.1 was slower, *2.0 was the same, so the first guess of 1.5 is
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1580
 	deemed to be good enough.  */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1581
@@ -312,7 +463,7 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1582
 	{
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1583
 	    dSP; ENTER; SAVETMPS; PUSHMARK(sp);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1584
 	    XPUSHs(val); PUTBACK;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1585
-	    i = perl_call_method(SvPVX_const(freezer), G_EVAL|G_VOID);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1586
+	    i = perl_call_method(SvPVX_const(freezer), G_EVAL|G_VOID|G_DISCARD);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1587
 	    SPAGAIN;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1588
 	    if (SvTRUE(ERRSV))
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1589
 		warn("WARNING(Freezer method call failed): %"SVf"", ERRSV);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1590
@@ -347,13 +498,13 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1591
 			SV *postentry;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1592
 			
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1593
 			if (realtype == SVt_PVHV)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1594
-			    sv_catpvn(retval, "{}", 2);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1595
+			    sv_catpvs(retval, "{}");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1596
 			else if (realtype == SVt_PVAV)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1597
-			    sv_catpvn(retval, "[]", 2);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1598
+			    sv_catpvs(retval, "[]");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1599
 			else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1600
-			    sv_catpvn(retval, "do{my $o}", 9);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1601
+			    sv_catpvs(retval, "do{my $o}");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1602
 			postentry = newSVpvn(name, namelen);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1603
-			sv_catpvn(postentry, " = ", 3);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1604
+			sv_catpvs(postentry, " = ");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1605
 			sv_catsv(postentry, othername);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1606
 			av_push(postav, postentry);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1607
 		    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1608
@@ -366,9 +517,9 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1609
 			    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1610
 			    else {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1611
 				sv_catpvn(retval, name, 1);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1612
-				sv_catpvn(retval, "{", 1);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1613
+				sv_catpvs(retval, "{");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1614
 				sv_catsv(retval, othername);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1615
-				sv_catpvn(retval, "}", 1);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1616
+				sv_catpvs(retval, "}");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1617
 			    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1618
 			}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1619
 			else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1620
@@ -388,11 +539,11 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1621
 	    else {   /* store our name and continue */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1622
 		SV *namesv;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1623
 		if (name[0] == '@' || name[0] == '%') {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1624
-		    namesv = newSVpvn("\\", 1);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1625
+		    namesv = newSVpvs("\\");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1626
 		    sv_catpvn(namesv, name, namelen);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1627
 		}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1628
 		else if (realtype == SVt_PVCV && name[0] == '*') {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1629
-		    namesv = newSVpvn("\\", 2);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1630
+		    namesv = newSVpvs("\\");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1631
 		    sv_catpvn(namesv, name, namelen);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1632
 		    (SvPVX(namesv))[1] = '&';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1633
 		}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1634
@@ -433,17 +584,21 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1635
 	if (!purity && maxdepth > 0 && *levelp >= maxdepth) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1636
 	    STRLEN vallen;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1637
 	    const char * const valstr = SvPV(val,vallen);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1638
-	    sv_catpvn(retval, "'", 1);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1639
+	    sv_catpvs(retval, "'");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1640
 	    sv_catpvn(retval, valstr, vallen);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1641
-	    sv_catpvn(retval, "'", 1);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1642
+	    sv_catpvs(retval, "'");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1643
 	    return 1;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1644
 	}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1645
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1646
+	if (maxrecurse > 0 && *levelp >= maxrecurse) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1647
+	    croak("Recursion limit of %" IVdf " exceeded", maxrecurse);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1648
+	}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1649
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1650
 	if (realpack && !no_bless) {				/* we have a blessed ref */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1651
 	    STRLEN blesslen;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1652
 	    const char * const blessstr = SvPV(bless, blesslen);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1653
 	    sv_catpvn(retval, blessstr, blesslen);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1654
-	    sv_catpvn(retval, "( ", 2);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1655
+	    sv_catpvs(retval, "( ");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1656
 	    if (indent >= 2) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1657
 		blesspad = apad;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1658
 		apad = newSVsv(apad);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1659
@@ -457,18 +612,58 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1660
         if (is_regex) 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1661
         {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1662
             STRLEN rlen;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1663
-	    const char *rval = SvPV(val, rlen);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1664
-	    const char *slash = strchr(rval, '/');
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1665
-	    sv_catpvn(retval, "qr/", 3);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1666
-	    while (slash) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1667
+	    SV *sv_pattern = NULL;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1668
+	    SV *sv_flags = NULL;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1669
+	    CV *re_pattern_cv;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1670
+	    const char *rval;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1671
+	    const char *rend;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1672
+	    const char *slash;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1673
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1674
+	    if ((re_pattern_cv = get_cv("re::regexp_pattern", 0))) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1675
+	      dSP;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1676
+	      I32 count;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1677
+	      ENTER;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1678
+	      SAVETMPS;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1679
+	      PUSHMARK(SP);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1680
+	      XPUSHs(val);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1681
+	      PUTBACK;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1682
+	      count = call_sv((SV*)re_pattern_cv, G_ARRAY);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1683
+	      SPAGAIN;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1684
+	      if (count >= 2) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1685
+		sv_flags = POPs;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1686
+	        sv_pattern = POPs;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1687
+		SvREFCNT_inc(sv_flags);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1688
+		SvREFCNT_inc(sv_pattern);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1689
+	      }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1690
+	      PUTBACK;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1691
+	      FREETMPS;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1692
+	      LEAVE;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1693
+	      if (sv_pattern) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1694
+	        sv_2mortal(sv_pattern);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1695
+	        sv_2mortal(sv_flags);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1696
+	      }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1697
+	    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1698
+	    else {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1699
+	      sv_pattern = val;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1700
+	    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1701
+	    assert(sv_pattern);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1702
+	    rval = SvPV(sv_pattern, rlen);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1703
+	    rend = rval+rlen;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1704
+	    slash = rval;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1705
+	    sv_catpvs(retval, "qr/");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1706
+	    for (;slash < rend; slash++) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1707
+	      if (*slash == '\\') { ++slash; continue; }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1708
+	      if (*slash == '/') {    
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1709
 		sv_catpvn(retval, rval, slash-rval);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1710
-		sv_catpvn(retval, "\\/", 2);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1711
+		sv_catpvs(retval, "\\/");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1712
 		rlen -= slash-rval+1;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1713
 		rval = slash+1;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1714
-		slash = strchr(rval, '/');
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1715
+	      }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1716
 	    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1717
 	    sv_catpvn(retval, rval, rlen);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1718
-	    sv_catpvn(retval, "/", 1);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1719
+	    sv_catpvs(retval, "/");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1720
+	    if (sv_flags)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1721
+	      sv_catsv(retval, sv_flags);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1722
 	} 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1723
         else if (
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1724
 #if PERL_VERSION < 9
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1725
@@ -477,41 +672,44 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1726
 		realtype <= SVt_PVMG
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1727
 #endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1728
 	) {			     /* scalar ref */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1729
-	    SV * const namesv = newSVpvn("${", 2);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1730
+	    SV * const namesv = newSVpvs("${");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1731
 	    sv_catpvn(namesv, name, namelen);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1732
-	    sv_catpvn(namesv, "}", 1);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1733
+	    sv_catpvs(namesv, "}");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1734
 	    if (realpack) {				     /* blessed */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1735
-		sv_catpvn(retval, "do{\\(my $o = ", 13);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1736
+		sv_catpvs(retval, "do{\\(my $o = ");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1737
 		DD_dump(aTHX_ ival, SvPVX_const(namesv), SvCUR(namesv), retval, seenhv,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1738
 			postav, levelp,	indent, pad, xpad, apad, sep, pair,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1739
 			freezer, toaster, purity, deepcopy, quotekeys, bless,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1740
-			maxdepth, sortkeys);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1741
-		sv_catpvn(retval, ")}", 2);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1742
+			maxdepth, sortkeys, use_sparse_seen_hash, useqq,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1743
+			maxrecurse);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1744
+		sv_catpvs(retval, ")}");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1745
 	    }						     /* plain */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1746
 	    else {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1747
-		sv_catpvn(retval, "\\", 1);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1748
+		sv_catpvs(retval, "\\");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1749
 		DD_dump(aTHX_ ival, SvPVX_const(namesv), SvCUR(namesv), retval, seenhv,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1750
 			postav, levelp,	indent, pad, xpad, apad, sep, pair,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1751
 			freezer, toaster, purity, deepcopy, quotekeys, bless,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1752
-			maxdepth, sortkeys);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1753
+			maxdepth, sortkeys, use_sparse_seen_hash, useqq,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1754
+			maxrecurse);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1755
 	    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1756
 	    SvREFCNT_dec(namesv);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1757
 	}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1758
 	else if (realtype == SVt_PVGV) {		     /* glob ref */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1759
-	    SV * const namesv = newSVpvn("*{", 2);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1760
+	    SV * const namesv = newSVpvs("*{");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1761
 	    sv_catpvn(namesv, name, namelen);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1762
-	    sv_catpvn(namesv, "}", 1);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1763
-	    sv_catpvn(retval, "\\", 1);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1764
+	    sv_catpvs(namesv, "}");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1765
+	    sv_catpvs(retval, "\\");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1766
 	    DD_dump(aTHX_ ival, SvPVX_const(namesv), SvCUR(namesv), retval, seenhv,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1767
 		    postav, levelp,	indent, pad, xpad, apad, sep, pair,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1768
 		    freezer, toaster, purity, deepcopy, quotekeys, bless,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1769
-		    maxdepth, sortkeys);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1770
+		    maxdepth, sortkeys, use_sparse_seen_hash, useqq,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1771
+		    maxrecurse);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1772
 	    SvREFCNT_dec(namesv);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1773
 	}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1774
 	else if (realtype == SVt_PVAV) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1775
 	    SV *totpad;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1776
-	    I32 ix = 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1777
-	    const I32 ixmax = av_len((AV *)ival);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1778
+	    SSize_t ix = 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1779
+	    const SSize_t ixmax = av_len((AV *)ival);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1780
 	
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1781
 	    SV * const ixsv = newSViv(0);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1782
 	    /* allowing for a 24 char wide array index */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1783
@@ -519,11 +717,11 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1784
 	    (void)strcpy(iname, name);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1785
 	    inamelen = namelen;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1786
 	    if (name[0] == '@') {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1787
-		sv_catpvn(retval, "(", 1);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1788
+		sv_catpvs(retval, "(");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1789
 		iname[0] = '$';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1790
 	    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1791
 	    else {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1792
-		sv_catpvn(retval, "[", 1);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1793
+		sv_catpvs(retval, "[");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1794
 		/* omit "->" in $foo{bar}->[0], but not in ${$foo}->[0] */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1795
 		/*if (namelen > 0
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1796
 		    && name[namelen-1] != ']' && name[namelen-1] != '}'
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1797
@@ -570,7 +768,7 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1798
 		if (indent >= 3) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1799
 		    sv_catsv(retval, totpad);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1800
 		    sv_catsv(retval, ipad);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1801
-		    sv_catpvn(retval, "#", 1);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1802
+		    sv_catpvs(retval, "#");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1803
 		    sv_catsv(retval, ixsv);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1804
 		}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1805
 		sv_catsv(retval, totpad);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1806
@@ -578,9 +776,10 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1807
 		DD_dump(aTHX_ elem, iname, ilen, retval, seenhv, postav,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1808
 			levelp,	indent, pad, xpad, apad, sep, pair,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1809
 			freezer, toaster, purity, deepcopy, quotekeys, bless,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1810
-			maxdepth, sortkeys);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1811
+			maxdepth, sortkeys, use_sparse_seen_hash,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1812
+			useqq, maxrecurse);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1813
 		if (ix < ixmax)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1814
-		    sv_catpvn(retval, ",", 1);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1815
+		    sv_catpvs(retval, ",");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1816
 	    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1817
 	    if (ixmax >= 0) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1818
 		SV * const opad = sv_x(aTHX_ Nullsv, SvPVX_const(xpad), SvCUR(xpad), (*levelp)-1);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1819
@@ -589,9 +788,9 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1820
 		SvREFCNT_dec(opad);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1821
 	    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1822
 	    if (name[0] == '@')
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1823
-		sv_catpvn(retval, ")", 1);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1824
+		sv_catpvs(retval, ")");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1825
 	    else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1826
-		sv_catpvn(retval, "]", 1);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1827
+		sv_catpvs(retval, "]");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1828
 	    SvREFCNT_dec(ixsv);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1829
 	    SvREFCNT_dec(totpad);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1830
 	    Safefree(iname);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1831
@@ -607,11 +806,11 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1832
 	
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1833
 	    SV * const iname = newSVpvn(name, namelen);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1834
 	    if (name[0] == '%') {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1835
-		sv_catpvn(retval, "(", 1);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1836
+		sv_catpvs(retval, "(");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1837
 		(SvPVX(iname))[0] = '$';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1838
 	    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1839
 	    else {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1840
-		sv_catpvn(retval, "{", 1);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1841
+		sv_catpvs(retval, "{");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1842
 		/* omit "->" in $foo[0]->{bar}, but not in ${$foo}->{bar} */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1843
 		if ((namelen > 0
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1844
 		     && name[namelen-1] != ']' && name[namelen-1] != '}')
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1845
@@ -619,16 +818,16 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1846
 		        && (name[1] == '{'
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1847
 			    || (name[0] == '\\' && name[2] == '{'))))
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1848
 		{
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1849
-		    sv_catpvn(iname, "->", 2);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1850
+		    sv_catpvs(iname, "->");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1851
 		}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1852
 	    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1853
 	    if (name[0] == '*' && name[namelen-1] == '}' && namelen >= 8 &&
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1854
 		(instr(name+namelen-8, "{SCALAR}") ||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1855
 		 instr(name+namelen-7, "{ARRAY}") ||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1856
 		 instr(name+namelen-6, "{HASH}"))) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1857
-		sv_catpvn(iname, "->", 2);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1858
+		sv_catpvs(iname, "->");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1859
 	    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1860
-	    sv_catpvn(iname, "{", 1);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1861
+	    sv_catpvs(iname, "{");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1862
 	    totpad = newSVsv(sep);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1863
 	    sv_catsv(totpad, pad);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1864
 	    sv_catsv(totpad, apad);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1865
@@ -637,25 +836,34 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1866
 	    if (sortkeys) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1867
 		if (sortkeys == &PL_sv_yes) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1868
 #if PERL_VERSION < 8
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1869
-                    sortkeys = sv_2mortal(newSVpvn("Data::Dumper::_sortkeys", 23));
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1870
+                    sortkeys = sv_2mortal(newSVpvs("Data::Dumper::_sortkeys"));
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1871
 #else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1872
 		    keys = newAV();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1873
 		    (void)hv_iterinit((HV*)ival);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1874
 		    while ((entry = hv_iternext((HV*)ival))) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1875
 			sv = hv_iterkeysv(entry);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1876
-			SvREFCNT_inc(sv);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1877
+			(void)SvREFCNT_inc(sv);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1878
 			av_push(keys, sv);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1879
 		    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1880
-# ifdef USE_LOCALE_NUMERIC
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1881
-		    sortsv(AvARRAY(keys), 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1882
-			   av_len(keys)+1, 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1883
-			   IN_LOCALE ? Perl_sv_cmp_locale : Perl_sv_cmp);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1884
-# else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1885
-		    sortsv(AvARRAY(keys), 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1886
-			   av_len(keys)+1, 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1887
-			   Perl_sv_cmp);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1888
+# ifdef USE_LOCALE_COLLATE
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1889
+#       ifdef IN_LC     /* Use this if available */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1890
+                    if (IN_LC(LC_COLLATE))
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1891
+#       else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1892
+                    if (IN_LOCALE)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1893
+#       endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1894
+                    {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1895
+                        sortsv(AvARRAY(keys),
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1896
+			   av_len(keys)+1,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1897
+                           Perl_sv_cmp_locale);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1898
+                    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1899
+                    else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1900
 # endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1901
 #endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1902
+                    {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1903
+                        sortsv(AvARRAY(keys),
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1904
+			   av_len(keys)+1,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1905
+                           Perl_sv_cmp);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1906
+                    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1907
 		}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1908
 		if (sortkeys != &PL_sv_yes) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1909
 		    dSP; ENTER; SAVETMPS; PUSHMARK(sp);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1910
@@ -688,22 +896,22 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1911
 		bool do_utf8 = FALSE;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1912
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1913
                if (sortkeys) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1914
-                   if (!(keys && (I32)i <= av_len(keys))) break;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1915
+                   if (!(keys && (SSize_t)i <= av_len(keys))) break;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1916
                } else {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1917
                    if (!(entry = hv_iternext((HV *)ival))) break;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1918
                }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1919
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1920
 		if (i)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1921
-		    sv_catpvn(retval, ",", 1);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1922
+		    sv_catpvs(retval, ",");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1923
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1924
 		if (sortkeys) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1925
 		    char *key;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1926
 		    svp = av_fetch(keys, i, FALSE);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1927
-		    keysv = svp ? *svp : sv_mortalcopy(&PL_sv_undef);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1928
+		    keysv = svp ? *svp : sv_newmortal();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1929
 		    key = SvPV(keysv, keylen);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1930
 		    svp = hv_fetch((HV*)ival, key,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1931
-                                   SvUTF8(keysv) ? -(I32)keylen : keylen, 0);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1932
-		    hval = svp ? *svp : sv_mortalcopy(&PL_sv_undef);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1933
+                                   SvUTF8(keysv) ? -(I32)keylen : (I32)keylen, 0);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1934
+		    hval = svp ? *svp : sv_newmortal();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1935
 		}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1936
 		else {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1937
 		    keysv = hv_iterkeysv(entry);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1938
@@ -716,31 +924,27 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1939
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1940
                 sv_catsv(retval, totpad);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1941
                 sv_catsv(retval, ipad);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1942
-                /* old logic was first to check utf8 flag, and if utf8 always
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1943
+                /* The (very)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1944
+                   old logic was first to check utf8 flag, and if utf8 always
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1945
                    call esc_q_utf8.  This caused test to break under -Mutf8,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1946
                    because there even strings like 'c' have utf8 flag on.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1947
                    Hence with quotekeys == 0 the XS code would still '' quote
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1948
                    them based on flags, whereas the perl code would not,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1949
                    based on regexps.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1950
-                   The perl code is correct.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1951
-                   needs_quote() decides that anything that isn't a valid
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1952
-                   perl identifier needs to be quoted, hence only correctly
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1953
-                   formed strings with no characters outside [A-Za-z0-9_:]
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1954
-                   won't need quoting.  None of those characters are used in
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1955
-                   the byte encoding of utf8, so anything with utf8
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1956
-                   encoded characters in will need quoting. Hence strings
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1957
-                   with utf8 encoded characters in will end up inside do_utf8
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1958
-                   just like before, but now strings with utf8 flag set but
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1959
-                   only ascii characters will end up in the unquoted section.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1960
-
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1961
-                   There should also be less tests for the (probably currently)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1962
-                   more common doesn't need quoting case.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1963
-                   The code is also smaller (22044 vs 22260) because I've been
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1964
-                   able to pull the common logic out to both sides.  */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1965
-                if (quotekeys || needs_quote(key)) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1966
-                    if (do_utf8) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1967
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1968
+                   The old logic checked that the string was a valid
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1969
+                   perl glob name (foo::bar), which isn't safe under
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1970
+                   strict, and differs from the perl code which only
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1971
+                   accepts simple identifiers.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1972
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1973
+                   With the fix for [perl #120384] I chose to make
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1974
+                   their handling of key quoting compatible between XS
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1975
+                   and perl.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1976
+                 */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1977
+                if (quotekeys || key_needs_quote(key,keylen)) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1978
+                    if (do_utf8 || useqq) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1979
                         STRLEN ocur = SvCUR(retval);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1980
-                        nlen = esc_q_utf8(aTHX_ retval, key, klen);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1981
+                        nlen = esc_q_utf8(aTHX_ retval, key, klen, do_utf8, useqq);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1982
                         nkey = SvPVX(retval) + ocur;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1983
                     }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1984
                     else {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1985
@@ -765,7 +969,7 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1986
 		}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1987
                 sname = newSVsv(iname);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1988
                 sv_catpvn(sname, nkey, nlen);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1989
-                sv_catpvn(sname, "}", 1);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1990
+                sv_catpvs(sname, "}");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1991
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1992
 		sv_catsv(retval, pair);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1993
 		if (indent >= 2) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1994
@@ -785,7 +989,8 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1995
 		DD_dump(aTHX_ hval, SvPVX_const(sname), SvCUR(sname), retval, seenhv,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1996
 			postav, levelp,	indent, pad, xpad, newapad, sep, pair,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1997
 			freezer, toaster, purity, deepcopy, quotekeys, bless,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1998
-			maxdepth, sortkeys);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  1999
+			maxdepth, sortkeys, use_sparse_seen_hash, useqq,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2000
+			maxrecurse);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2001
 		SvREFCNT_dec(sname);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2002
 		Safefree(nkey_buffer);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2003
 		if (indent >= 2)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2004
@@ -798,19 +1003,19 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2005
 		SvREFCNT_dec(opad);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2006
 	    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2007
 	    if (name[0] == '%')
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2008
-		sv_catpvn(retval, ")", 1);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2009
+		sv_catpvs(retval, ")");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2010
 	    else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2011
-		sv_catpvn(retval, "}", 1);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2012
+		sv_catpvs(retval, "}");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2013
 	    SvREFCNT_dec(iname);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2014
 	    SvREFCNT_dec(totpad);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2015
 	}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2016
 	else if (realtype == SVt_PVCV) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2017
-	    sv_catpvn(retval, "sub { \"DUMMY\" }", 15);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2018
+	    sv_catpvs(retval, "sub { \"DUMMY\" }");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2019
 	    if (purity)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2020
 		warn("Encountered CODE ref, using dummy placeholder");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2021
 	}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2022
 	else {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2023
-	    warn("cannot handle ref type %ld", realtype);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2024
+	    warn("cannot handle ref type %d", (int)realtype);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2025
 	}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2026
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2027
 	if (realpack && !no_bless) {  /* free blessed allocs */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2028
@@ -821,7 +1026,7 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2029
 		SvREFCNT_dec(apad);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2030
 		apad = blesspad;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2031
 	    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2032
-	    sv_catpvn(retval, ", '", 3);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2033
+	    sv_catpvs(retval, ", '");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2034
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2035
 	    plen = strlen(realpack);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2036
 	    pticks = num_q(realpack, plen);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2037
@@ -840,11 +1045,11 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2038
 	    else {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2039
 	        sv_catpvn(retval, realpack, strlen(realpack));
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2040
 	    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2041
-	    sv_catpvn(retval, "' )", 3);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2042
+	    sv_catpvs(retval, "' )");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2043
 	    if (toaster && SvPOK(toaster) && SvCUR(toaster)) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2044
-		sv_catpvn(retval, "->", 2);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2045
+		sv_catpvs(retval, "->");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2046
 		sv_catsv(retval, toaster);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2047
-		sv_catpvn(retval, "()", 2);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2048
+		sv_catpvs(retval, "()");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2049
 	    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2050
 	}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2051
 	SvREFCNT_dec(ipad);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2052
@@ -852,6 +1057,7 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2053
     }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2054
     else {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2055
 	STRLEN i;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2056
+	const MAGIC *mg;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2057
 	
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2058
 	if (namelen) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2059
 #ifdef DD_USE_OLD_ID_FORMAT
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2060
@@ -868,14 +1074,21 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2061
 		if ((svp = av_fetch(seenentry, 0, FALSE)) && (othername = *svp)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2062
 		    && (svp = av_fetch(seenentry, 2, FALSE)) && *svp && SvIV(*svp) > 0)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2063
 		{
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2064
-		    sv_catpvn(retval, "${", 2);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2065
+		    sv_catpvs(retval, "${");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2066
 		    sv_catsv(retval, othername);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2067
-		    sv_catpvn(retval, "}", 1);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2068
+		    sv_catpvs(retval, "}");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2069
 		    return 1;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2070
 		}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2071
 	    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2072
-	    else if (val != &PL_sv_undef) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2073
-		SV * const namesv = newSVpvn("\\", 1);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2074
+            /* If we're allowed to keep only a sparse "seen" hash
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2075
+             * (IOW, the user does not expect it to contain everything
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2076
+             * after the dump, then only store in seen hash if the SV
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2077
+             * ref count is larger than 1. If it's 1, then we know that
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2078
+             * there is no other reference, duh. This is an optimization.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2079
+             * Note that we'd have to check for weak-refs, too, but this is
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2080
+             * already the branch for non-refs only. */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2081
+	    else if (val != &PL_sv_undef && (!use_sparse_seen_hash || SvREFCNT(val) > 1)) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2082
+		SV * const namesv = newSVpvs("\\");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2083
 		sv_catpvn(namesv, name, namelen);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2084
 		seenentry = newAV();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2085
 		av_push(seenentry, namesv);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2086
@@ -909,12 +1122,32 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2087
 	}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2088
 	else if (realtype == SVt_PVGV) {/* GLOBs can end up with scribbly names */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2089
 	    c = SvPV(val, i);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2090
-	    ++c; --i;			/* just get the name */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2091
+	    if(i) ++c, --i;			/* just get the name */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2092
 	    if (i >= 6 && strncmp(c, "main::", 6) == 0) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2093
 		c += 4;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2094
-		i -= 4;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2095
+#if PERL_VERSION < 7
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2096
+		if (i == 6 || (i == 7 && c[6] == '\0'))
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2097
+#else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2098
+		if (i == 6)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2099
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2100
+		    i = 0; else i -= 4;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2101
 	    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2102
-	    if (needs_quote(c)) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2103
+            if (globname_needs_quote(c,i)) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2104
+#ifdef GvNAMEUTF8
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2105
+	      if (GvNAMEUTF8(val)) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2106
+		sv_grow(retval, SvCUR(retval)+2);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2107
+		r = SvPVX(retval)+SvCUR(retval);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2108
+		r[0] = '*'; r[1] = '{';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2109
+		SvCUR_set(retval, SvCUR(retval)+2);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2110
+		esc_q_utf8(aTHX_ retval, c, i, 1, useqq);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2111
+		sv_grow(retval, SvCUR(retval)+2);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2112
+		r = SvPVX(retval)+SvCUR(retval);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2113
+		r[0] = '}'; r[1] = '\0';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2114
+		i = 1;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2115
+	      }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2116
+	      else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2117
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2118
+	      {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2119
 		sv_grow(retval, SvCUR(retval)+6+2*i);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2120
 		r = SvPVX(retval)+SvCUR(retval);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2121
 		r[0] = '*'; r[1] = '{';	r[2] = '\'';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2122
@@ -922,6 +1155,7 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2123
 		i += 3;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2124
 		r[i++] = '\''; r[i++] = '}';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2125
 		r[i] = '\0';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2126
+	      }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2127
 	    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2128
 	    else {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2129
 		sv_grow(retval, SvCUR(retval)+i+2);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2130
@@ -935,8 +1169,8 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2131
 		static const char* const entries[] = { "{SCALAR}", "{ARRAY}", "{HASH}" };
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2132
 		static const STRLEN sizes[] = { 8, 7, 6 };
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2133
 		SV *e;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2134
-		SV * const nname = newSVpvn("", 0);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2135
-		SV * const newapad = newSVpvn("", 0);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2136
+		SV * const nname = newSVpvs("");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2137
+		SV * const newapad = newSVpvs("");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2138
 		GV * const gv = (GV*)val;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2139
 		I32 j;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2140
 		
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2141
@@ -953,7 +1187,7 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2142
 			
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2143
 			sv_setsv(nname, postentry);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2144
 			sv_catpvn(nname, entries[j], sizes[j]);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2145
-			sv_catpvn(postentry, " = ", 3);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2146
+			sv_catpvs(postentry, " = ");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2147
 			av_push(postav, postentry);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2148
 			e = newRV_inc(e);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2149
 			
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2150
@@ -965,7 +1199,8 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2151
 				seenhv, postav, &nlevel, indent, pad, xpad,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2152
 				newapad, sep, pair, freezer, toaster, purity,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2153
 				deepcopy, quotekeys, bless, maxdepth, 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2154
-				sortkeys);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2155
+				sortkeys, use_sparse_seen_hash, useqq,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2156
+				maxrecurse);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2157
 			SvREFCNT_dec(e);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2158
 		    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2159
 		}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2160
@@ -975,13 +1210,36 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2161
 	    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2162
 	}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2163
 	else if (val == &PL_sv_undef || !SvOK(val)) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2164
-	    sv_catpvn(retval, "undef", 5);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2165
+	    sv_catpvs(retval, "undef");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2166
 	}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2167
+#ifdef SvVOK
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2168
+	else if (SvMAGICAL(val) && (mg = mg_find(val, 'V'))) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2169
+# if !defined(PL_vtbl_vstring) && PERL_VERSION < 17
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2170
+	    SV * const vecsv = sv_newmortal();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2171
+#  if PERL_VERSION < 10
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2172
+	    scan_vstring(mg->mg_ptr, vecsv);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2173
+#  else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2174
+	    scan_vstring(mg->mg_ptr, mg->mg_ptr + mg->mg_len, vecsv);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2175
+#  endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2176
+	    if (!sv_eq(vecsv, val)) goto integer_came_from_string;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2177
+# endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2178
+	    sv_catpvn(retval, (const char *)mg->mg_ptr, mg->mg_len);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2179
+	}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2180
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2181
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2182
 	else {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2183
         integer_came_from_string:
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2184
-	    c = SvPV(val, i);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2185
-	    if (DO_UTF8(val))
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2186
-	        i += esc_q_utf8(aTHX_ retval, c, i);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2187
+            c = SvPV(val, i);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2188
+            /* the pure perl and XS non-qq outputs have historically been
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2189
+             * different in this case, but for useqq, let's try to match
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2190
+             * the pure perl code.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2191
+             * see [perl #74798]
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2192
+             */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2193
+            if (useqq && safe_decimal_number(c, i)) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2194
+                sv_catsv(retval, val);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2195
+            }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2196
+	    else if (DO_UTF8(val) || useqq)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2197
+	        i += esc_q_utf8(aTHX_ retval, c, i, DO_UTF8(val), useqq);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2198
 	    else {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2199
 		sv_grow(retval, SvCUR(retval)+3+2*i); /* 3: ""\0 */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2200
 		r = SvPVX(retval) + SvCUR(retval);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2201
@@ -1012,7 +1270,7 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2202
 #
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2203
 # This is the exact equivalent of Dump.  Well, almost. The things that are
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2204
 # different as of now (due to Laziness):
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2205
-#   * doesnt do double-quotes yet.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2206
+#   * doesn't deparse yet.'
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2207
 #
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2208
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2209
 void
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2210
@@ -1026,13 +1284,16 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2211
 	    HV *seenhv = NULL;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2212
 	    AV *postav, *todumpav, *namesav;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2213
 	    I32 level = 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2214
-	    I32 indent, terse, i, imax, postlen;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2215
+	    I32 indent, terse, useqq;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2216
+	    SSize_t i, imax, postlen;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2217
 	    SV **svp;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2218
 	    SV *val, *name, *pad, *xpad, *apad, *sep, *pair, *varname;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2219
 	    SV *freezer, *toaster, *bless, *sortkeys;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2220
 	    I32 purity, deepcopy, quotekeys, maxdepth = 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2221
+	    IV maxrecurse = 1000;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2222
 	    char tmpbuf[1024];
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2223
 	    I32 gimme = GIMME;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2224
+            int use_sparse_seen_hash = 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2225
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2226
 	    if (!SvROK(href)) {		/* call new to get an object first */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2227
 		if (items < 2)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2228
@@ -1042,10 +1303,11 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2229
 		SAVETMPS;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2230
 		
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2231
 		PUSHMARK(sp);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2232
-		XPUSHs(href);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2233
-		XPUSHs(sv_2mortal(newSVsv(ST(1))));
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2234
+                EXTEND(SP, 3); /* 3 == max of all branches below */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2235
+		PUSHs(href);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2236
+		PUSHs(sv_2mortal(newSVsv(ST(1))));
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2237
 		if (items >= 3)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2238
-		    XPUSHs(sv_2mortal(newSVsv(ST(2))));
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2239
+		    PUSHs(sv_2mortal(newSVsv(ST(2))));
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2240
 		PUTBACK;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2241
 		i = perl_call_method("new", G_SCALAR);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2242
 		SPAGAIN;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2243
@@ -1065,16 +1327,20 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2244
 		= freezer = toaster = bless = sortkeys = &PL_sv_undef;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2245
 	    name = sv_newmortal();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2246
 	    indent = 2;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2247
-	    terse = purity = deepcopy = 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2248
+	    terse = purity = deepcopy = useqq = 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2249
 	    quotekeys = 1;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2250
 	
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2251
-	    retval = newSVpvn("", 0);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2252
+	    retval = newSVpvs("");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2253
 	    if (SvROK(href)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2254
 		&& (hv = (HV*)SvRV((SV*)href))
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2255
 		&& SvTYPE(hv) == SVt_PVHV)		{
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2256
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2257
 		if ((svp = hv_fetch(hv, "seen", 4, FALSE)) && SvROK(*svp))
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2258
 		    seenhv = (HV*)SvRV(*svp);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2259
+                else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2260
+                    use_sparse_seen_hash = 1;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2261
+		if ((svp = hv_fetch(hv, "noseen", 6, FALSE)))
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2262
+		    use_sparse_seen_hash = (SvOK(*svp) && SvIV(*svp) != 0);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2263
 		if ((svp = hv_fetch(hv, "todump", 6, FALSE)) && SvROK(*svp))
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2264
 		    todumpav = (AV*)SvRV(*svp);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2265
 		if ((svp = hv_fetch(hv, "names", 5, FALSE)) && SvROK(*svp))
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2266
@@ -1085,10 +1351,8 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2267
 		    purity = SvIV(*svp);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2268
 		if ((svp = hv_fetch(hv, "terse", 5, FALSE)))
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2269
 		    terse = SvTRUE(*svp);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2270
-#if 0 /* useqq currently unused */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2271
 		if ((svp = hv_fetch(hv, "useqq", 5, FALSE)))
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2272
 		    useqq = SvTRUE(*svp);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2273
-#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2274
 		if ((svp = hv_fetch(hv, "pad", 3, FALSE)))
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2275
 		    pad = *svp;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2276
 		if ((svp = hv_fetch(hv, "xpad", 4, FALSE)))
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2277
@@ -1113,6 +1377,8 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2278
 		    bless = *svp;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2279
 		if ((svp = hv_fetch(hv, "maxdepth", 8, FALSE)))
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2280
 		    maxdepth = SvIV(*svp);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2281
+		if ((svp = hv_fetch(hv, "maxrecurse", 10, FALSE)))
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2282
+		    maxrecurse = SvIV(*svp);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2283
 		if ((svp = hv_fetch(hv, "sortkeys", 8, FALSE))) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2284
 		    sortkeys = *svp;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2285
 		    if (! SvTRUE(sortkeys))
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2286
@@ -1130,7 +1396,7 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2287
 		    imax = av_len(todumpav);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2288
 		else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2289
 		    imax = -1;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2290
-		valstr = newSVpvn("",0);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2291
+		valstr = newSVpvs("");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2292
 		for (i = 0; i <= imax; ++i) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2293
 		    SV *newapad;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2294
 		
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2295
@@ -1179,7 +1445,7 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2296
 			sv_catpvn(name, tmpbuf, nchars);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2297
 		    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2298
 		
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2299
-		    if (indent >= 2) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2300
+		    if (indent >= 2 && !terse) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2301
 			SV * const tmpsv = sv_x(aTHX_ NULL, " ", 1, SvCUR(name)+3);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2302
 			newapad = newSVsv(apad);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2303
 			sv_catsv(newapad, tmpsv);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2304
@@ -1188,25 +1454,28 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2305
 		    else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2306
 			newapad = apad;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2307
 		
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2308
+		    PUTBACK;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2309
 		    DD_dump(aTHX_ val, SvPVX_const(name), SvCUR(name), valstr, seenhv,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2310
 			    postav, &level, indent, pad, xpad, newapad, sep, pair,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2311
 			    freezer, toaster, purity, deepcopy, quotekeys,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2312
-			    bless, maxdepth, sortkeys);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2313
+			    bless, maxdepth, sortkeys, use_sparse_seen_hash,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2314
+			    useqq, maxrecurse);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2315
+		    SPAGAIN;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2316
 		
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2317
-		    if (indent >= 2)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2318
+		    if (indent >= 2 && !terse)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2319
 			SvREFCNT_dec(newapad);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2320
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2321
 		    postlen = av_len(postav);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2322
 		    if (postlen >= 0 || !terse) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2323
 			sv_insert(valstr, 0, 0, " = ", 3);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2324
 			sv_insert(valstr, 0, 0, SvPVX_const(name), SvCUR(name));
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2325
-			sv_catpvn(valstr, ";", 1);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2326
+			sv_catpvs(valstr, ";");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2327
 		    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2328
 		    sv_catsv(retval, pad);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2329
 		    sv_catsv(retval, valstr);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2330
 		    sv_catsv(retval, sep);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2331
 		    if (postlen >= 0) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2332
-			I32 i;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2333
+			SSize_t i;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2334
 			sv_catsv(retval, pad);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2335
 			for (i = 0; i <= postlen; ++i) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2336
 			    SV *elem;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2337
@@ -1214,20 +1483,20 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2338
 			    if (svp && (elem = *svp)) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2339
 				sv_catsv(retval, elem);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2340
 				if (i < postlen) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2341
-				    sv_catpvn(retval, ";", 1);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2342
+				    sv_catpvs(retval, ";");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2343
 				    sv_catsv(retval, sep);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2344
 				    sv_catsv(retval, pad);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2345
 				}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2346
 			    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2347
 			}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2348
-			sv_catpvn(retval, ";", 1);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2349
+			sv_catpvs(retval, ";");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2350
 			    sv_catsv(retval, sep);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2351
 		    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2352
 		    sv_setpvn(valstr, "", 0);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2353
 		    if (gimme == G_ARRAY) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2354
 			XPUSHs(sv_2mortal(retval));
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2355
 			if (i < imax)	/* not the last time thro ? */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2356
-			    retval = newSVpvn("",0);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2357
+			    retval = newSVpvs("");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2358
 		    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2359
 		}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2360
 		SvREFCNT_dec(postav);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2361
@@ -1238,3 +1507,21 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2362
 	    if (gimme == G_SCALAR)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2363
 		XPUSHs(sv_2mortal(retval));
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2364
 	}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2365
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2366
+SV *
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2367
+Data_Dumper__vstring(sv)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2368
+	SV	*sv;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2369
+	PROTOTYPE: $
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2370
+	CODE:
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2371
+	{
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2372
+#ifdef SvVOK
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2373
+	    const MAGIC *mg;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2374
+	    RETVAL =
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2375
+		SvMAGICAL(sv) && (mg = mg_find(sv, 'V'))
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2376
+		 ? newSVpvn((const char *)mg->mg_ptr, mg->mg_len)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2377
+		 : &PL_sv_undef;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2378
+#else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2379
+	    RETVAL = &PL_sv_undef;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2380
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2381
+	}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2382
+	OUTPUT: RETVAL
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2383
diff -ur --new-file perl-5.12.5/dist/Data-Dumper/Makefile.PL perl-5.12.5_dumper/dist/Data-Dumper/Makefile.PL
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2384
--- perl-5.12.5/dist/Data-Dumper/Makefile.PL	1969-12-31 19:00:00.000000000 -0500
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2385
+++ perl-5.12.5_dumper/dist/Data-Dumper/Makefile.PL	2014-10-09 15:06:36.168520426 -0400
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2386
@@ -0,0 +1,25 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2387
+use 5.006001;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2388
+use ExtUtils::MakeMaker;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2389
+WriteMakefile(
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2390
+    NAME             => "Data::Dumper",
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2391
+    VERSION_FROM     => 'Dumper.pm',
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2392
+    'dist'           => {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2393
+        COMPRESS     => 'gzip -9f',
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2394
+        SUFFIX       => 'gz',
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2395
+        DIST_DEFAULT => 'all tardist',
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2396
+    },
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2397
+    MAN3PODS         => {},
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2398
+    DEFINE           => '-DUSE_PPPORT_H',
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2399
+    INSTALLDIRS      => 'perl',
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2400
+    BUILD_REQUIRES   => {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2401
+        Test::More => '0.98',
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2402
+    },
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2403
+    META_MERGE => {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2404
+        dynamic_config => 0,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2405
+        resources => {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2406
+            repository  => 'git://perl5.git.perl.org/perl.git perl-git',
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2407
+            bugtracker  => 'http://rt.perl.org/perlbug/',
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2408
+            MailingList => 'http://lists.cpan.org/showlist.cgi?name=perl5-porters'
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2409
+        },
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2410
+    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2411
+);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2412
diff -ur --new-file perl-5.12.5/dist/Data-Dumper/MANIFEST perl-5.12.5_dumper/dist/Data-Dumper/MANIFEST
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2413
--- perl-5.12.5/dist/Data-Dumper/MANIFEST	1969-12-31 19:00:00.000000000 -0500
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2414
+++ perl-5.12.5_dumper/dist/Data-Dumper/MANIFEST	2014-10-09 15:06:36.168906933 -0400
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2415
@@ -0,0 +1,34 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2416
+Changes
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2417
+Dumper.pm
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2418
+Dumper.xs
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2419
+Makefile.PL
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2420
+MANIFEST			This list of files
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2421
+MANIFEST.SKIP
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2422
+ppport.h
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2423
+t/bless.t
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2424
+t/bless_var_method.t
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2425
+t/bugs.t
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2426
+t/deparse.t
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2427
+t/dumper.t
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2428
+t/dumpperl.t
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2429
+t/freezer.t
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2430
+t/freezer_useperl.t
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2431
+t/indent.t
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2432
+t/lib/Testing.pm
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2433
+t/misc.t
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2434
+t/names.t
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2435
+t/overload.t
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2436
+t/pair.t
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2437
+t/perl-74170.t
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2438
+t/purity_deepcopy_maxdepth.t
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2439
+t/qr.t
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2440
+t/quotekeys.t
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2441
+t/recurse.t
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2442
+t/seen.t
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2443
+t/sortkeys.t
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2444
+t/sparseseen.t
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2445
+t/terse.t
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2446
+t/toaster.t
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2447
+t/values.t
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2448
+Todo
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2449
+META.yml                                 Module meta-data (added by MakeMaker)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2450
diff -ur --new-file perl-5.12.5/dist/Data-Dumper/MANIFEST.SKIP perl-5.12.5_dumper/dist/Data-Dumper/MANIFEST.SKIP
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2451
--- perl-5.12.5/dist/Data-Dumper/MANIFEST.SKIP	1969-12-31 19:00:00.000000000 -0500
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2452
+++ perl-5.12.5_dumper/dist/Data-Dumper/MANIFEST.SKIP	2014-10-09 15:06:36.169255091 -0400
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2453
@@ -0,0 +1,33 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2454
+Dumper\.bs$
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2455
+Dumper\.c$
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2456
+\.o$
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2457
+\.git/
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2458
+\.gitignore$
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2459
+\b(?:MY)?META\.(?:json|yml)$
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2460
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2461
+# Default section:
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2462
+# Avoid version control files.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2463
+\bRCS\b
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2464
+\bCVS\b
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2465
+,v$
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2466
+\B\.svn\b
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2467
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2468
+# Avoid Makemaker generated and utility files.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2469
+\bMakefile$
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2470
+\bblib
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2471
+\bMakeMaker-\d
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2472
+\bpm_to_blib$
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2473
+\bblibdirs$
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2474
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2475
+# Avoid Module::Build generated and utility files.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2476
+\bBuild$
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2477
+\b_build
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2478
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2479
+# Avoid temp and backup files.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2480
+~$
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2481
+\.tmp$
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2482
+\.old$
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2483
+\.bak$
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2484
+\#$
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2485
+\b\.#
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2486
+\b\..*\.sw[op]$
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2487
diff -ur --new-file perl-5.12.5/dist/Data-Dumper/META.yml perl-5.12.5_dumper/dist/Data-Dumper/META.yml
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2488
--- perl-5.12.5/dist/Data-Dumper/META.yml	1969-12-31 19:00:00.000000000 -0500
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2489
+++ perl-5.12.5_dumper/dist/Data-Dumper/META.yml	2014-10-09 15:06:36.169646557 -0400
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2490
@@ -0,0 +1,25 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2491
+--- #YAML:1.0
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2492
+name:               Data-Dumper
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2493
+version:            2.154
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2494
+abstract:           ~
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2495
+author:  []
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2496
+license:            unknown
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2497
+distribution_type:  module
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2498
+configure_requires:
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2499
+    ExtUtils::MakeMaker:  0
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2500
+build_requires:
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2501
+    Test::More:  0.98
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2502
+requires:  {}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2503
+resources:
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2504
+    bugtracker:   http://rt.perl.org/perlbug/
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2505
+    MailingList:  http://lists.cpan.org/showlist.cgi?name=perl5-porters
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2506
+    repository:   git://perl5.git.perl.org/perl.git perl-git
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2507
+no_index:
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2508
+    directory:
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2509
+        - t
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2510
+        - inc
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2511
+generated_by:       ExtUtils::MakeMaker version 6.57_05
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2512
+meta-spec:
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2513
+    url:      http://module-build.sourceforge.net/META-spec-v1.4.html
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2514
+    version:  1.4
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2515
+dynamic_config:     0
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2516
diff -ur --new-file perl-5.12.5/dist/Data-Dumper/ppport.h perl-5.12.5_dumper/dist/Data-Dumper/ppport.h
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2517
--- perl-5.12.5/dist/Data-Dumper/ppport.h	1969-12-31 19:00:00.000000000 -0500
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2518
+++ perl-5.12.5_dumper/dist/Data-Dumper/ppport.h	2014-10-09 15:06:36.171549607 -0400
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2519
@@ -0,0 +1,7452 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2520
+#if 0
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2521
+<<'SKIP';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2522
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2523
+/*
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2524
+----------------------------------------------------------------------
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2525
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2526
+    ppport.h -- Perl/Pollution/Portability Version 3.21
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2527
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2528
+    Automatically created by Devel::PPPort running under perl 5.014002.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2529
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2530
+    Do NOT edit this file directly! -- Edit PPPort_pm.PL and the
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2531
+    includes in parts/inc/ instead.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2532
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2533
+    Use 'perldoc ppport.h' to view the documentation below.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2534
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2535
+----------------------------------------------------------------------
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2536
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2537
+SKIP
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2538
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2539
+=pod
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2540
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2541
+=head1 NAME
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2542
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2543
+ppport.h - Perl/Pollution/Portability version 3.21
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2544
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2545
+=head1 SYNOPSIS
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2546
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2547
+  perl ppport.h [options] [source files]
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2548
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2549
+  Searches current directory for files if no [source files] are given
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2550
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2551
+  --help                      show short help
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2552
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2553
+  --version                   show version
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2554
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2555
+  --patch=file                write one patch file with changes
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2556
+  --copy=suffix               write changed copies with suffix
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2557
+  --diff=program              use diff program and options
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2558
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2559
+  --compat-version=version    provide compatibility with Perl version
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2560
+  --cplusplus                 accept C++ comments
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2561
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2562
+  --quiet                     don't output anything except fatal errors
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2563
+  --nodiag                    don't show diagnostics
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2564
+  --nohints                   don't show hints
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2565
+  --nochanges                 don't suggest changes
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2566
+  --nofilter                  don't filter input files
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2567
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2568
+  --strip                     strip all script and doc functionality from
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2569
+                              ppport.h
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2570
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2571
+  --list-provided             list provided API
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2572
+  --list-unsupported          list unsupported API
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2573
+  --api-info=name             show Perl API portability information
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2574
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2575
+=head1 COMPATIBILITY
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2576
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2577
+This version of F<ppport.h> is designed to support operation with Perl
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2578
+installations back to 5.003, and has been tested up to 5.11.5.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2579
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2580
+=head1 OPTIONS
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2581
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2582
+=head2 --help
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2583
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2584
+Display a brief usage summary.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2585
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2586
+=head2 --version
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2587
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2588
+Display the version of F<ppport.h>.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2589
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2590
+=head2 --patch=I<file>
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2591
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2592
+If this option is given, a single patch file will be created if
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2593
+any changes are suggested. This requires a working diff program
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2594
+to be installed on your system.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2595
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2596
+=head2 --copy=I<suffix>
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2597
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2598
+If this option is given, a copy of each file will be saved with
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2599
+the given suffix that contains the suggested changes. This does
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2600
+not require any external programs. Note that this does not
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2601
+automagially add a dot between the original filename and the
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2602
+suffix. If you want the dot, you have to include it in the option
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2603
+argument.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2604
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2605
+If neither C<--patch> or C<--copy> are given, the default is to
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2606
+simply print the diffs for each file. This requires either
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2607
+C<Text::Diff> or a C<diff> program to be installed.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2608
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2609
+=head2 --diff=I<program>
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2610
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2611
+Manually set the diff program and options to use. The default
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2612
+is to use C<Text::Diff>, when installed, and output unified
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2613
+context diffs.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2614
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2615
+=head2 --compat-version=I<version>
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2616
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2617
+Tell F<ppport.h> to check for compatibility with the given
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2618
+Perl version. The default is to check for compatibility with Perl
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2619
+version 5.003. You can use this option to reduce the output
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2620
+of F<ppport.h> if you intend to be backward compatible only
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2621
+down to a certain Perl version.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2622
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2623
+=head2 --cplusplus
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2624
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2625
+Usually, F<ppport.h> will detect C++ style comments and
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2626
+replace them with C style comments for portability reasons.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2627
+Using this option instructs F<ppport.h> to leave C++
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2628
+comments untouched.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2629
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2630
+=head2 --quiet
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2631
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2632
+Be quiet. Don't print anything except fatal errors.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2633
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2634
+=head2 --nodiag
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2635
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2636
+Don't output any diagnostic messages. Only portability
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2637
+alerts will be printed.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2638
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2639
+=head2 --nohints
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2640
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2641
+Don't output any hints. Hints often contain useful portability
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2642
+notes. Warnings will still be displayed.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2643
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2644
+=head2 --nochanges
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2645
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2646
+Don't suggest any changes. Only give diagnostic output and hints
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2647
+unless these are also deactivated.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2648
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2649
+=head2 --nofilter
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2650
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2651
+Don't filter the list of input files. By default, files not looking
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2652
+like source code (i.e. not *.xs, *.c, *.cc, *.cpp or *.h) are skipped.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2653
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2654
+=head2 --strip
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2655
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2656
+Strip all script and documentation functionality from F<ppport.h>.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2657
+This reduces the size of F<ppport.h> dramatically and may be useful
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2658
+if you want to include F<ppport.h> in smaller modules without
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2659
+increasing their distribution size too much.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2660
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2661
+The stripped F<ppport.h> will have a C<--unstrip> option that allows
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2662
+you to undo the stripping, but only if an appropriate C<Devel::PPPort>
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2663
+module is installed.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2664
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2665
+=head2 --list-provided
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2666
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2667
+Lists the API elements for which compatibility is provided by
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2668
+F<ppport.h>. Also lists if it must be explicitly requested,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2669
+if it has dependencies, and if there are hints or warnings for it.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2670
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2671
+=head2 --list-unsupported
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2672
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2673
+Lists the API elements that are known not to be supported by
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2674
+F<ppport.h> and below which version of Perl they probably
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2675
+won't be available or work.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2676
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2677
+=head2 --api-info=I<name>
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2678
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2679
+Show portability information for API elements matching I<name>.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2680
+If I<name> is surrounded by slashes, it is interpreted as a regular
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2681
+expression.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2682
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2683
+=head1 DESCRIPTION
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2684
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2685
+In order for a Perl extension (XS) module to be as portable as possible
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2686
+across differing versions of Perl itself, certain steps need to be taken.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2687
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2688
+=over 4
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2689
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2690
+=item *
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2691
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2692
+Including this header is the first major one. This alone will give you
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2693
+access to a large part of the Perl API that hasn't been available in
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2694
+earlier Perl releases. Use
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2695
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2696
+    perl ppport.h --list-provided
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2697
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2698
+to see which API elements are provided by ppport.h.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2699
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2700
+=item *
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2701
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2702
+You should avoid using deprecated parts of the API. For example, using
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2703
+global Perl variables without the C<PL_> prefix is deprecated. Also,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2704
+some API functions used to have a C<perl_> prefix. Using this form is
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2705
+also deprecated. You can safely use the supported API, as F<ppport.h>
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2706
+will provide wrappers for older Perl versions.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2707
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2708
+=item *
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2709
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2710
+If you use one of a few functions or variables that were not present in
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2711
+earlier versions of Perl, and that can't be provided using a macro, you
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2712
+have to explicitly request support for these functions by adding one or
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2713
+more C<#define>s in your source code before the inclusion of F<ppport.h>.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2714
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2715
+These functions or variables will be marked C<explicit> in the list shown
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2716
+by C<--list-provided>.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2717
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2718
+Depending on whether you module has a single or multiple files that
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2719
+use such functions or variables, you want either C<static> or global
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2720
+variants.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2721
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2722
+For a C<static> function or variable (used only in a single source
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2723
+file), use:
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2724
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2725
+    #define NEED_function
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2726
+    #define NEED_variable
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2727
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2728
+For a global function or variable (used in multiple source files),
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2729
+use:
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2730
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2731
+    #define NEED_function_GLOBAL
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2732
+    #define NEED_variable_GLOBAL
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2733
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2734
+Note that you mustn't have more than one global request for the
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2735
+same function or variable in your project.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2736
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2737
+    Function / Variable       Static Request               Global Request
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2738
+    -----------------------------------------------------------------------------------------
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2739
+    PL_parser                 NEED_PL_parser               NEED_PL_parser_GLOBAL
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2740
+    PL_signals                NEED_PL_signals              NEED_PL_signals_GLOBAL
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2741
+    eval_pv()                 NEED_eval_pv                 NEED_eval_pv_GLOBAL
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2742
+    grok_bin()                NEED_grok_bin                NEED_grok_bin_GLOBAL
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2743
+    grok_hex()                NEED_grok_hex                NEED_grok_hex_GLOBAL
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2744
+    grok_number()             NEED_grok_number             NEED_grok_number_GLOBAL
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2745
+    grok_numeric_radix()      NEED_grok_numeric_radix      NEED_grok_numeric_radix_GLOBAL
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2746
+    grok_oct()                NEED_grok_oct                NEED_grok_oct_GLOBAL
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2747
+    load_module()             NEED_load_module             NEED_load_module_GLOBAL
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2748
+    my_snprintf()             NEED_my_snprintf             NEED_my_snprintf_GLOBAL
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2749
+    my_sprintf()              NEED_my_sprintf              NEED_my_sprintf_GLOBAL
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2750
+    my_strlcat()              NEED_my_strlcat              NEED_my_strlcat_GLOBAL
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2751
+    my_strlcpy()              NEED_my_strlcpy              NEED_my_strlcpy_GLOBAL
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2752
+    newCONSTSUB()             NEED_newCONSTSUB             NEED_newCONSTSUB_GLOBAL
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2753
+    newRV_noinc()             NEED_newRV_noinc             NEED_newRV_noinc_GLOBAL
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2754
+    newSV_type()              NEED_newSV_type              NEED_newSV_type_GLOBAL
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2755
+    newSVpvn_flags()          NEED_newSVpvn_flags          NEED_newSVpvn_flags_GLOBAL
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2756
+    newSVpvn_share()          NEED_newSVpvn_share          NEED_newSVpvn_share_GLOBAL
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2757
+    pv_display()              NEED_pv_display              NEED_pv_display_GLOBAL
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2758
+    pv_escape()               NEED_pv_escape               NEED_pv_escape_GLOBAL
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2759
+    pv_pretty()               NEED_pv_pretty               NEED_pv_pretty_GLOBAL
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2760
+    sv_2pv_flags()            NEED_sv_2pv_flags            NEED_sv_2pv_flags_GLOBAL
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2761
+    sv_2pvbyte()              NEED_sv_2pvbyte              NEED_sv_2pvbyte_GLOBAL
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2762
+    sv_catpvf_mg()            NEED_sv_catpvf_mg            NEED_sv_catpvf_mg_GLOBAL
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2763
+    sv_catpvf_mg_nocontext()  NEED_sv_catpvf_mg_nocontext  NEED_sv_catpvf_mg_nocontext_GLOBAL
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2764
+    sv_pvn_force_flags()      NEED_sv_pvn_force_flags      NEED_sv_pvn_force_flags_GLOBAL
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2765
+    sv_setpvf_mg()            NEED_sv_setpvf_mg            NEED_sv_setpvf_mg_GLOBAL
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2766
+    sv_setpvf_mg_nocontext()  NEED_sv_setpvf_mg_nocontext  NEED_sv_setpvf_mg_nocontext_GLOBAL
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2767
+    vload_module()            NEED_vload_module            NEED_vload_module_GLOBAL
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2768
+    vnewSVpvf()               NEED_vnewSVpvf               NEED_vnewSVpvf_GLOBAL
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2769
+    warner()                  NEED_warner                  NEED_warner_GLOBAL
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2770
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2771
+To avoid namespace conflicts, you can change the namespace of the
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2772
+explicitly exported functions / variables using the C<DPPP_NAMESPACE>
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2773
+macro. Just C<#define> the macro before including C<ppport.h>:
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2774
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2775
+    #define DPPP_NAMESPACE MyOwnNamespace_
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2776
+    #include "ppport.h"
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2777
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2778
+The default namespace is C<DPPP_>.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2779
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2780
+=back
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2781
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2782
+The good thing is that most of the above can be checked by running
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2783
+F<ppport.h> on your source code. See the next section for
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2784
+details.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2785
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2786
+=head1 EXAMPLES
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2787
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2788
+To verify whether F<ppport.h> is needed for your module, whether you
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2789
+should make any changes to your code, and whether any special defines
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2790
+should be used, F<ppport.h> can be run as a Perl script to check your
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2791
+source code. Simply say:
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2792
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2793
+    perl ppport.h
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2794
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2795
+The result will usually be a list of patches suggesting changes
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2796
+that should at least be acceptable, if not necessarily the most
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2797
+efficient solution, or a fix for all possible problems.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2798
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2799
+If you know that your XS module uses features only available in
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2800
+newer Perl releases, if you're aware that it uses C++ comments,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2801
+and if you want all suggestions as a single patch file, you could
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2802
+use something like this:
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2803
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2804
+    perl ppport.h --compat-version=5.6.0 --cplusplus --patch=test.diff
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2805
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2806
+If you only want your code to be scanned without any suggestions
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2807
+for changes, use:
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2808
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2809
+    perl ppport.h --nochanges
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2810
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2811
+You can specify a different C<diff> program or options, using
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2812
+the C<--diff> option:
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2813
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2814
+    perl ppport.h --diff='diff -C 10'
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2815
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2816
+This would output context diffs with 10 lines of context.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2817
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2818
+If you want to create patched copies of your files instead, use:
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2819
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2820
+    perl ppport.h --copy=.new
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2821
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2822
+To display portability information for the C<newSVpvn> function,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2823
+use:
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2824
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2825
+    perl ppport.h --api-info=newSVpvn
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2826
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2827
+Since the argument to C<--api-info> can be a regular expression,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2828
+you can use
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2829
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2830
+    perl ppport.h --api-info=/_nomg$/
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2831
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2832
+to display portability information for all C<_nomg> functions or
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2833
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2834
+    perl ppport.h --api-info=/./
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2835
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2836
+to display information for all known API elements.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2837
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2838
+=head1 BUGS
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2839
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2840
+If this version of F<ppport.h> is causing failure during
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2841
+the compilation of this module, please check if newer versions
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2842
+of either this module or C<Devel::PPPort> are available on CPAN
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2843
+before sending a bug report.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2844
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2845
+If F<ppport.h> was generated using the latest version of
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2846
+C<Devel::PPPort> and is causing failure of this module, please
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2847
+file a bug report using the CPAN Request Tracker at L<http://rt.cpan.org/>.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2848
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2849
+Please include the following information:
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2850
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2851
+=over 4
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2852
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2853
+=item 1.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2854
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2855
+The complete output from running "perl -V"
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2856
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2857
+=item 2.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2858
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2859
+This file.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2860
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2861
+=item 3.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2862
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2863
+The name and version of the module you were trying to build.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2864
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2865
+=item 4.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2866
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2867
+A full log of the build that failed.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2868
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2869
+=item 5.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2870
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2871
+Any other information that you think could be relevant.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2872
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2873
+=back
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2874
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2875
+For the latest version of this code, please get the C<Devel::PPPort>
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2876
+module from CPAN.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2877
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2878
+=head1 COPYRIGHT
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2879
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2880
+Version 3.x, Copyright (c) 2004-2013, Marcus Holland-Moritz.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2881
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2882
+Version 2.x, Copyright (C) 2001, Paul Marquess.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2883
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2884
+Version 1.x, Copyright (C) 1999, Kenneth Albanowski.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2885
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2886
+This program is free software; you can redistribute it and/or
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2887
+modify it under the same terms as Perl itself.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2888
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2889
+=head1 SEE ALSO
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2890
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2891
+See L<Devel::PPPort>.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2892
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2893
+=cut
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2894
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2895
+use strict;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2896
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2897
+# Disable broken TRIE-optimization
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2898
+BEGIN { eval '${^RE_TRIE_MAXBUF} = -1' if $] >= 5.009004 && $] <= 5.009005 }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2899
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2900
+my $VERSION = 3.21;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2901
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2902
+my %opt = (
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2903
+  quiet     => 0,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2904
+  diag      => 1,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2905
+  hints     => 1,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2906
+  changes   => 1,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2907
+  cplusplus => 0,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2908
+  filter    => 1,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2909
+  strip     => 0,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2910
+  version   => 0,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2911
+);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2912
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2913
+my($ppport) = $0 =~ /([\w.]+)$/;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2914
+my $LF = '(?:\r\n|[\r\n])';   # line feed
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2915
+my $HS = "[ \t]";             # horizontal whitespace
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2916
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2917
+# Never use C comments in this file!
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2918
+my $ccs  = '/'.'*';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2919
+my $cce  = '*'.'/';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2920
+my $rccs = quotemeta $ccs;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2921
+my $rcce = quotemeta $cce;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2922
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2923
+eval {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2924
+  require Getopt::Long;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2925
+  Getopt::Long::GetOptions(\%opt, qw(
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2926
+    help quiet diag! filter! hints! changes! cplusplus strip version
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2927
+    patch=s copy=s diff=s compat-version=s
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2928
+    list-provided list-unsupported api-info=s
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2929
+  )) or usage();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2930
+};
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2931
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2932
+if ($@ and grep /^-/, @ARGV) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2933
+  usage() if "@ARGV" =~ /^--?h(?:elp)?$/;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2934
+  die "Getopt::Long not found. Please don't use any options.\n";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2935
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2936
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2937
+if ($opt{version}) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2938
+  print "This is $0 $VERSION.\n";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2939
+  exit 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2940
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2941
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2942
+usage() if $opt{help};
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2943
+strip() if $opt{strip};
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2944
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2945
+if (exists $opt{'compat-version'}) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2946
+  my($r,$v,$s) = eval { parse_version($opt{'compat-version'}) };
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2947
+  if ($@) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2948
+    die "Invalid version number format: '$opt{'compat-version'}'\n";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2949
+  }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2950
+  die "Only Perl 5 is supported\n" if $r != 5;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2951
+  die "Invalid version number: $opt{'compat-version'}\n" if $v >= 1000 || $s >= 1000;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2952
+  $opt{'compat-version'} = sprintf "%d.%03d%03d", $r, $v, $s;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2953
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2954
+else {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2955
+  $opt{'compat-version'} = 5;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2956
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2957
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2958
+my %API = map { /^(\w+)\|([^|]*)\|([^|]*)\|(\w*)$/
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2959
+                ? ( $1 => {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2960
+                      ($2                  ? ( base     => $2 ) : ()),
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2961
+                      ($3                  ? ( todo     => $3 ) : ()),
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2962
+                      (index($4, 'v') >= 0 ? ( varargs  => 1  ) : ()),
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2963
+                      (index($4, 'p') >= 0 ? ( provided => 1  ) : ()),
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2964
+                      (index($4, 'n') >= 0 ? ( nothxarg => 1  ) : ()),
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2965
+                    } )
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2966
+                : die "invalid spec: $_" } qw(
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2967
+AvFILLp|5.004050||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2968
+AvFILL|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2969
+BhkDISABLE||5.019003|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2970
+BhkENABLE||5.019003|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2971
+BhkENTRY_set||5.019003|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2972
+BhkENTRY|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2973
+BhkFLAGS|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2974
+CALL_BLOCK_HOOKS|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2975
+CLASS|||n
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2976
+CPERLscope|5.005000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2977
+CX_CURPAD_SAVE|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2978
+CX_CURPAD_SV|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2979
+CopFILEAV|5.006000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2980
+CopFILEGV_set|5.006000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2981
+CopFILEGV|5.006000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2982
+CopFILESV|5.006000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2983
+CopFILE_set|5.006000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2984
+CopFILE|5.006000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2985
+CopSTASHPV_set|5.006000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2986
+CopSTASHPV|5.006000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2987
+CopSTASH_eq|5.006000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2988
+CopSTASH_set|5.006000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2989
+CopSTASH|5.006000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2990
+CopyD|5.009002|5.004050|p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2991
+Copy||5.004050|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2992
+CvPADLIST||5.008001|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2993
+CvSTASH|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2994
+CvWEAKOUTSIDE|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2995
+DEFSV_set|5.010001||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2996
+DEFSV|5.004050||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2997
+END_EXTERN_C|5.005000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2998
+ENTER|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  2999
+ERRSV|5.004050||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3000
+EXTEND|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3001
+EXTERN_C|5.005000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3002
+F0convert|||n
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3003
+FREETMPS|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3004
+GIMME_V||5.004000|n
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3005
+GIMME|||n
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3006
+GROK_NUMERIC_RADIX|5.007002||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3007
+G_ARRAY|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3008
+G_DISCARD|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3009
+G_EVAL|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3010
+G_METHOD|5.006001||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3011
+G_NOARGS|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3012
+G_SCALAR|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3013
+G_VOID||5.004000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3014
+GetVars|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3015
+GvAV|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3016
+GvCV|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3017
+GvHV|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3018
+GvSVn|5.009003||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3019
+GvSV|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3020
+Gv_AMupdate||5.011000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3021
+HEf_SVKEY||5.004000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3022
+HeHASH||5.004000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3023
+HeKEY||5.004000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3024
+HeKLEN||5.004000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3025
+HePV||5.004000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3026
+HeSVKEY_force||5.004000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3027
+HeSVKEY_set||5.004000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3028
+HeSVKEY||5.004000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3029
+HeUTF8||5.010001|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3030
+HeVAL||5.004000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3031
+HvENAMELEN||5.015004|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3032
+HvENAMEUTF8||5.015004|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3033
+HvENAME||5.013007|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3034
+HvNAMELEN_get|5.009003||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3035
+HvNAMELEN||5.015004|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3036
+HvNAMEUTF8||5.015004|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3037
+HvNAME_get|5.009003||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3038
+HvNAME|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3039
+INT2PTR|5.006000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3040
+IN_LOCALE_COMPILETIME|5.007002||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3041
+IN_LOCALE_RUNTIME|5.007002||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3042
+IN_LOCALE|5.007002||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3043
+IN_PERL_COMPILETIME|5.008001||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3044
+IS_NUMBER_GREATER_THAN_UV_MAX|5.007002||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3045
+IS_NUMBER_INFINITY|5.007002||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3046
+IS_NUMBER_IN_UV|5.007002||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3047
+IS_NUMBER_NAN|5.007003||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3048
+IS_NUMBER_NEG|5.007002||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3049
+IS_NUMBER_NOT_INT|5.007002||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3050
+IVSIZE|5.006000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3051
+IVTYPE|5.006000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3052
+IVdf|5.006000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3053
+LEAVE|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3054
+LINKLIST||5.013006|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3055
+LVRET|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3056
+MARK|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3057
+MULTICALL||5.019003|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3058
+MY_CXT_CLONE|5.009002||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3059
+MY_CXT_INIT|5.007003||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3060
+MY_CXT|5.007003||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3061
+MoveD|5.009002|5.004050|p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3062
+Move||5.004050|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3063
+NOOP|5.005000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3064
+NUM2PTR|5.006000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3065
+NVTYPE|5.006000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3066
+NVef|5.006001||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3067
+NVff|5.006001||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3068
+NVgf|5.006001||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3069
+Newxc|5.009003||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3070
+Newxz|5.009003||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3071
+Newx|5.009003||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3072
+Nullav|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3073
+Nullch|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3074
+Nullcv|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3075
+Nullhv|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3076
+Nullsv|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3077
+OP_CLASS||5.013007|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3078
+OP_DESC||5.007003|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3079
+OP_NAME||5.007003|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3080
+ORIGMARK|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3081
+PAD_BASE_SV|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3082
+PAD_CLONE_VARS|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3083
+PAD_COMPNAME_FLAGS|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3084
+PAD_COMPNAME_GEN_set|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3085
+PAD_COMPNAME_GEN|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3086
+PAD_COMPNAME_OURSTASH|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3087
+PAD_COMPNAME_PV|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3088
+PAD_COMPNAME_TYPE|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3089
+PAD_RESTORE_LOCAL|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3090
+PAD_SAVE_LOCAL|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3091
+PAD_SAVE_SETNULLPAD|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3092
+PAD_SETSV|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3093
+PAD_SET_CUR_NOSAVE|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3094
+PAD_SET_CUR|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3095
+PAD_SVl|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3096
+PAD_SV|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3097
+PERLIO_FUNCS_CAST|5.009003||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3098
+PERLIO_FUNCS_DECL|5.009003||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3099
+PERL_ABS|5.008001||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3100
+PERL_BCDVERSION|5.019002||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3101
+PERL_GCC_BRACE_GROUPS_FORBIDDEN|5.008001||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3102
+PERL_HASH|5.004000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3103
+PERL_INT_MAX|5.004000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3104
+PERL_INT_MIN|5.004000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3105
+PERL_LONG_MAX|5.004000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3106
+PERL_LONG_MIN|5.004000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3107
+PERL_MAGIC_arylen|5.007002||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3108
+PERL_MAGIC_backref|5.007002||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3109
+PERL_MAGIC_bm|5.007002||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3110
+PERL_MAGIC_collxfrm|5.007002||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3111
+PERL_MAGIC_dbfile|5.007002||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3112
+PERL_MAGIC_dbline|5.007002||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3113
+PERL_MAGIC_defelem|5.007002||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3114
+PERL_MAGIC_envelem|5.007002||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3115
+PERL_MAGIC_env|5.007002||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3116
+PERL_MAGIC_ext|5.007002||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3117
+PERL_MAGIC_fm|5.007002||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3118
+PERL_MAGIC_glob|5.019002||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3119
+PERL_MAGIC_isaelem|5.007002||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3120
+PERL_MAGIC_isa|5.007002||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3121
+PERL_MAGIC_mutex|5.019002||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3122
+PERL_MAGIC_nkeys|5.007002||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3123
+PERL_MAGIC_overload_elem|5.019002||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3124
+PERL_MAGIC_overload_table|5.007002||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3125
+PERL_MAGIC_overload|5.019002||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3126
+PERL_MAGIC_pos|5.007002||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3127
+PERL_MAGIC_qr|5.007002||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3128
+PERL_MAGIC_regdata|5.007002||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3129
+PERL_MAGIC_regdatum|5.007002||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3130
+PERL_MAGIC_regex_global|5.007002||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3131
+PERL_MAGIC_shared_scalar|5.007003||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3132
+PERL_MAGIC_shared|5.007003||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3133
+PERL_MAGIC_sigelem|5.007002||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3134
+PERL_MAGIC_sig|5.007002||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3135
+PERL_MAGIC_substr|5.007002||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3136
+PERL_MAGIC_sv|5.007002||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3137
+PERL_MAGIC_taint|5.007002||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3138
+PERL_MAGIC_tiedelem|5.007002||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3139
+PERL_MAGIC_tiedscalar|5.007002||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3140
+PERL_MAGIC_tied|5.007002||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3141
+PERL_MAGIC_utf8|5.008001||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3142
+PERL_MAGIC_uvar_elem|5.007003||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3143
+PERL_MAGIC_uvar|5.007002||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3144
+PERL_MAGIC_vec|5.007002||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3145
+PERL_MAGIC_vstring|5.008001||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3146
+PERL_PV_ESCAPE_ALL|5.009004||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3147
+PERL_PV_ESCAPE_FIRSTCHAR|5.009004||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3148
+PERL_PV_ESCAPE_NOBACKSLASH|5.009004||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3149
+PERL_PV_ESCAPE_NOCLEAR|5.009004||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3150
+PERL_PV_ESCAPE_QUOTE|5.009004||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3151
+PERL_PV_ESCAPE_RE|5.009005||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3152
+PERL_PV_ESCAPE_UNI_DETECT|5.009004||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3153
+PERL_PV_ESCAPE_UNI|5.009004||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3154
+PERL_PV_PRETTY_DUMP|5.009004||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3155
+PERL_PV_PRETTY_ELLIPSES|5.010000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3156
+PERL_PV_PRETTY_LTGT|5.009004||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3157
+PERL_PV_PRETTY_NOCLEAR|5.010000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3158
+PERL_PV_PRETTY_QUOTE|5.009004||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3159
+PERL_PV_PRETTY_REGPROP|5.009004||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3160
+PERL_QUAD_MAX|5.004000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3161
+PERL_QUAD_MIN|5.004000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3162
+PERL_REVISION|5.006000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3163
+PERL_SCAN_ALLOW_UNDERSCORES|5.007003||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3164
+PERL_SCAN_DISALLOW_PREFIX|5.007003||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3165
+PERL_SCAN_GREATER_THAN_UV_MAX|5.007003||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3166
+PERL_SCAN_SILENT_ILLDIGIT|5.008001||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3167
+PERL_SHORT_MAX|5.004000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3168
+PERL_SHORT_MIN|5.004000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3169
+PERL_SIGNALS_UNSAFE_FLAG|5.008001||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3170
+PERL_SUBVERSION|5.006000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3171
+PERL_SYS_INIT3||5.010000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3172
+PERL_SYS_INIT||5.010000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3173
+PERL_SYS_TERM||5.019003|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3174
+PERL_UCHAR_MAX|5.004000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3175
+PERL_UCHAR_MIN|5.004000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3176
+PERL_UINT_MAX|5.004000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3177
+PERL_UINT_MIN|5.004000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3178
+PERL_ULONG_MAX|5.004000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3179
+PERL_ULONG_MIN|5.004000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3180
+PERL_UNUSED_ARG|5.009003||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3181
+PERL_UNUSED_CONTEXT|5.009004||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3182
+PERL_UNUSED_DECL|5.007002||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3183
+PERL_UNUSED_VAR|5.007002||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3184
+PERL_UQUAD_MAX|5.004000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3185
+PERL_UQUAD_MIN|5.004000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3186
+PERL_USE_GCC_BRACE_GROUPS|5.009004||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3187
+PERL_USHORT_MAX|5.004000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3188
+PERL_USHORT_MIN|5.004000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3189
+PERL_VERSION|5.006000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3190
+PL_DBsignal|5.005000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3191
+PL_DBsingle|||pn
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3192
+PL_DBsub|||pn
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3193
+PL_DBtrace|||pn
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3194
+PL_Sv|5.005000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3195
+PL_bufend|5.019002||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3196
+PL_bufptr|5.019002||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3197
+PL_check||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3198
+PL_compiling|5.004050||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3199
+PL_comppad_name||5.017004|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3200
+PL_comppad||5.008001|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3201
+PL_copline|5.019002||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3202
+PL_curcop|5.004050||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3203
+PL_curpad||5.005000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3204
+PL_curstash|5.004050||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3205
+PL_debstash|5.004050||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3206
+PL_defgv|5.004050||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3207
+PL_diehook|5.004050||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3208
+PL_dirty|5.004050||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3209
+PL_dowarn|||pn
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3210
+PL_errgv|5.004050||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3211
+PL_error_count|5.019002||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3212
+PL_expect|5.019002||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3213
+PL_hexdigit|5.005000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3214
+PL_hints|5.005000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3215
+PL_in_my_stash|5.019002||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3216
+PL_in_my|5.019002||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3217
+PL_keyword_plugin||5.011002|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3218
+PL_last_in_gv|||n
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3219
+PL_laststatval|5.005000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3220
+PL_lex_state|5.019002||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3221
+PL_lex_stuff|5.019002||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3222
+PL_linestr|5.019002||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3223
+PL_modglobal||5.005000|n
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3224
+PL_na|5.004050||pn
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3225
+PL_no_modify|5.006000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3226
+PL_ofsgv|||n
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3227
+PL_opfreehook||5.011000|n
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3228
+PL_parser|5.009005|5.009005|p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3229
+PL_peepp||5.007003|n
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3230
+PL_perl_destruct_level|5.004050||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3231
+PL_perldb|5.004050||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3232
+PL_ppaddr|5.006000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3233
+PL_rpeepp||5.013005|n
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3234
+PL_rsfp_filters|5.019002||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3235
+PL_rsfp|5.019002||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3236
+PL_rs|||n
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3237
+PL_signals|5.008001||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3238
+PL_stack_base|5.004050||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3239
+PL_stack_sp|5.004050||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3240
+PL_statcache|5.005000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3241
+PL_stdingv|5.004050||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3242
+PL_sv_arenaroot|5.004050||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3243
+PL_sv_no|5.004050||pn
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3244
+PL_sv_undef|5.004050||pn
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3245
+PL_sv_yes|5.004050||pn
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3246
+PL_tainted|5.004050||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3247
+PL_tainting|5.004050||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3248
+PL_tokenbuf|5.019002||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3249
+POP_MULTICALL||5.019003|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3250
+POPi|||n
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3251
+POPl|||n
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3252
+POPn|||n
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3253
+POPpbytex||5.007001|n
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3254
+POPpx||5.005030|n
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3255
+POPp|||n
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3256
+POPs|||n
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3257
+PTR2IV|5.006000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3258
+PTR2NV|5.006000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3259
+PTR2UV|5.006000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3260
+PTR2nat|5.009003||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3261
+PTR2ul|5.007001||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3262
+PTRV|5.006000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3263
+PUSHMARK|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3264
+PUSH_MULTICALL||5.019003|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3265
+PUSHi|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3266
+PUSHmortal|5.009002||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3267
+PUSHn|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3268
+PUSHp|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3269
+PUSHs|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3270
+PUSHu|5.004000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3271
+PUTBACK|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3272
+PadARRAY||5.019003|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3273
+PadMAX||5.019003|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3274
+PadlistARRAY||5.019003|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3275
+PadlistMAX||5.019003|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3276
+PadlistNAMESARRAY||5.019003|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3277
+PadlistNAMESMAX||5.019003|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3278
+PadlistNAMES||5.019003|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3279
+PadlistREFCNT||5.017004|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3280
+PadnameIsOUR|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3281
+PadnameIsSTATE|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3282
+PadnameLEN||5.019003|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3283
+PadnameOURSTASH|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3284
+PadnameOUTER|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3285
+PadnamePV||5.019003|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3286
+PadnameSV||5.019003|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3287
+PadnameTYPE|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3288
+PadnameUTF8||5.019003|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3289
+PadnamelistARRAY||5.019003|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3290
+PadnamelistMAX||5.019003|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3291
+PerlIO_clearerr||5.007003|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3292
+PerlIO_close||5.007003|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3293
+PerlIO_context_layers||5.009004|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3294
+PerlIO_eof||5.007003|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3295
+PerlIO_error||5.007003|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3296
+PerlIO_fileno||5.007003|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3297
+PerlIO_fill||5.007003|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3298
+PerlIO_flush||5.007003|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3299
+PerlIO_get_base||5.007003|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3300
+PerlIO_get_bufsiz||5.007003|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3301
+PerlIO_get_cnt||5.007003|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3302
+PerlIO_get_ptr||5.007003|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3303
+PerlIO_read||5.007003|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3304
+PerlIO_seek||5.007003|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3305
+PerlIO_set_cnt||5.007003|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3306
+PerlIO_set_ptrcnt||5.007003|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3307
+PerlIO_setlinebuf||5.007003|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3308
+PerlIO_stderr||5.007003|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3309
+PerlIO_stdin||5.007003|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3310
+PerlIO_stdout||5.007003|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3311
+PerlIO_tell||5.007003|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3312
+PerlIO_unread||5.007003|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3313
+PerlIO_write||5.007003|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3314
+Perl_signbit||5.009005|n
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3315
+PoisonFree|5.009004||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3316
+PoisonNew|5.009004||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3317
+PoisonWith|5.009004||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3318
+Poison|5.008000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3319
+READ_XDIGIT||5.017006|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3320
+RETVAL|||n
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3321
+Renewc|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3322
+Renew|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3323
+SAVECLEARSV|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3324
+SAVECOMPPAD|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3325
+SAVEPADSV|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3326
+SAVETMPS|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3327
+SAVE_DEFSV|5.004050||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3328
+SPAGAIN|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3329
+SP|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3330
+START_EXTERN_C|5.005000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3331
+START_MY_CXT|5.007003||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3332
+STMT_END|||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3333
+STMT_START|||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3334
+STR_WITH_LEN|5.009003||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3335
+ST|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3336
+SV_CONST_RETURN|5.009003||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3337
+SV_COW_DROP_PV|5.008001||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3338
+SV_COW_SHARED_HASH_KEYS|5.009005||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3339
+SV_GMAGIC|5.007002||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3340
+SV_HAS_TRAILING_NUL|5.009004||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3341
+SV_IMMEDIATE_UNREF|5.007001||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3342
+SV_MUTABLE_RETURN|5.009003||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3343
+SV_NOSTEAL|5.009002||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3344
+SV_SMAGIC|5.009003||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3345
+SV_UTF8_NO_ENCODING|5.008001||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3346
+SVfARG|5.009005||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3347
+SVf_UTF8|5.006000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3348
+SVf|5.006000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3349
+SVt_INVLIST||5.019002|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3350
+SVt_IV|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3351
+SVt_NULL|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3352
+SVt_NV|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3353
+SVt_PVAV|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3354
+SVt_PVCV|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3355
+SVt_PVFM|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3356
+SVt_PVGV|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3357
+SVt_PVHV|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3358
+SVt_PVIO|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3359
+SVt_PVIV|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3360
+SVt_PVLV|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3361
+SVt_PVMG|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3362
+SVt_PVNV|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3363
+SVt_PV|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3364
+SVt_REGEXP||5.011000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3365
+Safefree|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3366
+Slab_Alloc|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3367
+Slab_Free|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3368
+Slab_to_ro|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3369
+Slab_to_rw|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3370
+StructCopy|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3371
+SvCUR_set|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3372
+SvCUR|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3373
+SvEND|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3374
+SvGAMAGIC||5.006001|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3375
+SvGETMAGIC|5.004050||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3376
+SvGROW|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3377
+SvIOK_UV||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3378
+SvIOK_notUV||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3379
+SvIOK_off|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3380
+SvIOK_only_UV||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3381
+SvIOK_only|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3382
+SvIOK_on|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3383
+SvIOKp|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3384
+SvIOK|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3385
+SvIVX|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3386
+SvIV_nomg|5.009001||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3387
+SvIV_set|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3388
+SvIVx|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3389
+SvIV|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3390
+SvIsCOW_shared_hash||5.008003|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3391
+SvIsCOW||5.008003|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3392
+SvLEN_set|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3393
+SvLEN|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3394
+SvLOCK||5.007003|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3395
+SvMAGIC_set|5.009003||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3396
+SvNIOK_off|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3397
+SvNIOKp|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3398
+SvNIOK|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3399
+SvNOK_off|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3400
+SvNOK_only|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3401
+SvNOK_on|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3402
+SvNOKp|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3403
+SvNOK|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3404
+SvNVX|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3405
+SvNV_nomg||5.013002|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3406
+SvNV_set|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3407
+SvNVx|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3408
+SvNV|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3409
+SvOK|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3410
+SvOOK_offset||5.011000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3411
+SvOOK|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3412
+SvPOK_off|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3413
+SvPOK_only_UTF8||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3414
+SvPOK_only|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3415
+SvPOK_on|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3416
+SvPOKp|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3417
+SvPOK|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3418
+SvPVX_const|5.009003||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3419
+SvPVX_mutable|5.009003||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3420
+SvPVX|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3421
+SvPV_const|5.009003||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3422
+SvPV_flags_const_nolen|5.009003||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3423
+SvPV_flags_const|5.009003||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3424
+SvPV_flags_mutable|5.009003||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3425
+SvPV_flags|5.007002||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3426
+SvPV_force_flags_mutable|5.009003||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3427
+SvPV_force_flags_nolen|5.009003||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3428
+SvPV_force_flags|5.007002||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3429
+SvPV_force_mutable|5.009003||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3430
+SvPV_force_nolen|5.009003||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3431
+SvPV_force_nomg_nolen|5.009003||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3432
+SvPV_force_nomg|5.007002||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3433
+SvPV_force|||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3434
+SvPV_mutable|5.009003||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3435
+SvPV_nolen_const|5.009003||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3436
+SvPV_nolen|5.006000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3437
+SvPV_nomg_const_nolen|5.009003||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3438
+SvPV_nomg_const|5.009003||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3439
+SvPV_nomg_nolen|5.013007||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3440
+SvPV_nomg|5.007002||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3441
+SvPV_renew|5.009003||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3442
+SvPV_set|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3443
+SvPVbyte_force||5.009002|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3444
+SvPVbyte_nolen||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3445
+SvPVbytex_force||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3446
+SvPVbytex||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3447
+SvPVbyte|5.006000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3448
+SvPVutf8_force||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3449
+SvPVutf8_nolen||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3450
+SvPVutf8x_force||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3451
+SvPVutf8x||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3452
+SvPVutf8||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3453
+SvPVx|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3454
+SvPV|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3455
+SvREFCNT_dec_NN||5.017007|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3456
+SvREFCNT_dec|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3457
+SvREFCNT_inc_NN|5.009004||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3458
+SvREFCNT_inc_simple_NN|5.009004||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3459
+SvREFCNT_inc_simple_void_NN|5.009004||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3460
+SvREFCNT_inc_simple_void|5.009004||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3461
+SvREFCNT_inc_simple|5.009004||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3462
+SvREFCNT_inc_void_NN|5.009004||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3463
+SvREFCNT_inc_void|5.009004||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3464
+SvREFCNT_inc|||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3465
+SvREFCNT|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3466
+SvROK_off|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3467
+SvROK_on|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3468
+SvROK|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3469
+SvRV_set|5.009003||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3470
+SvRV|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3471
+SvRXOK||5.009005|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3472
+SvRX||5.009005|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3473
+SvSETMAGIC|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3474
+SvSHARED_HASH|5.009003||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3475
+SvSHARE||5.007003|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3476
+SvSTASH_set|5.009003||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3477
+SvSTASH|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3478
+SvSetMagicSV_nosteal||5.004000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3479
+SvSetMagicSV||5.004000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3480
+SvSetSV_nosteal||5.004000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3481
+SvSetSV|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3482
+SvTAINTED_off||5.004000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3483
+SvTAINTED_on||5.004000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3484
+SvTAINTED||5.004000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3485
+SvTAINT|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3486
+SvTHINKFIRST|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3487
+SvTRUE_nomg||5.013006|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3488
+SvTRUE|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3489
+SvTYPE|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3490
+SvUNLOCK||5.007003|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3491
+SvUOK|5.007001|5.006000|p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3492
+SvUPGRADE|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3493
+SvUTF8_off||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3494
+SvUTF8_on||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3495
+SvUTF8||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3496
+SvUVXx|5.004000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3497
+SvUVX|5.004000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3498
+SvUV_nomg|5.009001||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3499
+SvUV_set|5.009003||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3500
+SvUVx|5.004000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3501
+SvUV|5.004000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3502
+SvVOK||5.008001|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3503
+SvVSTRING_mg|5.009004||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3504
+THIS|||n
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3505
+UNDERBAR|5.009002||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3506
+UTF8_MAXBYTES|5.009002||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3507
+UVSIZE|5.006000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3508
+UVTYPE|5.006000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3509
+UVXf|5.007001||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3510
+UVof|5.006000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3511
+UVuf|5.006000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3512
+UVxf|5.006000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3513
+WARN_ALL|5.006000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3514
+WARN_AMBIGUOUS|5.006000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3515
+WARN_ASSERTIONS|5.019002||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3516
+WARN_BAREWORD|5.006000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3517
+WARN_CLOSED|5.006000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3518
+WARN_CLOSURE|5.006000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3519
+WARN_DEBUGGING|5.006000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3520
+WARN_DEPRECATED|5.006000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3521
+WARN_DIGIT|5.006000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3522
+WARN_EXEC|5.006000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3523
+WARN_EXITING|5.006000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3524
+WARN_GLOB|5.006000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3525
+WARN_INPLACE|5.006000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3526
+WARN_INTERNAL|5.006000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3527
+WARN_IO|5.006000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3528
+WARN_LAYER|5.008000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3529
+WARN_MALLOC|5.006000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3530
+WARN_MISC|5.006000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3531
+WARN_NEWLINE|5.006000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3532
+WARN_NUMERIC|5.006000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3533
+WARN_ONCE|5.006000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3534
+WARN_OVERFLOW|5.006000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3535
+WARN_PACK|5.006000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3536
+WARN_PARENTHESIS|5.006000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3537
+WARN_PIPE|5.006000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3538
+WARN_PORTABLE|5.006000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3539
+WARN_PRECEDENCE|5.006000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3540
+WARN_PRINTF|5.006000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3541
+WARN_PROTOTYPE|5.006000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3542
+WARN_QW|5.006000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3543
+WARN_RECURSION|5.006000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3544
+WARN_REDEFINE|5.006000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3545
+WARN_REGEXP|5.006000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3546
+WARN_RESERVED|5.006000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3547
+WARN_SEMICOLON|5.006000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3548
+WARN_SEVERE|5.006000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3549
+WARN_SIGNAL|5.006000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3550
+WARN_SUBSTR|5.006000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3551
+WARN_SYNTAX|5.006000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3552
+WARN_TAINT|5.006000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3553
+WARN_THREADS|5.008000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3554
+WARN_UNINITIALIZED|5.006000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3555
+WARN_UNOPENED|5.006000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3556
+WARN_UNPACK|5.006000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3557
+WARN_UNTIE|5.006000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3558
+WARN_UTF8|5.006000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3559
+WARN_VOID|5.006000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3560
+WIDEST_UTYPE|5.015004||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3561
+XCPT_CATCH|5.009002||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3562
+XCPT_RETHROW|5.009002|5.007001|p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3563
+XCPT_TRY_END|5.009002|5.004000|p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3564
+XCPT_TRY_START|5.009002|5.004000|p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3565
+XPUSHi|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3566
+XPUSHmortal|5.009002||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3567
+XPUSHn|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3568
+XPUSHp|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3569
+XPUSHs|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3570
+XPUSHu|5.004000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3571
+XSPROTO|5.010000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3572
+XSRETURN_EMPTY|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3573
+XSRETURN_IV|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3574
+XSRETURN_NO|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3575
+XSRETURN_NV|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3576
+XSRETURN_PV|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3577
+XSRETURN_UNDEF|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3578
+XSRETURN_UV|5.008001||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3579
+XSRETURN_YES|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3580
+XSRETURN|||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3581
+XST_mIV|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3582
+XST_mNO|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3583
+XST_mNV|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3584
+XST_mPV|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3585
+XST_mUNDEF|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3586
+XST_mUV|5.008001||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3587
+XST_mYES|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3588
+XS_APIVERSION_BOOTCHECK||5.013004|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3589
+XS_EXTERNAL||5.019003|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3590
+XS_INTERNAL||5.019003|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3591
+XS_VERSION_BOOTCHECK|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3592
+XS_VERSION|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3593
+XSprePUSH|5.006000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3594
+XS|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3595
+XopDISABLE||5.019003|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3596
+XopENABLE||5.019003|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3597
+XopENTRY_set||5.019003|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3598
+XopENTRY||5.019003|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3599
+XopFLAGS||5.013007|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3600
+ZeroD|5.009002||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3601
+Zero|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3602
+_aMY_CXT|5.007003||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3603
+_add_range_to_invlist|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3604
+_append_range_to_invlist|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3605
+_core_swash_init|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3606
+_get_swash_invlist|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3607
+_invlist_array_init|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3608
+_invlist_contains_cp|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3609
+_invlist_contents|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3610
+_invlist_dump|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3611
+_invlist_intersection_maybe_complement_2nd|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3612
+_invlist_intersection|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3613
+_invlist_invert_prop|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3614
+_invlist_invert|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3615
+_invlist_len|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3616
+_invlist_populate_swatch|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3617
+_invlist_search|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3618
+_invlist_subtract|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3619
+_invlist_union_maybe_complement_2nd|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3620
+_invlist_union|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3621
+_is_uni_FOO||5.017008|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3622
+_is_uni_perl_idcont||5.017008|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3623
+_is_uni_perl_idstart||5.017007|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3624
+_is_utf8_FOO||5.017008|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3625
+_is_utf8_mark||5.017008|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3626
+_is_utf8_perl_idcont||5.017008|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3627
+_is_utf8_perl_idstart||5.017007|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3628
+_new_invlist_C_array|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3629
+_new_invlist|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3630
+_pMY_CXT|5.007003||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3631
+_swash_inversion_hash|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3632
+_swash_to_invlist|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3633
+_to_fold_latin1|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3634
+_to_uni_fold_flags||5.013011|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3635
+_to_upper_title_latin1|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3636
+_to_utf8_fold_flags||5.015006|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3637
+_to_utf8_lower_flags||5.015006|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3638
+_to_utf8_title_flags||5.015006|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3639
+_to_utf8_upper_flags||5.015006|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3640
+aMY_CXT_|5.007003||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3641
+aMY_CXT|5.007003||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3642
+aTHXR_|5.019002||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3643
+aTHXR|5.019002||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3644
+aTHX_|5.006000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3645
+aTHX|5.006000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3646
+aassign_common_vars|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3647
+add_cp_to_invlist|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3648
+add_data|||n
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3649
+add_utf16_textfilter|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3650
+addmad|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3651
+adjust_size_and_find_bucket|||n
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3652
+adjust_stack_on_leave|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3653
+alloc_maybe_populate_EXACT|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3654
+alloccopstash|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3655
+allocmy|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3656
+amagic_call|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3657
+amagic_cmp_locale|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3658
+amagic_cmp|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3659
+amagic_deref_call||5.013007|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3660
+amagic_i_ncmp|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3661
+amagic_is_enabled|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3662
+amagic_ncmp|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3663
+anonymise_cv_maybe|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3664
+any_dup|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3665
+ao|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3666
+append_madprops|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3667
+apply_attrs_my|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3668
+apply_attrs_string||5.006001|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3669
+apply_attrs|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3670
+apply|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3671
+assert_uft8_cache_coherent|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3672
+atfork_lock||5.007003|n
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3673
+atfork_unlock||5.007003|n
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3674
+av_arylen_p||5.009003|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3675
+av_clear|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3676
+av_create_and_push||5.009005|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3677
+av_create_and_unshift_one||5.009005|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3678
+av_delete||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3679
+av_exists||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3680
+av_extend_guts|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3681
+av_extend|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3682
+av_fetch|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3683
+av_fill|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3684
+av_iter_p||5.011000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3685
+av_len|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3686
+av_make|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3687
+av_pop|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3688
+av_push|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3689
+av_reify|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3690
+av_shift|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3691
+av_store|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3692
+av_tindex||5.017009|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3693
+av_top_index||5.017009|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3694
+av_undef|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3695
+av_unshift|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3696
+ax|||n
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3697
+bad_type_gv|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3698
+bad_type_pv|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3699
+bind_match|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3700
+block_end|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3701
+block_gimme||5.004000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3702
+block_start|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3703
+blockhook_register||5.013003|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3704
+boolSV|5.004000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3705
+boot_core_PerlIO|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3706
+boot_core_UNIVERSAL|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3707
+boot_core_mro|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3708
+bytes_cmp_utf8||5.013007|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3709
+bytes_from_utf8||5.007001|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3710
+bytes_to_uni|||n
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3711
+bytes_to_utf8||5.006001|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3712
+call_argv|5.006000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3713
+call_atexit||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3714
+call_list||5.004000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3715
+call_method|5.006000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3716
+call_pv|5.006000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3717
+call_sv|5.006000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3718
+caller_cx||5.013005|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3719
+calloc||5.007002|n
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3720
+cando|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3721
+cast_i32||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3722
+cast_iv||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3723
+cast_ulong||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3724
+cast_uv||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3725
+check_locale_boundary_crossing|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3726
+check_type_and_open|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3727
+check_uni|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3728
+check_utf8_print|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3729
+checkcomma|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3730
+ckWARN|5.006000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3731
+ck_entersub_args_core|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3732
+ck_entersub_args_list||5.013006|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3733
+ck_entersub_args_proto_or_list||5.013006|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3734
+ck_entersub_args_proto||5.013006|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3735
+ck_warner_d||5.011001|v
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3736
+ck_warner||5.011001|v
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3737
+ckwarn_common|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3738
+ckwarn_d||5.009003|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3739
+ckwarn||5.009003|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3740
+cl_and|||n
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3741
+cl_anything|||n
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3742
+cl_init|||n
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3743
+cl_is_anything|||n
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3744
+cl_or|||n
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3745
+clear_placeholders|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3746
+clone_params_del|||n
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3747
+clone_params_new|||n
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3748
+closest_cop|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3749
+compute_EXACTish|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3750
+convert|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3751
+cop_fetch_label||5.015001|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3752
+cop_free|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3753
+cop_hints_2hv||5.013007|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3754
+cop_hints_fetch_pvn||5.013007|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3755
+cop_hints_fetch_pvs||5.013007|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3756
+cop_hints_fetch_pv||5.013007|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3757
+cop_hints_fetch_sv||5.013007|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3758
+cop_store_label||5.015001|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3759
+cophh_2hv||5.013007|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3760
+cophh_copy||5.013007|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3761
+cophh_delete_pvn||5.013007|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3762
+cophh_delete_pvs||5.013007|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3763
+cophh_delete_pv||5.013007|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3764
+cophh_delete_sv||5.013007|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3765
+cophh_fetch_pvn||5.013007|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3766
+cophh_fetch_pvs||5.013007|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3767
+cophh_fetch_pv||5.013007|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3768
+cophh_fetch_sv||5.013007|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3769
+cophh_free||5.013007|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3770
+cophh_new_empty||5.019003|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3771
+cophh_store_pvn||5.013007|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3772
+cophh_store_pvs||5.013007|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3773
+cophh_store_pv||5.013007|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3774
+cophh_store_sv||5.013007|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3775
+core_prototype|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3776
+core_regclass_swash|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3777
+coresub_op|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3778
+could_it_be_a_POSIX_class|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3779
+cr_textfilter|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3780
+create_eval_scope|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3781
+croak_memory_wrap||5.019003|n
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3782
+croak_no_mem|||n
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3783
+croak_no_modify||5.013003|n
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3784
+croak_nocontext|||vn
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3785
+croak_popstack|||n
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3786
+croak_sv||5.013001|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3787
+croak_xs_usage||5.010001|n
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3788
+croak|||v
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3789
+csighandler||5.009003|n
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3790
+curmad|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3791
+current_re_engine|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3792
+curse|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3793
+custom_op_desc||5.007003|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3794
+custom_op_name||5.007003|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3795
+custom_op_register||5.013007|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3796
+custom_op_xop||5.013007|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3797
+cv_ckproto_len_flags|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3798
+cv_clone_into|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3799
+cv_clone|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3800
+cv_const_sv_or_av|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3801
+cv_const_sv||5.004000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3802
+cv_dump|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3803
+cv_forget_slab|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3804
+cv_get_call_checker||5.013006|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3805
+cv_set_call_checker||5.013006|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3806
+cv_undef|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3807
+cvgv_set|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3808
+cvstash_set|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3809
+cx_dump||5.005000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3810
+cx_dup|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3811
+cxinc|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3812
+dAXMARK|5.009003||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3813
+dAX|5.007002||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3814
+dITEMS|5.007002||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3815
+dMARK|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3816
+dMULTICALL||5.009003|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3817
+dMY_CXT_SV|5.007003||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3818
+dMY_CXT|5.007003||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3819
+dNOOP|5.006000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3820
+dORIGMARK|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3821
+dSP|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3822
+dTHR|5.004050||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3823
+dTHXR|5.019002||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3824
+dTHXa|5.006000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3825
+dTHXoa|5.006000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3826
+dTHX|5.006000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3827
+dUNDERBAR|5.009002||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3828
+dVAR|5.009003||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3829
+dXCPT|5.009002||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3830
+dXSARGS|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3831
+dXSI32|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3832
+dXSTARG|5.006000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3833
+deb_curcv|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3834
+deb_nocontext|||vn
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3835
+deb_stack_all|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3836
+deb_stack_n|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3837
+debop||5.005000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3838
+debprofdump||5.005000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3839
+debprof|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3840
+debstackptrs||5.007003|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3841
+debstack||5.007003|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3842
+debug_start_match|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3843
+deb||5.007003|v
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3844
+defelem_target|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3845
+del_sv|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3846
+delete_eval_scope|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3847
+delimcpy||5.004000|n
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3848
+deprecate_commaless_var_list|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3849
+despatch_signals||5.007001|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3850
+destroy_matcher|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3851
+die_nocontext|||vn
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3852
+die_sv||5.013001|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3853
+die_unwind|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3854
+die|||v
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3855
+dirp_dup|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3856
+div128|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3857
+djSP|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3858
+do_aexec5|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3859
+do_aexec|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3860
+do_aspawn|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3861
+do_binmode||5.004050|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3862
+do_chomp|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3863
+do_close|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3864
+do_delete_local|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3865
+do_dump_pad|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3866
+do_eof|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3867
+do_exec3|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3868
+do_execfree|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3869
+do_exec|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3870
+do_gv_dump||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3871
+do_gvgv_dump||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3872
+do_hv_dump||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3873
+do_ipcctl|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3874
+do_ipcget|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3875
+do_join|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3876
+do_magic_dump||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3877
+do_msgrcv|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3878
+do_msgsnd|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3879
+do_ncmp|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3880
+do_oddball|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3881
+do_op_dump||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3882
+do_op_xmldump|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3883
+do_open9||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3884
+do_openn||5.007001|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3885
+do_open||5.004000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3886
+do_pmop_dump||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3887
+do_pmop_xmldump|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3888
+do_print|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3889
+do_readline|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3890
+do_seek|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3891
+do_semop|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3892
+do_shmio|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3893
+do_smartmatch|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3894
+do_spawn_nowait|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3895
+do_spawn|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3896
+do_sprintf|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3897
+do_sv_dump||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3898
+do_sysseek|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3899
+do_tell|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3900
+do_trans_complex_utf8|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3901
+do_trans_complex|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3902
+do_trans_count_utf8|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3903
+do_trans_count|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3904
+do_trans_simple_utf8|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3905
+do_trans_simple|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3906
+do_trans|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3907
+do_vecget|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3908
+do_vecset|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3909
+do_vop|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3910
+docatch|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3911
+doeval|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3912
+dofile|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3913
+dofindlabel|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3914
+doform|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3915
+doing_taint||5.008001|n
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3916
+dooneliner|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3917
+doopen_pm|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3918
+doparseform|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3919
+dopoptoeval|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3920
+dopoptogiven|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3921
+dopoptolabel|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3922
+dopoptoloop|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3923
+dopoptosub_at|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3924
+dopoptowhen|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3925
+doref||5.009003|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3926
+dounwind|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3927
+dowantarray|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3928
+dump_all_perl|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3929
+dump_all||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3930
+dump_eval||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3931
+dump_exec_pos|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3932
+dump_fds|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3933
+dump_form||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3934
+dump_indent||5.006000|v
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3935
+dump_mstats|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3936
+dump_packsubs_perl|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3937
+dump_packsubs||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3938
+dump_sub_perl|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3939
+dump_sub||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3940
+dump_sv_child|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3941
+dump_trie_interim_list|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3942
+dump_trie_interim_table|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3943
+dump_trie|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3944
+dump_vindent||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3945
+dumpuntil|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3946
+dup_attrlist|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3947
+emulate_cop_io|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3948
+eval_pv|5.006000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3949
+eval_sv|5.006000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3950
+exec_failed|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3951
+expect_number|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3952
+fbm_compile||5.005000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3953
+fbm_instr||5.005000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3954
+feature_is_enabled|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3955
+filter_add|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3956
+filter_del|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3957
+filter_gets|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3958
+filter_read|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3959
+finalize_optree|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3960
+finalize_op|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3961
+find_and_forget_pmops|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3962
+find_array_subscript|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3963
+find_beginning|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3964
+find_byclass|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3965
+find_hash_subscript|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3966
+find_in_my_stash|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3967
+find_lexical_cv|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3968
+find_runcv_where|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3969
+find_runcv||5.008001|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3970
+find_rundefsv2|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3971
+find_rundefsvoffset||5.009002|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3972
+find_rundefsv||5.013002|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3973
+find_script|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3974
+find_uninit_var|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3975
+first_symbol|||n
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3976
+foldEQ_latin1||5.013008|n
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3977
+foldEQ_locale||5.013002|n
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3978
+foldEQ_utf8_flags||5.013010|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3979
+foldEQ_utf8||5.013002|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3980
+foldEQ||5.013002|n
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3981
+fold_constants|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3982
+forbid_setid|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3983
+force_ident_maybe_lex|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3984
+force_ident|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3985
+force_list|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3986
+force_next|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3987
+force_strict_version|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3988
+force_version|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3989
+force_word|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3990
+forget_pmop|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3991
+form_nocontext|||vn
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3992
+form_short_octal_warning|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3993
+form||5.004000|v
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3994
+fp_dup|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3995
+fprintf_nocontext|||vn
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3996
+free_global_struct|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3997
+free_tied_hv_pool|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3998
+free_tmps|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  3999
+gen_constant_list|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4000
+get_and_check_backslash_N_name|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4001
+get_aux_mg|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4002
+get_av|5.006000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4003
+get_context||5.006000|n
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4004
+get_cvn_flags|5.009005||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4005
+get_cvs|5.011000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4006
+get_cv|5.006000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4007
+get_db_sub|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4008
+get_debug_opts|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4009
+get_hash_seed|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4010
+get_hv|5.006000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4011
+get_invlist_iter_addr|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4012
+get_invlist_offset_addr|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4013
+get_invlist_previous_index_addr|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4014
+get_mstats|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4015
+get_no_modify|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4016
+get_num|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4017
+get_op_descs||5.005000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4018
+get_op_names||5.005000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4019
+get_opargs|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4020
+get_ppaddr||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4021
+get_re_arg|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4022
+get_sv|5.006000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4023
+get_vtbl||5.005030|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4024
+getcwd_sv||5.007002|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4025
+getenv_len|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4026
+glob_2number|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4027
+glob_assign_glob|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4028
+glob_assign_ref|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4029
+gp_dup|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4030
+gp_free|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4031
+gp_ref|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4032
+grok_bin|5.007003||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4033
+grok_bslash_N|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4034
+grok_bslash_c|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4035
+grok_bslash_o|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4036
+grok_bslash_x|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4037
+grok_hex|5.007003||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4038
+grok_number|5.007002||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4039
+grok_numeric_radix|5.007002||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4040
+grok_oct|5.007003||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4041
+group_end|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4042
+gv_AVadd|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4043
+gv_HVadd|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4044
+gv_IOadd|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4045
+gv_SVadd|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4046
+gv_add_by_type||5.011000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4047
+gv_autoload4||5.004000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4048
+gv_autoload_pvn||5.015004|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4049
+gv_autoload_pv||5.015004|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4050
+gv_autoload_sv||5.015004|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4051
+gv_check|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4052
+gv_const_sv||5.009003|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4053
+gv_dump||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4054
+gv_efullname3||5.004000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4055
+gv_efullname4||5.006001|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4056
+gv_efullname|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4057
+gv_ename|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4058
+gv_fetchfile_flags||5.009005|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4059
+gv_fetchfile|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4060
+gv_fetchmeth_autoload||5.007003|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4061
+gv_fetchmeth_pv_autoload||5.015004|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4062
+gv_fetchmeth_pvn_autoload||5.015004|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4063
+gv_fetchmeth_pvn||5.015004|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4064
+gv_fetchmeth_pv||5.015004|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4065
+gv_fetchmeth_sv_autoload||5.015004|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4066
+gv_fetchmeth_sv||5.015004|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4067
+gv_fetchmethod_autoload||5.004000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4068
+gv_fetchmethod_pv_flags||5.015004|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4069
+gv_fetchmethod_pvn_flags||5.015004|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4070
+gv_fetchmethod_sv_flags||5.015004|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4071
+gv_fetchmethod|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4072
+gv_fetchmeth|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4073
+gv_fetchpvn_flags|5.009002||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4074
+gv_fetchpvs|5.009004||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4075
+gv_fetchpv|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4076
+gv_fetchsv|5.009002||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4077
+gv_fullname3||5.004000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4078
+gv_fullname4||5.006001|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4079
+gv_fullname|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4080
+gv_handler||5.007001|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4081
+gv_init_pvn||5.015004|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4082
+gv_init_pv||5.015004|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4083
+gv_init_svtype|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4084
+gv_init_sv||5.015004|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4085
+gv_init|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4086
+gv_magicalize_isa|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4087
+gv_name_set||5.009004|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4088
+gv_stashpvn|5.004000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4089
+gv_stashpvs|5.009003||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4090
+gv_stashpv|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4091
+gv_stashsv|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4092
+gv_try_downgrade|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4093
+handle_regex_sets|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4094
+he_dup|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4095
+hek_dup|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4096
+hfree_next_entry|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4097
+hfreeentries|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4098
+hsplit|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4099
+hv_assert|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4100
+hv_auxinit|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4101
+hv_backreferences_p|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4102
+hv_clear_placeholders||5.009001|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4103
+hv_clear|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4104
+hv_common_key_len||5.010000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4105
+hv_common||5.010000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4106
+hv_copy_hints_hv||5.009004|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4107
+hv_delayfree_ent||5.004000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4108
+hv_delete_common|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4109
+hv_delete_ent||5.004000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4110
+hv_delete|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4111
+hv_eiter_p||5.009003|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4112
+hv_eiter_set||5.009003|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4113
+hv_ename_add|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4114
+hv_ename_delete|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4115
+hv_exists_ent||5.004000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4116
+hv_exists|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4117
+hv_fetch_ent||5.004000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4118
+hv_fetchs|5.009003||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4119
+hv_fetch|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4120
+hv_fill||5.013002|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4121
+hv_free_ent_ret|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4122
+hv_free_ent||5.004000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4123
+hv_iterinit|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4124
+hv_iterkeysv||5.004000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4125
+hv_iterkey|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4126
+hv_iternext_flags||5.008000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4127
+hv_iternextsv|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4128
+hv_iternext|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4129
+hv_iterval|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4130
+hv_kill_backrefs|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4131
+hv_ksplit||5.004000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4132
+hv_magic_check|||n
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4133
+hv_magic|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4134
+hv_name_set||5.009003|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4135
+hv_notallowed|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4136
+hv_placeholders_get||5.009003|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4137
+hv_placeholders_p|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4138
+hv_placeholders_set||5.009003|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4139
+hv_rand_set||5.017011|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4140
+hv_riter_p||5.009003|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4141
+hv_riter_set||5.009003|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4142
+hv_scalar||5.009001|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4143
+hv_store_ent||5.004000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4144
+hv_store_flags||5.008000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4145
+hv_stores|5.009004||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4146
+hv_store|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4147
+hv_undef_flags|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4148
+hv_undef|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4149
+ibcmp_locale||5.004000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4150
+ibcmp_utf8||5.007003|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4151
+ibcmp|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4152
+incline|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4153
+incpush_if_exists|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4154
+incpush_use_sep|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4155
+incpush|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4156
+ingroup|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4157
+init_argv_symbols|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4158
+init_constants|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4159
+init_dbargs|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4160
+init_debugger|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4161
+init_global_struct|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4162
+init_i18nl10n||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4163
+init_i18nl14n||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4164
+init_ids|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4165
+init_interp|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4166
+init_main_stash|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4167
+init_perllib|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4168
+init_postdump_symbols|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4169
+init_predump_symbols|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4170
+init_stacks||5.005000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4171
+init_tm||5.007002|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4172
+inplace_aassign|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4173
+instr|||n
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4174
+intro_my|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4175
+intuit_method|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4176
+intuit_more|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4177
+invert|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4178
+invlist_array|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4179
+invlist_clone|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4180
+invlist_extend|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4181
+invlist_highest|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4182
+invlist_is_iterating|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4183
+invlist_iterfinish|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4184
+invlist_iterinit|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4185
+invlist_iternext|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4186
+invlist_max|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4187
+invlist_previous_index|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4188
+invlist_set_len|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4189
+invlist_set_previous_index|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4190
+invlist_trim|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4191
+invoke_exception_hook|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4192
+io_close|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4193
+isALNUMC|5.006000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4194
+isALNUM_lazy|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4195
+isALPHANUMERIC||5.017008|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4196
+isALPHA|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4197
+isASCII|5.006000|5.006000|p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4198
+isBLANK|5.006001||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4199
+isCNTRL|5.006000|5.006000|p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4200
+isDIGIT|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4201
+isFOO_lc|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4202
+isFOO_utf8_lc|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4203
+isGRAPH|5.006000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4204
+isGV_with_GP|5.009004||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4205
+isIDCONT||5.017008|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4206
+isIDFIRST_lazy|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4207
+isIDFIRST|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4208
+isLOWER|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4209
+isOCTAL||5.013005|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4210
+isPRINT|5.004000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4211
+isPSXSPC|5.006001||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4212
+isPUNCT|5.006000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4213
+isSPACE|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4214
+isUPPER|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4215
+isWORDCHAR||5.013006|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4216
+isXDIGIT|5.006000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4217
+is_an_int|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4218
+is_ascii_string||5.011000|n
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4219
+is_cur_LC_category_utf8|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4220
+is_handle_constructor|||n
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4221
+is_list_assignment|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4222
+is_lvalue_sub||5.007001|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4223
+is_uni_alnum_lc||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4224
+is_uni_alnumc_lc||5.017007|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4225
+is_uni_alnumc||5.017007|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4226
+is_uni_alnum||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4227
+is_uni_alpha_lc||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4228
+is_uni_alpha||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4229
+is_uni_ascii_lc||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4230
+is_uni_ascii||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4231
+is_uni_blank_lc||5.017002|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4232
+is_uni_blank||5.017002|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4233
+is_uni_cntrl_lc||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4234
+is_uni_cntrl||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4235
+is_uni_digit_lc||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4236
+is_uni_digit||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4237
+is_uni_graph_lc||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4238
+is_uni_graph||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4239
+is_uni_idfirst_lc||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4240
+is_uni_idfirst||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4241
+is_uni_lower_lc||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4242
+is_uni_lower||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4243
+is_uni_print_lc||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4244
+is_uni_print||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4245
+is_uni_punct_lc||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4246
+is_uni_punct||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4247
+is_uni_space_lc||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4248
+is_uni_space||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4249
+is_uni_upper_lc||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4250
+is_uni_upper||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4251
+is_uni_xdigit_lc||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4252
+is_uni_xdigit||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4253
+is_utf8_alnumc||5.017007|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4254
+is_utf8_alnum||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4255
+is_utf8_alpha||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4256
+is_utf8_ascii||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4257
+is_utf8_blank||5.017002|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4258
+is_utf8_char_buf||5.015008|n
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4259
+is_utf8_char_slow|||n
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4260
+is_utf8_char||5.006000|n
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4261
+is_utf8_cntrl||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4262
+is_utf8_common|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4263
+is_utf8_digit||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4264
+is_utf8_graph||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4265
+is_utf8_idcont||5.008000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4266
+is_utf8_idfirst||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4267
+is_utf8_lower||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4268
+is_utf8_mark||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4269
+is_utf8_perl_space||5.011001|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4270
+is_utf8_perl_word||5.011001|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4271
+is_utf8_posix_digit||5.011001|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4272
+is_utf8_print||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4273
+is_utf8_punct||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4274
+is_utf8_space||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4275
+is_utf8_string_loclen||5.009003|n
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4276
+is_utf8_string_loc||5.008001|n
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4277
+is_utf8_string||5.006001|n
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4278
+is_utf8_upper||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4279
+is_utf8_xdigit||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4280
+is_utf8_xidcont||5.013010|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4281
+is_utf8_xidfirst||5.013010|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4282
+isa_lookup|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4283
+items|||n
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4284
+ix|||n
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4285
+jmaybe|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4286
+join_exact|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4287
+keyword_plugin_standard|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4288
+keyword|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4289
+leave_scope|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4290
+lex_bufutf8||5.011002|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4291
+lex_discard_to||5.011002|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4292
+lex_grow_linestr||5.011002|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4293
+lex_next_chunk||5.011002|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4294
+lex_peek_unichar||5.011002|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4295
+lex_read_space||5.011002|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4296
+lex_read_to||5.011002|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4297
+lex_read_unichar||5.011002|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4298
+lex_start||5.009005|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4299
+lex_stuff_pvn||5.011002|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4300
+lex_stuff_pvs||5.013005|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4301
+lex_stuff_pv||5.013006|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4302
+lex_stuff_sv||5.011002|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4303
+lex_unstuff||5.011002|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4304
+listkids|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4305
+list|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4306
+load_module_nocontext|||vn
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4307
+load_module|5.006000||pv
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4308
+localize|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4309
+looks_like_bool|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4310
+looks_like_number|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4311
+lop|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4312
+mPUSHi|5.009002||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4313
+mPUSHn|5.009002||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4314
+mPUSHp|5.009002||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4315
+mPUSHs|5.010001||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4316
+mPUSHu|5.009002||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4317
+mXPUSHi|5.009002||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4318
+mXPUSHn|5.009002||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4319
+mXPUSHp|5.009002||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4320
+mXPUSHs|5.010001||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4321
+mXPUSHu|5.009002||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4322
+mad_free|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4323
+madlex|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4324
+madparse|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4325
+magic_clear_all_env|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4326
+magic_cleararylen_p|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4327
+magic_clearenv|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4328
+magic_clearhints|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4329
+magic_clearhint|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4330
+magic_clearisa|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4331
+magic_clearpack|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4332
+magic_clearsig|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4333
+magic_copycallchecker|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4334
+magic_dump||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4335
+magic_existspack|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4336
+magic_freearylen_p|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4337
+magic_freeovrld|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4338
+magic_getarylen|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4339
+magic_getdefelem|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4340
+magic_getnkeys|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4341
+magic_getpack|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4342
+magic_getpos|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4343
+magic_getsig|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4344
+magic_getsubstr|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4345
+magic_gettaint|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4346
+magic_getuvar|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4347
+magic_getvec|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4348
+magic_get|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4349
+magic_killbackrefs|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4350
+magic_methcall1|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4351
+magic_methcall|||v
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4352
+magic_methpack|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4353
+magic_nextpack|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4354
+magic_regdata_cnt|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4355
+magic_regdatum_get|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4356
+magic_regdatum_set|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4357
+magic_scalarpack|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4358
+magic_set_all_env|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4359
+magic_setarylen|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4360
+magic_setcollxfrm|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4361
+magic_setdbline|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4362
+magic_setdefelem|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4363
+magic_setenv|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4364
+magic_sethint|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4365
+magic_setisa|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4366
+magic_setmglob|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4367
+magic_setnkeys|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4368
+magic_setpack|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4369
+magic_setpos|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4370
+magic_setregexp|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4371
+magic_setsig|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4372
+magic_setsubstr|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4373
+magic_settaint|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4374
+magic_setutf8|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4375
+magic_setuvar|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4376
+magic_setvec|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4377
+magic_set|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4378
+magic_sizepack|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4379
+magic_wipepack|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4380
+make_matcher|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4381
+make_trie_failtable|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4382
+make_trie|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4383
+malloc_good_size|||n
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4384
+malloced_size|||n
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4385
+malloc||5.007002|n
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4386
+markstack_grow|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4387
+matcher_matches_sv|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4388
+mayberelocate|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4389
+measure_struct|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4390
+memEQs|5.009005||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4391
+memEQ|5.004000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4392
+memNEs|5.009005||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4393
+memNE|5.004000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4394
+mem_collxfrm|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4395
+mem_log_common|||n
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4396
+mess_alloc|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4397
+mess_nocontext|||vn
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4398
+mess_sv||5.013001|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4399
+mess||5.006000|v
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4400
+method_common|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4401
+mfree||5.007002|n
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4402
+mg_clear|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4403
+mg_copy|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4404
+mg_dup|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4405
+mg_find_mglob|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4406
+mg_findext||5.013008|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4407
+mg_find|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4408
+mg_free_type||5.013006|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4409
+mg_free|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4410
+mg_get|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4411
+mg_length||5.005000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4412
+mg_localize|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4413
+mg_magical|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4414
+mg_set|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4415
+mg_size||5.005000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4416
+mini_mktime||5.007002|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4417
+minus_v|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4418
+missingterm|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4419
+mode_from_discipline|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4420
+modkids|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4421
+more_bodies|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4422
+more_sv|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4423
+moreswitches|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4424
+mro_clean_isarev|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4425
+mro_gather_and_rename|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4426
+mro_get_from_name||5.010001|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4427
+mro_get_linear_isa_dfs|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4428
+mro_get_linear_isa||5.009005|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4429
+mro_get_private_data||5.010001|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4430
+mro_isa_changed_in|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4431
+mro_meta_dup|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4432
+mro_meta_init|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4433
+mro_method_changed_in||5.009005|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4434
+mro_package_moved|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4435
+mro_register||5.010001|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4436
+mro_set_mro||5.010001|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4437
+mro_set_private_data||5.010001|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4438
+mul128|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4439
+mulexp10|||n
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4440
+my_atof2||5.007002|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4441
+my_atof||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4442
+my_attrs|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4443
+my_bcopy|||n
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4444
+my_bzero|||n
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4445
+my_chsize|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4446
+my_clearenv|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4447
+my_cxt_index|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4448
+my_cxt_init|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4449
+my_dirfd||5.009005|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4450
+my_exit_jump|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4451
+my_exit|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4452
+my_failure_exit||5.004000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4453
+my_fflush_all||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4454
+my_fork||5.007003|n
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4455
+my_kid|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4456
+my_lstat_flags|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4457
+my_lstat||5.019003|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4458
+my_memcmp|||n
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4459
+my_memset||5.004000|n
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4460
+my_pclose||5.004000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4461
+my_popen_list||5.007001|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4462
+my_popen||5.004000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4463
+my_setenv|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4464
+my_snprintf|5.009004||pvn
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4465
+my_socketpair||5.007003|n
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4466
+my_sprintf|5.009003||pvn
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4467
+my_stat_flags|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4468
+my_stat||5.019003|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4469
+my_strftime||5.007002|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4470
+my_strlcat|5.009004||pn
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4471
+my_strlcpy|5.009004||pn
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4472
+my_unexec|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4473
+my_vsnprintf||5.009004|n
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4474
+need_utf8|||n
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4475
+newANONATTRSUB||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4476
+newANONHASH|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4477
+newANONLIST|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4478
+newANONSUB|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4479
+newASSIGNOP|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4480
+newATTRSUB_flags|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4481
+newATTRSUB||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4482
+newAVREF|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4483
+newAV|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4484
+newBINOP|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4485
+newCONDOP|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4486
+newCONSTSUB_flags||5.015006|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4487
+newCONSTSUB|5.004050||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4488
+newCVREF|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4489
+newDEFSVOP|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4490
+newFORM|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4491
+newFOROP||5.013007|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4492
+newGIVENOP||5.009003|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4493
+newGIVWHENOP|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4494
+newGP|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4495
+newGVOP|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4496
+newGVREF|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4497
+newGVgen_flags||5.015004|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4498
+newGVgen|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4499
+newHVREF|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4500
+newHVhv||5.005000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4501
+newHV|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4502
+newIO|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4503
+newLISTOP|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4504
+newLOGOP|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4505
+newLOOPEX|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4506
+newLOOPOP|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4507
+newMADPROP|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4508
+newMADsv|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4509
+newMYSUB||5.017004|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4510
+newNULLLIST|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4511
+newOP|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4512
+newPADOP|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4513
+newPMOP|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4514
+newPROG|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4515
+newPVOP|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4516
+newRANGE|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4517
+newRV_inc|5.004000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4518
+newRV_noinc|5.004000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4519
+newRV|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4520
+newSLICEOP|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4521
+newSTATEOP|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4522
+newSTUB|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4523
+newSUB|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4524
+newSVOP|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4525
+newSVREF|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4526
+newSV_type|5.009005||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4527
+newSVhek||5.009003|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4528
+newSViv|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4529
+newSVnv|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4530
+newSVpadname||5.017004|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4531
+newSVpv_share||5.013006|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4532
+newSVpvf_nocontext|||vn
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4533
+newSVpvf||5.004000|v
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4534
+newSVpvn_flags|5.010001||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4535
+newSVpvn_share|5.007001||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4536
+newSVpvn_utf8|5.010001||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4537
+newSVpvn|5.004050||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4538
+newSVpvs_flags|5.010001||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4539
+newSVpvs_share|5.009003||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4540
+newSVpvs|5.009003||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4541
+newSVpv|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4542
+newSVrv|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4543
+newSVsv|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4544
+newSVuv|5.006000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4545
+newSV|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4546
+newTOKEN|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4547
+newUNOP|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4548
+newWHENOP||5.009003|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4549
+newWHILEOP||5.013007|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4550
+newXS_flags||5.009004|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4551
+newXS_len_flags|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4552
+newXSproto||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4553
+newXS||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4554
+new_collate||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4555
+new_constant|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4556
+new_ctype||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4557
+new_he|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4558
+new_logop|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4559
+new_numeric||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4560
+new_stackinfo||5.005000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4561
+new_version||5.009000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4562
+new_warnings_bitfield|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4563
+next_symbol|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4564
+nextargv|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4565
+nextchar|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4566
+ninstr|||n
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4567
+no_bareword_allowed|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4568
+no_fh_allowed|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4569
+no_op|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4570
+not_a_number|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4571
+not_incrementable|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4572
+nothreadhook||5.008000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4573
+nuke_stacks|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4574
+num_overflow|||n
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4575
+oopsAV|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4576
+oopsHV|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4577
+op_append_elem||5.013006|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4578
+op_append_list||5.013006|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4579
+op_clear|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4580
+op_const_sv|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4581
+op_contextualize||5.013006|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4582
+op_dump||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4583
+op_free|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4584
+op_getmad_weak|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4585
+op_getmad|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4586
+op_integerize|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4587
+op_linklist||5.013006|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4588
+op_lvalue_flags|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4589
+op_lvalue||5.013007|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4590
+op_null||5.007002|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4591
+op_prepend_elem||5.013006|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4592
+op_refcnt_dec|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4593
+op_refcnt_inc|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4594
+op_refcnt_lock||5.009002|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4595
+op_refcnt_unlock||5.009002|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4596
+op_scope||5.013007|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4597
+op_std_init|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4598
+op_unscope|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4599
+op_xmldump|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4600
+open_script|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4601
+opslab_force_free|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4602
+opslab_free_nopad|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4603
+opslab_free|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4604
+pMY_CXT_|5.007003||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4605
+pMY_CXT|5.007003||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4606
+pTHX_|5.006000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4607
+pTHX|5.006000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4608
+packWARN|5.007003||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4609
+pack_cat||5.007003|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4610
+pack_rec|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4611
+package_version|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4612
+package|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4613
+packlist||5.008001|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4614
+pad_add_anon||5.008001|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4615
+pad_add_name_pvn||5.015001|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4616
+pad_add_name_pvs||5.015001|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4617
+pad_add_name_pv||5.015001|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4618
+pad_add_name_sv||5.015001|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4619
+pad_alloc_name|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4620
+pad_alloc|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4621
+pad_block_start|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4622
+pad_check_dup|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4623
+pad_compname_type||5.009003|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4624
+pad_findlex|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4625
+pad_findmy_pvn||5.015001|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4626
+pad_findmy_pvs||5.015001|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4627
+pad_findmy_pv||5.015001|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4628
+pad_findmy_sv||5.015001|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4629
+pad_fixup_inner_anons|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4630
+pad_free|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4631
+pad_leavemy|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4632
+pad_new||5.008001|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4633
+pad_peg|||n
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4634
+pad_push|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4635
+pad_reset|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4636
+pad_setsv|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4637
+pad_sv|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4638
+pad_swipe|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4639
+pad_tidy||5.008001|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4640
+padlist_dup|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4641
+padlist_store|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4642
+parse_arithexpr||5.013008|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4643
+parse_barestmt||5.013007|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4644
+parse_block||5.013007|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4645
+parse_body|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4646
+parse_fullexpr||5.013008|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4647
+parse_fullstmt||5.013005|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4648
+parse_ident|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4649
+parse_label||5.013007|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4650
+parse_listexpr||5.013008|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4651
+parse_lparen_question_flags|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4652
+parse_stmtseq||5.013006|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4653
+parse_termexpr||5.013008|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4654
+parse_unicode_opts|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4655
+parser_dup|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4656
+parser_free_nexttoke_ops|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4657
+parser_free|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4658
+path_is_searchable|||n
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4659
+peep|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4660
+pending_ident|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4661
+perl_alloc_using|||n
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4662
+perl_alloc|||n
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4663
+perl_clone_using|||n
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4664
+perl_clone|||n
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4665
+perl_construct|||n
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4666
+perl_destruct||5.007003|n
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4667
+perl_free|||n
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4668
+perl_parse||5.006000|n
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4669
+perl_run|||n
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4670
+pidgone|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4671
+pm_description|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4672
+pmop_dump||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4673
+pmop_xmldump|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4674
+pmruntime|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4675
+pmtrans|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4676
+pop_scope|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4677
+populate_isa|||v
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4678
+pregcomp||5.009005|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4679
+pregexec|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4680
+pregfree2||5.011000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4681
+pregfree|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4682
+prepend_madprops|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4683
+prescan_version||5.011004|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4684
+printbuf|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4685
+printf_nocontext|||vn
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4686
+process_special_blocks|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4687
+ptr_hash|||n
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4688
+ptr_table_clear||5.009005|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4689
+ptr_table_fetch||5.009005|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4690
+ptr_table_find|||n
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4691
+ptr_table_free||5.009005|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4692
+ptr_table_new||5.009005|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4693
+ptr_table_split||5.009005|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4694
+ptr_table_store||5.009005|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4695
+push_scope|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4696
+put_byte|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4697
+put_latin1_charclass_innards|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4698
+pv_display|5.006000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4699
+pv_escape|5.009004||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4700
+pv_pretty|5.009004||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4701
+pv_uni_display||5.007003|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4702
+qerror|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4703
+qsortsvu|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4704
+re_compile||5.009005|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4705
+re_croak2|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4706
+re_dup_guts|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4707
+re_intuit_start||5.019001|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4708
+re_intuit_string||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4709
+re_op_compile|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4710
+readpipe_override|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4711
+realloc||5.007002|n
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4712
+reentrant_free||5.019003|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4713
+reentrant_init||5.019003|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4714
+reentrant_retry||5.019003|vn
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4715
+reentrant_size||5.019003|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4716
+ref_array_or_hash|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4717
+refcounted_he_chain_2hv|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4718
+refcounted_he_fetch_pvn|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4719
+refcounted_he_fetch_pvs|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4720
+refcounted_he_fetch_pv|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4721
+refcounted_he_fetch_sv|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4722
+refcounted_he_free|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4723
+refcounted_he_inc|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4724
+refcounted_he_new_pvn|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4725
+refcounted_he_new_pvs|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4726
+refcounted_he_new_pv|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4727
+refcounted_he_new_sv|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4728
+refcounted_he_value|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4729
+refkids|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4730
+refto|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4731
+ref||5.019003|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4732
+reg_check_named_buff_matched|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4733
+reg_named_buff_all||5.009005|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4734
+reg_named_buff_exists||5.009005|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4735
+reg_named_buff_fetch||5.009005|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4736
+reg_named_buff_firstkey||5.009005|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4737
+reg_named_buff_iter|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4738
+reg_named_buff_nextkey||5.009005|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4739
+reg_named_buff_scalar||5.009005|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4740
+reg_named_buff|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4741
+reg_node|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4742
+reg_numbered_buff_fetch|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4743
+reg_numbered_buff_length|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4744
+reg_numbered_buff_store|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4745
+reg_qr_package|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4746
+reg_recode|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4747
+reg_scan_name|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4748
+reg_skipcomment|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4749
+reg_temp_copy|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4750
+reganode|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4751
+regatom|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4752
+regbranch|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4753
+regclass_swash||5.009004|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4754
+regclass|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4755
+regcppop|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4756
+regcppush|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4757
+regcurly|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4758
+regdump_extflags|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4759
+regdump_intflags|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4760
+regdump||5.005000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4761
+regdupe_internal|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4762
+regexec_flags||5.005000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4763
+regfree_internal||5.009005|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4764
+reghop3|||n
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4765
+reghop4|||n
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4766
+reghopmaybe3|||n
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4767
+reginclass|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4768
+reginitcolors||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4769
+reginsert|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4770
+regmatch|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4771
+regnext||5.005000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4772
+regpatws|||n
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4773
+regpiece|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4774
+regpposixcc|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4775
+regprop|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4776
+regrepeat|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4777
+regtail_study|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4778
+regtail|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4779
+regtry|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4780
+reguni|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4781
+regwhite|||n
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4782
+reg|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4783
+repeatcpy|||n
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4784
+report_evil_fh|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4785
+report_redefined_cv|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4786
+report_uninit|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4787
+report_wrongway_fh|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4788
+require_pv||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4789
+require_tie_mod|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4790
+restore_magic|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4791
+rninstr|||n
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4792
+rpeep|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4793
+rsignal_restore|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4794
+rsignal_save|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4795
+rsignal_state||5.004000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4796
+rsignal||5.004000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4797
+run_body|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4798
+run_user_filter|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4799
+runops_debug||5.005000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4800
+runops_standard||5.005000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4801
+rv2cv_op_cv||5.013006|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4802
+rvpv_dup|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4803
+rxres_free|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4804
+rxres_restore|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4805
+rxres_save|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4806
+safesyscalloc||5.006000|n
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4807
+safesysfree||5.006000|n
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4808
+safesysmalloc||5.006000|n
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4809
+safesysrealloc||5.006000|n
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4810
+same_dirent|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4811
+save_I16||5.004000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4812
+save_I32|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4813
+save_I8||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4814
+save_adelete||5.011000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4815
+save_aelem_flags||5.011000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4816
+save_aelem||5.004050|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4817
+save_alloc||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4818
+save_aptr|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4819
+save_ary|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4820
+save_bool||5.008001|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4821
+save_clearsv|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4822
+save_delete|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4823
+save_destructor_x||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4824
+save_destructor||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4825
+save_freeop|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4826
+save_freepv|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4827
+save_freesv|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4828
+save_generic_pvref||5.006001|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4829
+save_generic_svref||5.005030|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4830
+save_gp||5.004000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4831
+save_hash|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4832
+save_hdelete||5.011000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4833
+save_hek_flags|||n
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4834
+save_helem_flags||5.011000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4835
+save_helem||5.004050|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4836
+save_hints||5.010001|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4837
+save_hptr|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4838
+save_int|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4839
+save_item|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4840
+save_iv||5.005000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4841
+save_lines|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4842
+save_list|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4843
+save_long|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4844
+save_magic_flags|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4845
+save_mortalizesv||5.007001|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4846
+save_nogv|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4847
+save_op||5.005000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4848
+save_padsv_and_mortalize||5.010001|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4849
+save_pptr|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4850
+save_pushi32ptr||5.010001|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4851
+save_pushptri32ptr|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4852
+save_pushptrptr||5.010001|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4853
+save_pushptr||5.010001|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4854
+save_re_context||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4855
+save_scalar_at|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4856
+save_scalar|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4857
+save_set_svflags||5.009000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4858
+save_shared_pvref||5.007003|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4859
+save_sptr|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4860
+save_svref|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4861
+save_vptr||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4862
+savepvn|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4863
+savepvs||5.009003|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4864
+savepv|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4865
+savesharedpvn||5.009005|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4866
+savesharedpvs||5.013006|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4867
+savesharedpv||5.007003|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4868
+savesharedsvpv||5.013006|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4869
+savestack_grow_cnt||5.008001|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4870
+savestack_grow|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4871
+savesvpv||5.009002|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4872
+sawparens|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4873
+scalar_mod_type|||n
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4874
+scalarboolean|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4875
+scalarkids|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4876
+scalarseq|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4877
+scalarvoid|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4878
+scalar|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4879
+scan_bin||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4880
+scan_commit|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4881
+scan_const|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4882
+scan_formline|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4883
+scan_heredoc|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4884
+scan_hex|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4885
+scan_ident|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4886
+scan_inputsymbol|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4887
+scan_num||5.007001|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4888
+scan_oct|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4889
+scan_pat|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4890
+scan_str|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4891
+scan_subst|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4892
+scan_trans|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4893
+scan_version||5.009001|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4894
+scan_vstring||5.009005|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4895
+scan_word|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4896
+screaminstr||5.005000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4897
+search_const|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4898
+seed||5.008001|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4899
+sequence_num|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4900
+set_context||5.006000|n
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4901
+set_numeric_local||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4902
+set_numeric_radix||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4903
+set_numeric_standard||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4904
+setdefout|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4905
+share_hek_flags|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4906
+share_hek||5.004000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4907
+si_dup|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4908
+sighandler|||n
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4909
+simplify_sort|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4910
+skipspace0|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4911
+skipspace1|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4912
+skipspace2|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4913
+skipspace_flags|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4914
+softref2xv|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4915
+sortcv_stacked|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4916
+sortcv_xsub|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4917
+sortcv|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4918
+sortsv_flags||5.009003|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4919
+sortsv||5.007003|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4920
+space_join_names_mortal|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4921
+ss_dup|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4922
+stack_grow|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4923
+start_force|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4924
+start_glob|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4925
+start_subparse||5.004000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4926
+stdize_locale|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4927
+strEQ|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4928
+strGE|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4929
+strGT|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4930
+strLE|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4931
+strLT|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4932
+strNE|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4933
+str_to_version||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4934
+strip_return|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4935
+strnEQ|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4936
+strnNE|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4937
+study_chunk|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4938
+sub_crush_depth|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4939
+sublex_done|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4940
+sublex_push|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4941
+sublex_start|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4942
+sv_2bool_flags||5.013006|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4943
+sv_2bool|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4944
+sv_2cv|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4945
+sv_2io|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4946
+sv_2iuv_common|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4947
+sv_2iuv_non_preserve|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4948
+sv_2iv_flags||5.009001|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4949
+sv_2iv|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4950
+sv_2mortal|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4951
+sv_2num|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4952
+sv_2nv_flags||5.013001|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4953
+sv_2pv_flags|5.007002||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4954
+sv_2pv_nolen|5.006000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4955
+sv_2pvbyte_nolen|5.006000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4956
+sv_2pvbyte|5.006000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4957
+sv_2pvutf8_nolen||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4958
+sv_2pvutf8||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4959
+sv_2pv|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4960
+sv_2uv_flags||5.009001|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4961
+sv_2uv|5.004000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4962
+sv_add_arena|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4963
+sv_add_backref|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4964
+sv_backoff|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4965
+sv_bless|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4966
+sv_cat_decode||5.008001|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4967
+sv_catpv_flags||5.013006|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4968
+sv_catpv_mg|5.004050||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4969
+sv_catpv_nomg||5.013006|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4970
+sv_catpvf_mg_nocontext|||pvn
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4971
+sv_catpvf_mg|5.006000|5.004000|pv
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4972
+sv_catpvf_nocontext|||vn
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4973
+sv_catpvf||5.004000|v
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4974
+sv_catpvn_flags||5.007002|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4975
+sv_catpvn_mg|5.004050||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4976
+sv_catpvn_nomg|5.007002||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4977
+sv_catpvn|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4978
+sv_catpvs_flags||5.013006|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4979
+sv_catpvs_mg||5.013006|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4980
+sv_catpvs_nomg||5.013006|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4981
+sv_catpvs|5.009003||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4982
+sv_catpv|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4983
+sv_catsv_flags||5.007002|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4984
+sv_catsv_mg|5.004050||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4985
+sv_catsv_nomg|5.007002||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4986
+sv_catsv|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4987
+sv_catxmlpvn|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4988
+sv_catxmlpv|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4989
+sv_catxmlsv|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4990
+sv_chop|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4991
+sv_clean_all|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4992
+sv_clean_objs|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4993
+sv_clear|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4994
+sv_cmp_flags||5.013006|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4995
+sv_cmp_locale_flags||5.013006|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4996
+sv_cmp_locale||5.004000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4997
+sv_cmp|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4998
+sv_collxfrm_flags||5.013006|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  4999
+sv_collxfrm|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5000
+sv_copypv_flags||5.017002|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5001
+sv_copypv_nomg||5.017002|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5002
+sv_copypv|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5003
+sv_dec_nomg||5.013002|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5004
+sv_dec|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5005
+sv_del_backref|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5006
+sv_derived_from_pvn||5.015004|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5007
+sv_derived_from_pv||5.015004|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5008
+sv_derived_from_sv||5.015004|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5009
+sv_derived_from||5.004000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5010
+sv_destroyable||5.010000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5011
+sv_display|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5012
+sv_does_pvn||5.015004|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5013
+sv_does_pv||5.015004|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5014
+sv_does_sv||5.015004|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5015
+sv_does||5.009004|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5016
+sv_dump|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5017
+sv_dup_common|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5018
+sv_dup_inc_multiple|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5019
+sv_dup_inc|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5020
+sv_dup|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5021
+sv_eq_flags||5.013006|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5022
+sv_eq|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5023
+sv_exp_grow|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5024
+sv_force_normal_flags||5.007001|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5025
+sv_force_normal||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5026
+sv_free2|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5027
+sv_free_arenas|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5028
+sv_free|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5029
+sv_gets||5.004000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5030
+sv_grow|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5031
+sv_i_ncmp|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5032
+sv_inc_nomg||5.013002|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5033
+sv_inc|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5034
+sv_insert_flags||5.010001|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5035
+sv_insert|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5036
+sv_isa|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5037
+sv_isobject|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5038
+sv_iv||5.005000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5039
+sv_kill_backrefs|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5040
+sv_len_utf8_nomg|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5041
+sv_len_utf8||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5042
+sv_len|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5043
+sv_magic_portable|5.019003|5.004000|p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5044
+sv_magicext_mglob|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5045
+sv_magicext||5.007003|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5046
+sv_magic|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5047
+sv_mortalcopy_flags|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5048
+sv_mortalcopy|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5049
+sv_ncmp|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5050
+sv_newmortal|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5051
+sv_newref|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5052
+sv_nolocking||5.007003|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5053
+sv_nosharing||5.007003|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5054
+sv_nounlocking|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5055
+sv_nv||5.005000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5056
+sv_peek||5.005000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5057
+sv_pos_b2u_flags||5.019003|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5058
+sv_pos_b2u_midway|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5059
+sv_pos_b2u||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5060
+sv_pos_u2b_cached|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5061
+sv_pos_u2b_flags||5.011005|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5062
+sv_pos_u2b_forwards|||n
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5063
+sv_pos_u2b_midway|||n
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5064
+sv_pos_u2b||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5065
+sv_pvbyten_force||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5066
+sv_pvbyten||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5067
+sv_pvbyte||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5068
+sv_pvn_force_flags|5.007002||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5069
+sv_pvn_force|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5070
+sv_pvn_nomg|5.007003|5.005000|p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5071
+sv_pvn||5.005000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5072
+sv_pvutf8n_force||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5073
+sv_pvutf8n||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5074
+sv_pvutf8||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5075
+sv_pv||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5076
+sv_recode_to_utf8||5.007003|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5077
+sv_reftype|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5078
+sv_ref|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5079
+sv_release_COW|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5080
+sv_replace|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5081
+sv_report_used|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5082
+sv_resetpvn|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5083
+sv_reset|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5084
+sv_rvweaken||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5085
+sv_sethek|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5086
+sv_setiv_mg|5.004050||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5087
+sv_setiv|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5088
+sv_setnv_mg|5.006000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5089
+sv_setnv|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5090
+sv_setpv_mg|5.004050||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5091
+sv_setpvf_mg_nocontext|||pvn
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5092
+sv_setpvf_mg|5.006000|5.004000|pv
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5093
+sv_setpvf_nocontext|||vn
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5094
+sv_setpvf||5.004000|v
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5095
+sv_setpviv_mg||5.008001|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5096
+sv_setpviv||5.008001|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5097
+sv_setpvn_mg|5.004050||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5098
+sv_setpvn|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5099
+sv_setpvs_mg||5.013006|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5100
+sv_setpvs|5.009004||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5101
+sv_setpv|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5102
+sv_setref_iv|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5103
+sv_setref_nv|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5104
+sv_setref_pvn|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5105
+sv_setref_pvs||5.019003|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5106
+sv_setref_pv|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5107
+sv_setref_uv||5.007001|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5108
+sv_setsv_cow|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5109
+sv_setsv_flags||5.007002|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5110
+sv_setsv_mg|5.004050||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5111
+sv_setsv_nomg|5.007002||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5112
+sv_setsv|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5113
+sv_setuv_mg|5.004050||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5114
+sv_setuv|5.004000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5115
+sv_tainted||5.004000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5116
+sv_taint||5.004000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5117
+sv_true||5.005000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5118
+sv_unglob|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5119
+sv_uni_display||5.007003|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5120
+sv_unmagicext||5.013008|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5121
+sv_unmagic|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5122
+sv_unref_flags||5.007001|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5123
+sv_unref|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5124
+sv_untaint||5.004000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5125
+sv_upgrade|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5126
+sv_usepvn_flags||5.009004|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5127
+sv_usepvn_mg|5.004050||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5128
+sv_usepvn|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5129
+sv_utf8_decode||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5130
+sv_utf8_downgrade||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5131
+sv_utf8_encode||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5132
+sv_utf8_upgrade_flags_grow||5.011000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5133
+sv_utf8_upgrade_flags||5.007002|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5134
+sv_utf8_upgrade_nomg||5.007002|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5135
+sv_utf8_upgrade||5.007001|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5136
+sv_uv|5.005000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5137
+sv_vcatpvf_mg|5.006000|5.004000|p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5138
+sv_vcatpvfn_flags||5.017002|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5139
+sv_vcatpvfn||5.004000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5140
+sv_vcatpvf|5.006000|5.004000|p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5141
+sv_vsetpvf_mg|5.006000|5.004000|p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5142
+sv_vsetpvfn||5.004000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5143
+sv_vsetpvf|5.006000|5.004000|p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5144
+sv_xmlpeek|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5145
+svtype|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5146
+swallow_bom|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5147
+swash_fetch||5.007002|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5148
+swash_init||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5149
+swatch_get|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5150
+sys_init3||5.010000|n
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5151
+sys_init||5.010000|n
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5152
+sys_intern_clear|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5153
+sys_intern_dup|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5154
+sys_intern_init|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5155
+sys_term||5.010000|n
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5156
+taint_env|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5157
+taint_proper|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5158
+tied_method|||v
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5159
+tmps_grow||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5160
+toFOLD_uni||5.007003|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5161
+toFOLD_utf8||5.019001|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5162
+toFOLD||5.019001|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5163
+toLOWER_L1||5.019001|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5164
+toLOWER_LC||5.004000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5165
+toLOWER_uni||5.007003|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5166
+toLOWER_utf8||5.015007|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5167
+toLOWER|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5168
+toTITLE_uni||5.007003|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5169
+toTITLE_utf8||5.015007|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5170
+toTITLE||5.019001|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5171
+toUPPER_uni||5.007003|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5172
+toUPPER_utf8||5.015007|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5173
+toUPPER||5.004000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5174
+to_byte_substr|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5175
+to_lower_latin1|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5176
+to_uni_fold||5.007003|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5177
+to_uni_lower_lc||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5178
+to_uni_lower||5.007003|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5179
+to_uni_title_lc||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5180
+to_uni_title||5.007003|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5181
+to_uni_upper_lc||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5182
+to_uni_upper||5.007003|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5183
+to_utf8_case||5.007003|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5184
+to_utf8_fold||5.015007|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5185
+to_utf8_lower||5.015007|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5186
+to_utf8_substr|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5187
+to_utf8_title||5.015007|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5188
+to_utf8_upper||5.015007|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5189
+token_free|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5190
+token_getmad|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5191
+tokenize_use|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5192
+tokeq|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5193
+tokereport|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5194
+too_few_arguments_pv|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5195
+too_few_arguments_sv|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5196
+too_many_arguments_pv|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5197
+too_many_arguments_sv|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5198
+translate_substr_offsets|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5199
+try_amagic_bin|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5200
+try_amagic_un|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5201
+uiv_2buf|||n
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5202
+unlnk|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5203
+unpack_rec|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5204
+unpack_str||5.007003|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5205
+unpackstring||5.008001|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5206
+unreferenced_to_tmp_stack|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5207
+unshare_hek_or_pvn|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5208
+unshare_hek|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5209
+unsharepvn||5.004000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5210
+unwind_handler_stack|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5211
+update_debugger_info|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5212
+upg_version||5.009005|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5213
+usage|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5214
+utf16_textfilter|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5215
+utf16_to_utf8_reversed||5.006001|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5216
+utf16_to_utf8||5.006001|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5217
+utf8_distance||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5218
+utf8_hop||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5219
+utf8_length||5.007001|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5220
+utf8_mg_len_cache_update|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5221
+utf8_mg_pos_cache_update|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5222
+utf8_to_bytes||5.006001|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5223
+utf8_to_uvchr_buf||5.015009|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5224
+utf8_to_uvchr||5.007001|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5225
+utf8_to_uvuni_buf||5.015009|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5226
+utf8_to_uvuni||5.007001|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5227
+utf8n_to_uvchr|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5228
+utf8n_to_uvuni||5.007001|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5229
+utilize|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5230
+uvchr_to_utf8_flags||5.007003|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5231
+uvchr_to_utf8|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5232
+uvuni_to_utf8_flags||5.007003|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5233
+uvuni_to_utf8||5.007001|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5234
+valid_utf8_to_uvchr|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5235
+valid_utf8_to_uvuni||5.015009|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5236
+validate_proto|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5237
+validate_suid|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5238
+varname|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5239
+vcmp||5.009000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5240
+vcroak||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5241
+vdeb||5.007003|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5242
+vform||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5243
+visit|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5244
+vivify_defelem|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5245
+vivify_ref|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5246
+vload_module|5.006000||p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5247
+vmess||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5248
+vnewSVpvf|5.006000|5.004000|p
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5249
+vnormal||5.009002|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5250
+vnumify||5.009000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5251
+vstringify||5.009000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5252
+vverify||5.009003|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5253
+vwarner||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5254
+vwarn||5.006000|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5255
+wait4pid|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5256
+warn_nocontext|||vn
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5257
+warn_sv||5.013001|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5258
+warner_nocontext|||vn
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5259
+warner|5.006000|5.004000|pv
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5260
+warn|||v
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5261
+was_lvalue_sub|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5262
+watch|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5263
+whichsig_pvn||5.015004|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5264
+whichsig_pv||5.015004|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5265
+whichsig_sv||5.015004|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5266
+whichsig|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5267
+win32_croak_not_implemented|||n
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5268
+with_queued_errors|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5269
+wrap_op_checker||5.015008|
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5270
+write_to_stderr|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5271
+xmldump_all_perl|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5272
+xmldump_all|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5273
+xmldump_attr|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5274
+xmldump_eval|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5275
+xmldump_form|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5276
+xmldump_indent|||v
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5277
+xmldump_packsubs_perl|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5278
+xmldump_packsubs|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5279
+xmldump_sub_perl|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5280
+xmldump_sub|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5281
+xmldump_vindent|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5282
+xs_apiversion_bootcheck|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5283
+xs_version_bootcheck|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5284
+yyerror_pvn|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5285
+yyerror_pv|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5286
+yyerror|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5287
+yylex|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5288
+yyparse|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5289
+yyunlex|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5290
+yywarn|||
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5291
+);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5292
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5293
+if (exists $opt{'list-unsupported'}) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5294
+  my $f;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5295
+  for $f (sort { lc $a cmp lc $b } keys %API) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5296
+    next unless $API{$f}{todo};
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5297
+    print "$f ", '.'x(40-length($f)), " ", format_version($API{$f}{todo}), "\n";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5298
+  }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5299
+  exit 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5300
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5301
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5302
+# Scan for possible replacement candidates
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5303
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5304
+my(%replace, %need, %hints, %warnings, %depends);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5305
+my $replace = 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5306
+my($hint, $define, $function);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5307
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5308
+sub find_api
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5309
+{
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5310
+  my $code = shift;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5311
+  $code =~ s{
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5312
+    / (?: \*[^*]*\*+(?:[^$ccs][^*]*\*+)* / | /[^\r\n]*)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5313
+  | "[^"\\]*(?:\\.[^"\\]*)*"
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5314
+  | '[^'\\]*(?:\\.[^'\\]*)*' }{}egsx;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5315
+  grep { exists $API{$_} } $code =~ /(\w+)/mg;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5316
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5317
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5318
+while (<DATA>) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5319
+  if ($hint) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5320
+    my $h = $hint->[0] eq 'Hint' ? \%hints : \%warnings;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5321
+    if (m{^\s*\*\s(.*?)\s*$}) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5322
+      for (@{$hint->[1]}) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5323
+        $h->{$_} ||= '';  # suppress warning with older perls
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5324
+        $h->{$_} .= "$1\n";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5325
+      }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5326
+    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5327
+    else { undef $hint }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5328
+  }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5329
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5330
+  $hint = [$1, [split /,?\s+/, $2]]
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5331
+      if m{^\s*$rccs\s+(Hint|Warning):\s+(\w+(?:,?\s+\w+)*)\s*$};
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5332
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5333
+  if ($define) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5334
+    if ($define->[1] =~ /\\$/) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5335
+      $define->[1] .= $_;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5336
+    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5337
+    else {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5338
+      if (exists $API{$define->[0]} && $define->[1] !~ /^DPPP_\(/) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5339
+        my @n = find_api($define->[1]);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5340
+        push @{$depends{$define->[0]}}, @n if @n
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5341
+      }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5342
+      undef $define;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5343
+    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5344
+  }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5345
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5346
+  $define = [$1, $2] if m{^\s*#\s*define\s+(\w+)(?:\([^)]*\))?\s+(.*)};
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5347
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5348
+  if ($function) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5349
+    if (/^}/) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5350
+      if (exists $API{$function->[0]}) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5351
+        my @n = find_api($function->[1]);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5352
+        push @{$depends{$function->[0]}}, @n if @n
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5353
+      }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5354
+      undef $function;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5355
+    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5356
+    else {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5357
+      $function->[1] .= $_;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5358
+    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5359
+  }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5360
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5361
+  $function = [$1, ''] if m{^DPPP_\(my_(\w+)\)};
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5362
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5363
+  $replace     = $1 if m{^\s*$rccs\s+Replace:\s+(\d+)\s+$rcce\s*$};
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5364
+  $replace{$2} = $1 if $replace and m{^\s*#\s*define\s+(\w+)(?:\([^)]*\))?\s+(\w+)};
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5365
+  $replace{$2} = $1 if m{^\s*#\s*define\s+(\w+)(?:\([^)]*\))?\s+(\w+).*$rccs\s+Replace\s+$rcce};
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5366
+  $replace{$1} = $2 if m{^\s*$rccs\s+Replace (\w+) with (\w+)\s+$rcce\s*$};
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5367
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5368
+  if (m{^\s*$rccs\s+(\w+(\s*,\s*\w+)*)\s+depends\s+on\s+(\w+(\s*,\s*\w+)*)\s+$rcce\s*$}) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5369
+    my @deps = map { s/\s+//g; $_ } split /,/, $3;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5370
+    my $d;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5371
+    for $d (map { s/\s+//g; $_ } split /,/, $1) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5372
+      push @{$depends{$d}}, @deps;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5373
+    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5374
+  }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5375
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5376
+  $need{$1} = 1 if m{^#if\s+defined\(NEED_(\w+)(?:_GLOBAL)?\)};
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5377
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5378
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5379
+for (values %depends) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5380
+  my %s;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5381
+  $_ = [sort grep !$s{$_}++, @$_];
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5382
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5383
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5384
+if (exists $opt{'api-info'}) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5385
+  my $f;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5386
+  my $count = 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5387
+  my $match = $opt{'api-info'} =~ m!^/(.*)/$! ? $1 : "^\Q$opt{'api-info'}\E\$";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5388
+  for $f (sort { lc $a cmp lc $b } keys %API) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5389
+    next unless $f =~ /$match/;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5390
+    print "\n=== $f ===\n\n";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5391
+    my $info = 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5392
+    if ($API{$f}{base} || $API{$f}{todo}) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5393
+      my $base = format_version($API{$f}{base} || $API{$f}{todo});
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5394
+      print "Supported at least starting from perl-$base.\n";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5395
+      $info++;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5396
+    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5397
+    if ($API{$f}{provided}) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5398
+      my $todo = $API{$f}{todo} ? format_version($API{$f}{todo}) : "5.003";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5399
+      print "Support by $ppport provided back to perl-$todo.\n";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5400
+      print "Support needs to be explicitly requested by NEED_$f.\n" if exists $need{$f};
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5401
+      print "Depends on: ", join(', ', @{$depends{$f}}), ".\n" if exists $depends{$f};
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5402
+      print "\n$hints{$f}" if exists $hints{$f};
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5403
+      print "\nWARNING:\n$warnings{$f}" if exists $warnings{$f};
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5404
+      $info++;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5405
+    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5406
+    print "No portability information available.\n" unless $info;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5407
+    $count++;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5408
+  }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5409
+  $count or print "Found no API matching '$opt{'api-info'}'.";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5410
+  print "\n";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5411
+  exit 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5412
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5413
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5414
+if (exists $opt{'list-provided'}) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5415
+  my $f;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5416
+  for $f (sort { lc $a cmp lc $b } keys %API) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5417
+    next unless $API{$f}{provided};
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5418
+    my @flags;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5419
+    push @flags, 'explicit' if exists $need{$f};
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5420
+    push @flags, 'depend'   if exists $depends{$f};
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5421
+    push @flags, 'hint'     if exists $hints{$f};
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5422
+    push @flags, 'warning'  if exists $warnings{$f};
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5423
+    my $flags = @flags ? '  ['.join(', ', @flags).']' : '';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5424
+    print "$f$flags\n";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5425
+  }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5426
+  exit 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5427
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5428
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5429
+my @files;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5430
+my @srcext = qw( .xs .c .h .cc .cpp -c.inc -xs.inc );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5431
+my $srcext = join '|', map { quotemeta $_ } @srcext;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5432
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5433
+if (@ARGV) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5434
+  my %seen;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5435
+  for (@ARGV) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5436
+    if (-e) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5437
+      if (-f) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5438
+        push @files, $_ unless $seen{$_}++;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5439
+      }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5440
+      else { warn "'$_' is not a file.\n" }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5441
+    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5442
+    else {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5443
+      my @new = grep { -f } glob $_
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5444
+          or warn "'$_' does not exist.\n";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5445
+      push @files, grep { !$seen{$_}++ } @new;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5446
+    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5447
+  }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5448
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5449
+else {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5450
+  eval {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5451
+    require File::Find;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5452
+    File::Find::find(sub {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5453
+      $File::Find::name =~ /($srcext)$/i
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5454
+          and push @files, $File::Find::name;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5455
+    }, '.');
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5456
+  };
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5457
+  if ($@) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5458
+    @files = map { glob "*$_" } @srcext;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5459
+  }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5460
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5461
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5462
+if (!@ARGV || $opt{filter}) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5463
+  my(@in, @out);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5464
+  my %xsc = map { /(.*)\.xs$/ ? ("$1.c" => 1, "$1.cc" => 1) : () } @files;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5465
+  for (@files) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5466
+    my $out = exists $xsc{$_} || /\b\Q$ppport\E$/i || !/($srcext)$/i;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5467
+    push @{ $out ? \@out : \@in }, $_;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5468
+  }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5469
+  if (@ARGV && @out) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5470
+    warning("Skipping the following files (use --nofilter to avoid this):\n| ", join "\n| ", @out);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5471
+  }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5472
+  @files = @in;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5473
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5474
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5475
+die "No input files given!\n" unless @files;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5476
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5477
+my(%files, %global, %revreplace);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5478
+%revreplace = reverse %replace;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5479
+my $filename;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5480
+my $patch_opened = 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5481
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5482
+for $filename (@files) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5483
+  unless (open IN, "<$filename") {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5484
+    warn "Unable to read from $filename: $!\n";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5485
+    next;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5486
+  }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5487
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5488
+  info("Scanning $filename ...");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5489
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5490
+  my $c = do { local $/; <IN> };
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5491
+  close IN;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5492
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5493
+  my %file = (orig => $c, changes => 0);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5494
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5495
+  # Temporarily remove C/XS comments and strings from the code
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5496
+  my @ccom;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5497
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5498
+  $c =~ s{
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5499
+    ( ^$HS*\#$HS*include\b[^\r\n]+\b(?:\Q$ppport\E|XSUB\.h)\b[^\r\n]*
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5500
+    | ^$HS*\#$HS*(?:define|elif|if(?:def)?)\b[^\r\n]* )
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5501
+  | ( ^$HS*\#[^\r\n]*
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5502
+    | "[^"\\]*(?:\\.[^"\\]*)*"
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5503
+    | '[^'\\]*(?:\\.[^'\\]*)*'
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5504
+    | / (?: \*[^*]*\*+(?:[^$ccs][^*]*\*+)* / | /[^\r\n]* ) )
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5505
+  }{ defined $2 and push @ccom, $2;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5506
+     defined $1 ? $1 : "$ccs$#ccom$cce" }mgsex;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5507
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5508
+  $file{ccom} = \@ccom;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5509
+  $file{code} = $c;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5510
+  $file{has_inc_ppport} = $c =~ /^$HS*#$HS*include[^\r\n]+\b\Q$ppport\E\b/m;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5511
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5512
+  my $func;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5513
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5514
+  for $func (keys %API) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5515
+    my $match = $func;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5516
+    $match .= "|$revreplace{$func}" if exists $revreplace{$func};
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5517
+    if ($c =~ /\b(?:Perl_)?($match)\b/) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5518
+      $file{uses_replace}{$1}++ if exists $revreplace{$func} && $1 eq $revreplace{$func};
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5519
+      $file{uses_Perl}{$func}++ if $c =~ /\bPerl_$func\b/;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5520
+      if (exists $API{$func}{provided}) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5521
+        $file{uses_provided}{$func}++;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5522
+        if (!exists $API{$func}{base} || $API{$func}{base} > $opt{'compat-version'}) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5523
+          $file{uses}{$func}++;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5524
+          my @deps = rec_depend($func);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5525
+          if (@deps) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5526
+            $file{uses_deps}{$func} = \@deps;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5527
+            for (@deps) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5528
+              $file{uses}{$_} = 0 unless exists $file{uses}{$_};
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5529
+            }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5530
+          }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5531
+          for ($func, @deps) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5532
+            $file{needs}{$_} = 'static' if exists $need{$_};
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5533
+          }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5534
+        }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5535
+      }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5536
+      if (exists $API{$func}{todo} && $API{$func}{todo} > $opt{'compat-version'}) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5537
+        if ($c =~ /\b$func\b/) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5538
+          $file{uses_todo}{$func}++;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5539
+        }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5540
+      }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5541
+    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5542
+  }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5543
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5544
+  while ($c =~ /^$HS*#$HS*define$HS+(NEED_(\w+?)(_GLOBAL)?)\b/mg) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5545
+    if (exists $need{$2}) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5546
+      $file{defined $3 ? 'needed_global' : 'needed_static'}{$2}++;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5547
+    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5548
+    else { warning("Possibly wrong #define $1 in $filename") }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5549
+  }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5550
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5551
+  for (qw(uses needs uses_todo needed_global needed_static)) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5552
+    for $func (keys %{$file{$_}}) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5553
+      push @{$global{$_}{$func}}, $filename;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5554
+    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5555
+  }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5556
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5557
+  $files{$filename} = \%file;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5558
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5559
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5560
+# Globally resolve NEED_'s
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5561
+my $need;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5562
+for $need (keys %{$global{needs}}) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5563
+  if (@{$global{needs}{$need}} > 1) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5564
+    my @targets = @{$global{needs}{$need}};
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5565
+    my @t = grep $files{$_}{needed_global}{$need}, @targets;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5566
+    @targets = @t if @t;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5567
+    @t = grep /\.xs$/i, @targets;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5568
+    @targets = @t if @t;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5569
+    my $target = shift @targets;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5570
+    $files{$target}{needs}{$need} = 'global';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5571
+    for (@{$global{needs}{$need}}) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5572
+      $files{$_}{needs}{$need} = 'extern' if $_ ne $target;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5573
+    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5574
+  }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5575
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5576
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5577
+for $filename (@files) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5578
+  exists $files{$filename} or next;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5579
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5580
+  info("=== Analyzing $filename ===");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5581
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5582
+  my %file = %{$files{$filename}};
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5583
+  my $func;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5584
+  my $c = $file{code};
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5585
+  my $warnings = 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5586
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5587
+  for $func (sort keys %{$file{uses_Perl}}) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5588
+    if ($API{$func}{varargs}) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5589
+      unless ($API{$func}{nothxarg}) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5590
+        my $changes = ($c =~ s{\b(Perl_$func\s*\(\s*)(?!aTHX_?)(\)|[^\s)]*\))}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5591
+                              { $1 . ($2 eq ')' ? 'aTHX' : 'aTHX_ ') . $2 }ge);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5592
+        if ($changes) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5593
+          warning("Doesn't pass interpreter argument aTHX to Perl_$func");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5594
+          $file{changes} += $changes;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5595
+        }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5596
+      }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5597
+    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5598
+    else {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5599
+      warning("Uses Perl_$func instead of $func");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5600
+      $file{changes} += ($c =~ s{\bPerl_$func(\s*)\((\s*aTHX_?)?\s*}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5601
+                                {$func$1(}g);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5602
+    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5603
+  }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5604
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5605
+  for $func (sort keys %{$file{uses_replace}}) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5606
+    warning("Uses $func instead of $replace{$func}");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5607
+    $file{changes} += ($c =~ s/\b$func\b/$replace{$func}/g);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5608
+  }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5609
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5610
+  for $func (sort keys %{$file{uses_provided}}) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5611
+    if ($file{uses}{$func}) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5612
+      if (exists $file{uses_deps}{$func}) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5613
+        diag("Uses $func, which depends on ", join(', ', @{$file{uses_deps}{$func}}));
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5614
+      }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5615
+      else {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5616
+        diag("Uses $func");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5617
+      }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5618
+    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5619
+    $warnings += hint($func);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5620
+  }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5621
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5622
+  unless ($opt{quiet}) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5623
+    for $func (sort keys %{$file{uses_todo}}) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5624
+      print "*** WARNING: Uses $func, which may not be portable below perl ",
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5625
+            format_version($API{$func}{todo}), ", even with '$ppport'\n";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5626
+      $warnings++;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5627
+    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5628
+  }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5629
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5630
+  for $func (sort keys %{$file{needed_static}}) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5631
+    my $message = '';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5632
+    if (not exists $file{uses}{$func}) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5633
+      $message = "No need to define NEED_$func if $func is never used";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5634
+    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5635
+    elsif (exists $file{needs}{$func} && $file{needs}{$func} ne 'static') {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5636
+      $message = "No need to define NEED_$func when already needed globally";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5637
+    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5638
+    if ($message) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5639
+      diag($message);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5640
+      $file{changes} += ($c =~ s/^$HS*#$HS*define$HS+NEED_$func\b.*$LF//mg);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5641
+    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5642
+  }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5643
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5644
+  for $func (sort keys %{$file{needed_global}}) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5645
+    my $message = '';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5646
+    if (not exists $global{uses}{$func}) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5647
+      $message = "No need to define NEED_${func}_GLOBAL if $func is never used";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5648
+    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5649
+    elsif (exists $file{needs}{$func}) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5650
+      if ($file{needs}{$func} eq 'extern') {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5651
+        $message = "No need to define NEED_${func}_GLOBAL when already needed globally";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5652
+      }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5653
+      elsif ($file{needs}{$func} eq 'static') {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5654
+        $message = "No need to define NEED_${func}_GLOBAL when only used in this file";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5655
+      }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5656
+    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5657
+    if ($message) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5658
+      diag($message);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5659
+      $file{changes} += ($c =~ s/^$HS*#$HS*define$HS+NEED_${func}_GLOBAL\b.*$LF//mg);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5660
+    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5661
+  }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5662
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5663
+  $file{needs_inc_ppport} = keys %{$file{uses}};
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5664
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5665
+  if ($file{needs_inc_ppport}) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5666
+    my $pp = '';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5667
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5668
+    for $func (sort keys %{$file{needs}}) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5669
+      my $type = $file{needs}{$func};
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5670
+      next if $type eq 'extern';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5671
+      my $suffix = $type eq 'global' ? '_GLOBAL' : '';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5672
+      unless (exists $file{"needed_$type"}{$func}) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5673
+        if ($type eq 'global') {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5674
+          diag("Files [@{$global{needs}{$func}}] need $func, adding global request");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5675
+        }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5676
+        else {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5677
+          diag("File needs $func, adding static request");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5678
+        }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5679
+        $pp .= "#define NEED_$func$suffix\n";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5680
+      }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5681
+    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5682
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5683
+    if ($pp && ($c =~ s/^(?=$HS*#$HS*define$HS+NEED_\w+)/$pp/m)) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5684
+      $pp = '';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5685
+      $file{changes}++;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5686
+    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5687
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5688
+    unless ($file{has_inc_ppport}) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5689
+      diag("Needs to include '$ppport'");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5690
+      $pp .= qq(#include "$ppport"\n)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5691
+    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5692
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5693
+    if ($pp) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5694
+      $file{changes} += ($c =~ s/^($HS*#$HS*define$HS+NEED_\w+.*?)^/$1$pp/ms)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5695
+                     || ($c =~ s/^(?=$HS*#$HS*include.*\Q$ppport\E)/$pp/m)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5696
+                     || ($c =~ s/^($HS*#$HS*include.*XSUB.*\s*?)^/$1$pp/m)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5697
+                     || ($c =~ s/^/$pp/);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5698
+    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5699
+  }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5700
+  else {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5701
+    if ($file{has_inc_ppport}) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5702
+      diag("No need to include '$ppport'");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5703
+      $file{changes} += ($c =~ s/^$HS*?#$HS*include.*\Q$ppport\E.*?$LF//m);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5704
+    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5705
+  }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5706
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5707
+  # put back in our C comments
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5708
+  my $ix;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5709
+  my $cppc = 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5710
+  my @ccom = @{$file{ccom}};
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5711
+  for $ix (0 .. $#ccom) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5712
+    if (!$opt{cplusplus} && $ccom[$ix] =~ s!^//!!) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5713
+      $cppc++;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5714
+      $file{changes} += $c =~ s/$rccs$ix$rcce/$ccs$ccom[$ix] $cce/;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5715
+    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5716
+    else {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5717
+      $c =~ s/$rccs$ix$rcce/$ccom[$ix]/;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5718
+    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5719
+  }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5720
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5721
+  if ($cppc) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5722
+    my $s = $cppc != 1 ? 's' : '';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5723
+    warning("Uses $cppc C++ style comment$s, which is not portable");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5724
+  }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5725
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5726
+  my $s = $warnings != 1 ? 's' : '';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5727
+  my $warn = $warnings ? " ($warnings warning$s)" : '';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5728
+  info("Analysis completed$warn");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5729
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5730
+  if ($file{changes}) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5731
+    if (exists $opt{copy}) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5732
+      my $newfile = "$filename$opt{copy}";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5733
+      if (-e $newfile) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5734
+        error("'$newfile' already exists, refusing to write copy of '$filename'");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5735
+      }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5736
+      else {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5737
+        local *F;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5738
+        if (open F, ">$newfile") {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5739
+          info("Writing copy of '$filename' with changes to '$newfile'");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5740
+          print F $c;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5741
+          close F;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5742
+        }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5743
+        else {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5744
+          error("Cannot open '$newfile' for writing: $!");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5745
+        }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5746
+      }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5747
+    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5748
+    elsif (exists $opt{patch} || $opt{changes}) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5749
+      if (exists $opt{patch}) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5750
+        unless ($patch_opened) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5751
+          if (open PATCH, ">$opt{patch}") {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5752
+            $patch_opened = 1;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5753
+          }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5754
+          else {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5755
+            error("Cannot open '$opt{patch}' for writing: $!");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5756
+            delete $opt{patch};
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5757
+            $opt{changes} = 1;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5758
+            goto fallback;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5759
+          }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5760
+        }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5761
+        mydiff(\*PATCH, $filename, $c);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5762
+      }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5763
+      else {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5764
+fallback:
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5765
+        info("Suggested changes:");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5766
+        mydiff(\*STDOUT, $filename, $c);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5767
+      }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5768
+    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5769
+    else {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5770
+      my $s = $file{changes} == 1 ? '' : 's';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5771
+      info("$file{changes} potentially required change$s detected");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5772
+    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5773
+  }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5774
+  else {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5775
+    info("Looks good");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5776
+  }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5777
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5778
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5779
+close PATCH if $patch_opened;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5780
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5781
+exit 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5782
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5783
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5784
+sub try_use { eval "use @_;"; return $@ eq '' }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5785
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5786
+sub mydiff
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5787
+{
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5788
+  local *F = shift;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5789
+  my($file, $str) = @_;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5790
+  my $diff;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5791
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5792
+  if (exists $opt{diff}) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5793
+    $diff = run_diff($opt{diff}, $file, $str);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5794
+  }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5795
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5796
+  if (!defined $diff and try_use('Text::Diff')) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5797
+    $diff = Text::Diff::diff($file, \$str, { STYLE => 'Unified' });
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5798
+    $diff = <<HEADER . $diff;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5799
+--- $file
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5800
++++ $file.patched
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5801
+HEADER
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5802
+  }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5803
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5804
+  if (!defined $diff) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5805
+    $diff = run_diff('diff -u', $file, $str);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5806
+  }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5807
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5808
+  if (!defined $diff) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5809
+    $diff = run_diff('diff', $file, $str);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5810
+  }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5811
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5812
+  if (!defined $diff) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5813
+    error("Cannot generate a diff. Please install Text::Diff or use --copy.");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5814
+    return;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5815
+  }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5816
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5817
+  print F $diff;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5818
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5819
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5820
+sub run_diff
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5821
+{
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5822
+  my($prog, $file, $str) = @_;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5823
+  my $tmp = 'dppptemp';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5824
+  my $suf = 'aaa';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5825
+  my $diff = '';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5826
+  local *F;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5827
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5828
+  while (-e "$tmp.$suf") { $suf++ }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5829
+  $tmp = "$tmp.$suf";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5830
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5831
+  if (open F, ">$tmp") {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5832
+    print F $str;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5833
+    close F;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5834
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5835
+    if (open F, "$prog $file $tmp |") {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5836
+      while (<F>) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5837
+        s/\Q$tmp\E/$file.patched/;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5838
+        $diff .= $_;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5839
+      }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5840
+      close F;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5841
+      unlink $tmp;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5842
+      return $diff;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5843
+    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5844
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5845
+    unlink $tmp;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5846
+  }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5847
+  else {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5848
+    error("Cannot open '$tmp' for writing: $!");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5849
+  }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5850
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5851
+  return undef;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5852
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5853
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5854
+sub rec_depend
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5855
+{
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5856
+  my($func, $seen) = @_;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5857
+  return () unless exists $depends{$func};
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5858
+  $seen = {%{$seen||{}}};
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5859
+  return () if $seen->{$func}++;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5860
+  my %s;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5861
+  grep !$s{$_}++, map { ($_, rec_depend($_, $seen)) } @{$depends{$func}};
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5862
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5863
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5864
+sub parse_version
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5865
+{
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5866
+  my $ver = shift;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5867
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5868
+  if ($ver =~ /^(\d+)\.(\d+)\.(\d+)$/) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5869
+    return ($1, $2, $3);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5870
+  }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5871
+  elsif ($ver !~ /^\d+\.[\d_]+$/) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5872
+    die "cannot parse version '$ver'\n";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5873
+  }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5874
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5875
+  $ver =~ s/_//g;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5876
+  $ver =~ s/$/000000/;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5877
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5878
+  my($r,$v,$s) = $ver =~ /(\d+)\.(\d{3})(\d{3})/;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5879
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5880
+  $v = int $v;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5881
+  $s = int $s;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5882
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5883
+  if ($r < 5 || ($r == 5 && $v < 6)) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5884
+    if ($s % 10) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5885
+      die "cannot parse version '$ver'\n";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5886
+    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5887
+  }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5888
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5889
+  return ($r, $v, $s);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5890
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5891
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5892
+sub format_version
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5893
+{
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5894
+  my $ver = shift;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5895
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5896
+  $ver =~ s/$/000000/;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5897
+  my($r,$v,$s) = $ver =~ /(\d+)\.(\d{3})(\d{3})/;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5898
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5899
+  $v = int $v;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5900
+  $s = int $s;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5901
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5902
+  if ($r < 5 || ($r == 5 && $v < 6)) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5903
+    if ($s % 10) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5904
+      die "invalid version '$ver'\n";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5905
+    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5906
+    $s /= 10;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5907
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5908
+    $ver = sprintf "%d.%03d", $r, $v;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5909
+    $s > 0 and $ver .= sprintf "_%02d", $s;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5910
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5911
+    return $ver;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5912
+  }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5913
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5914
+  return sprintf "%d.%d.%d", $r, $v, $s;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5915
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5916
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5917
+sub info
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5918
+{
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5919
+  $opt{quiet} and return;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5920
+  print @_, "\n";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5921
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5922
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5923
+sub diag
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5924
+{
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5925
+  $opt{quiet} and return;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5926
+  $opt{diag} and print @_, "\n";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5927
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5928
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5929
+sub warning
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5930
+{
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5931
+  $opt{quiet} and return;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5932
+  print "*** ", @_, "\n";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5933
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5934
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5935
+sub error
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5936
+{
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5937
+  print "*** ERROR: ", @_, "\n";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5938
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5939
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5940
+my %given_hints;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5941
+my %given_warnings;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5942
+sub hint
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5943
+{
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5944
+  $opt{quiet} and return;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5945
+  my $func = shift;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5946
+  my $rv = 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5947
+  if (exists $warnings{$func} && !$given_warnings{$func}++) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5948
+    my $warn = $warnings{$func};
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5949
+    $warn =~ s!^!*** !mg;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5950
+    print "*** WARNING: $func\n", $warn;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5951
+    $rv++;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5952
+  }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5953
+  if ($opt{hints} && exists $hints{$func} && !$given_hints{$func}++) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5954
+    my $hint = $hints{$func};
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5955
+    $hint =~ s/^/   /mg;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5956
+    print "   --- hint for $func ---\n", $hint;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5957
+  }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5958
+  $rv;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5959
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5960
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5961
+sub usage
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5962
+{
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5963
+  my($usage) = do { local(@ARGV,$/)=($0); <> } =~ /^=head\d$HS+SYNOPSIS\s*^(.*?)\s*^=/ms;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5964
+  my %M = ( 'I' => '*' );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5965
+  $usage =~ s/^\s*perl\s+\S+/$^X $0/;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5966
+  $usage =~ s/([A-Z])<([^>]+)>/$M{$1}$2$M{$1}/g;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5967
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5968
+  print <<ENDUSAGE;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5969
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5970
+Usage: $usage
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5971
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5972
+See perldoc $0 for details.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5973
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5974
+ENDUSAGE
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5975
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5976
+  exit 2;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5977
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5978
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5979
+sub strip
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5980
+{
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5981
+  my $self = do { local(@ARGV,$/)=($0); <> };
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5982
+  my($copy) = $self =~ /^=head\d\s+COPYRIGHT\s*^(.*?)^=\w+/ms;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5983
+  $copy =~ s/^(?=\S+)/    /gms;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5984
+  $self =~ s/^$HS+Do NOT edit.*?(?=^-)/$copy/ms;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5985
+  $self =~ s/^SKIP.*(?=^__DATA__)/SKIP
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5986
+if (\@ARGV && \$ARGV[0] eq '--unstrip') {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5987
+  eval { require Devel::PPPort };
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5988
+  \$@ and die "Cannot require Devel::PPPort, please install.\\n";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5989
+  if (eval \$Devel::PPPort::VERSION < $VERSION) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5990
+    die "$0 was originally generated with Devel::PPPort $VERSION.\\n"
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5991
+      . "Your Devel::PPPort is only version \$Devel::PPPort::VERSION.\\n"
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5992
+      . "Please install a newer version, or --unstrip will not work.\\n";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5993
+  }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5994
+  Devel::PPPort::WriteFile(\$0);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5995
+  exit 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5996
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5997
+print <<END;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5998
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  5999
+Sorry, but this is a stripped version of \$0.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6000
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6001
+To be able to use its original script and doc functionality,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6002
+please try to regenerate this file using:
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6003
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6004
+  \$^X \$0 --unstrip
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6005
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6006
+END
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6007
+/ms;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6008
+  my($pl, $c) = $self =~ /(.*^__DATA__)(.*)/ms;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6009
+  $c =~ s{
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6010
+    / (?: \*[^*]*\*+(?:[^$ccs][^*]*\*+)* / | /[^\r\n]*)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6011
+  | ( "[^"\\]*(?:\\.[^"\\]*)*"
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6012
+    | '[^'\\]*(?:\\.[^'\\]*)*' )
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6013
+  | ($HS+) }{ defined $2 ? ' ' : ($1 || '') }gsex;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6014
+  $c =~ s!\s+$!!mg;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6015
+  $c =~ s!^$LF!!mg;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6016
+  $c =~ s!^\s*#\s*!#!mg;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6017
+  $c =~ s!^\s+!!mg;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6018
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6019
+  open OUT, ">$0" or die "cannot strip $0: $!\n";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6020
+  print OUT "$pl$c\n";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6021
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6022
+  exit 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6023
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6024
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6025
+__DATA__
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6026
+*/
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6027
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6028
+#ifndef _P_P_PORTABILITY_H_
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6029
+#define _P_P_PORTABILITY_H_
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6030
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6031
+#ifndef DPPP_NAMESPACE
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6032
+#  define DPPP_NAMESPACE DPPP_
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6033
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6034
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6035
+#define DPPP_CAT2(x,y) CAT2(x,y)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6036
+#define DPPP_(name) DPPP_CAT2(DPPP_NAMESPACE, name)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6037
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6038
+#ifndef PERL_REVISION
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6039
+#  if !defined(__PATCHLEVEL_H_INCLUDED__) && !(defined(PATCHLEVEL) && defined(SUBVERSION))
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6040
+#    define PERL_PATCHLEVEL_H_IMPLICIT
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6041
+#    include <patchlevel.h>
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6042
+#  endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6043
+#  if !(defined(PERL_VERSION) || (defined(SUBVERSION) && defined(PATCHLEVEL)))
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6044
+#    include <could_not_find_Perl_patchlevel.h>
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6045
+#  endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6046
+#  ifndef PERL_REVISION
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6047
+#    define PERL_REVISION       (5)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6048
+     /* Replace: 1 */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6049
+#    define PERL_VERSION        PATCHLEVEL
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6050
+#    define PERL_SUBVERSION     SUBVERSION
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6051
+     /* Replace PERL_PATCHLEVEL with PERL_VERSION */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6052
+     /* Replace: 0 */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6053
+#  endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6054
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6055
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6056
+#define _dpppDEC2BCD(dec) ((((dec)/100)<<8)|((((dec)%100)/10)<<4)|((dec)%10))
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6057
+#define PERL_BCDVERSION ((_dpppDEC2BCD(PERL_REVISION)<<24)|(_dpppDEC2BCD(PERL_VERSION)<<12)|_dpppDEC2BCD(PERL_SUBVERSION))
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6058
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6059
+/* It is very unlikely that anyone will try to use this with Perl 6
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6060
+   (or greater), but who knows.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6061
+ */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6062
+#if PERL_REVISION != 5
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6063
+#  error ppport.h only works with Perl version 5
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6064
+#endif /* PERL_REVISION != 5 */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6065
+#ifndef dTHR
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6066
+#  define dTHR                           dNOOP
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6067
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6068
+#ifndef dTHX
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6069
+#  define dTHX                           dNOOP
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6070
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6071
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6072
+#ifndef dTHXa
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6073
+#  define dTHXa(x)                       dNOOP
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6074
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6075
+#ifndef pTHX
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6076
+#  define pTHX                           void
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6077
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6078
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6079
+#ifndef pTHX_
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6080
+#  define pTHX_
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6081
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6082
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6083
+#ifndef aTHX
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6084
+#  define aTHX
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6085
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6086
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6087
+#ifndef aTHX_
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6088
+#  define aTHX_
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6089
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6090
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6091
+#if (PERL_BCDVERSION < 0x5006000)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6092
+#  ifdef USE_THREADS
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6093
+#    define aTHXR  thr
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6094
+#    define aTHXR_ thr,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6095
+#  else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6096
+#    define aTHXR
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6097
+#    define aTHXR_
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6098
+#  endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6099
+#  define dTHXR  dTHR
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6100
+#else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6101
+#  define aTHXR  aTHX
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6102
+#  define aTHXR_ aTHX_
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6103
+#  define dTHXR  dTHX
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6104
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6105
+#ifndef dTHXoa
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6106
+#  define dTHXoa(x)                      dTHXa(x)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6107
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6108
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6109
+#ifdef I_LIMITS
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6110
+#  include <limits.h>
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6111
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6112
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6113
+#ifndef PERL_UCHAR_MIN
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6114
+#  define PERL_UCHAR_MIN ((unsigned char)0)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6115
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6116
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6117
+#ifndef PERL_UCHAR_MAX
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6118
+#  ifdef UCHAR_MAX
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6119
+#    define PERL_UCHAR_MAX ((unsigned char)UCHAR_MAX)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6120
+#  else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6121
+#    ifdef MAXUCHAR
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6122
+#      define PERL_UCHAR_MAX ((unsigned char)MAXUCHAR)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6123
+#    else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6124
+#      define PERL_UCHAR_MAX ((unsigned char)~(unsigned)0)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6125
+#    endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6126
+#  endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6127
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6128
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6129
+#ifndef PERL_USHORT_MIN
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6130
+#  define PERL_USHORT_MIN ((unsigned short)0)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6131
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6132
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6133
+#ifndef PERL_USHORT_MAX
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6134
+#  ifdef USHORT_MAX
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6135
+#    define PERL_USHORT_MAX ((unsigned short)USHORT_MAX)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6136
+#  else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6137
+#    ifdef MAXUSHORT
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6138
+#      define PERL_USHORT_MAX ((unsigned short)MAXUSHORT)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6139
+#    else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6140
+#      ifdef USHRT_MAX
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6141
+#        define PERL_USHORT_MAX ((unsigned short)USHRT_MAX)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6142
+#      else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6143
+#        define PERL_USHORT_MAX ((unsigned short)~(unsigned)0)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6144
+#      endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6145
+#    endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6146
+#  endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6147
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6148
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6149
+#ifndef PERL_SHORT_MAX
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6150
+#  ifdef SHORT_MAX
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6151
+#    define PERL_SHORT_MAX ((short)SHORT_MAX)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6152
+#  else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6153
+#    ifdef MAXSHORT    /* Often used in <values.h> */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6154
+#      define PERL_SHORT_MAX ((short)MAXSHORT)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6155
+#    else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6156
+#      ifdef SHRT_MAX
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6157
+#        define PERL_SHORT_MAX ((short)SHRT_MAX)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6158
+#      else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6159
+#        define PERL_SHORT_MAX ((short) (PERL_USHORT_MAX >> 1))
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6160
+#      endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6161
+#    endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6162
+#  endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6163
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6164
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6165
+#ifndef PERL_SHORT_MIN
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6166
+#  ifdef SHORT_MIN
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6167
+#    define PERL_SHORT_MIN ((short)SHORT_MIN)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6168
+#  else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6169
+#    ifdef MINSHORT
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6170
+#      define PERL_SHORT_MIN ((short)MINSHORT)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6171
+#    else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6172
+#      ifdef SHRT_MIN
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6173
+#        define PERL_SHORT_MIN ((short)SHRT_MIN)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6174
+#      else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6175
+#        define PERL_SHORT_MIN (-PERL_SHORT_MAX - ((3 & -1) == 3))
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6176
+#      endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6177
+#    endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6178
+#  endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6179
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6180
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6181
+#ifndef PERL_UINT_MAX
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6182
+#  ifdef UINT_MAX
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6183
+#    define PERL_UINT_MAX ((unsigned int)UINT_MAX)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6184
+#  else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6185
+#    ifdef MAXUINT
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6186
+#      define PERL_UINT_MAX ((unsigned int)MAXUINT)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6187
+#    else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6188
+#      define PERL_UINT_MAX (~(unsigned int)0)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6189
+#    endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6190
+#  endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6191
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6192
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6193
+#ifndef PERL_UINT_MIN
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6194
+#  define PERL_UINT_MIN ((unsigned int)0)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6195
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6196
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6197
+#ifndef PERL_INT_MAX
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6198
+#  ifdef INT_MAX
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6199
+#    define PERL_INT_MAX ((int)INT_MAX)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6200
+#  else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6201
+#    ifdef MAXINT    /* Often used in <values.h> */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6202
+#      define PERL_INT_MAX ((int)MAXINT)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6203
+#    else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6204
+#      define PERL_INT_MAX ((int)(PERL_UINT_MAX >> 1))
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6205
+#    endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6206
+#  endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6207
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6208
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6209
+#ifndef PERL_INT_MIN
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6210
+#  ifdef INT_MIN
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6211
+#    define PERL_INT_MIN ((int)INT_MIN)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6212
+#  else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6213
+#    ifdef MININT
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6214
+#      define PERL_INT_MIN ((int)MININT)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6215
+#    else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6216
+#      define PERL_INT_MIN (-PERL_INT_MAX - ((3 & -1) == 3))
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6217
+#    endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6218
+#  endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6219
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6220
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6221
+#ifndef PERL_ULONG_MAX
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6222
+#  ifdef ULONG_MAX
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6223
+#    define PERL_ULONG_MAX ((unsigned long)ULONG_MAX)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6224
+#  else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6225
+#    ifdef MAXULONG
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6226
+#      define PERL_ULONG_MAX ((unsigned long)MAXULONG)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6227
+#    else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6228
+#      define PERL_ULONG_MAX (~(unsigned long)0)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6229
+#    endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6230
+#  endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6231
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6232
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6233
+#ifndef PERL_ULONG_MIN
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6234
+#  define PERL_ULONG_MIN ((unsigned long)0L)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6235
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6236
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6237
+#ifndef PERL_LONG_MAX
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6238
+#  ifdef LONG_MAX
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6239
+#    define PERL_LONG_MAX ((long)LONG_MAX)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6240
+#  else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6241
+#    ifdef MAXLONG
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6242
+#      define PERL_LONG_MAX ((long)MAXLONG)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6243
+#    else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6244
+#      define PERL_LONG_MAX ((long) (PERL_ULONG_MAX >> 1))
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6245
+#    endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6246
+#  endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6247
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6248
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6249
+#ifndef PERL_LONG_MIN
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6250
+#  ifdef LONG_MIN
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6251
+#    define PERL_LONG_MIN ((long)LONG_MIN)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6252
+#  else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6253
+#    ifdef MINLONG
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6254
+#      define PERL_LONG_MIN ((long)MINLONG)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6255
+#    else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6256
+#      define PERL_LONG_MIN (-PERL_LONG_MAX - ((3 & -1) == 3))
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6257
+#    endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6258
+#  endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6259
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6260
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6261
+#if defined(HAS_QUAD) && (defined(convex) || defined(uts))
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6262
+#  ifndef PERL_UQUAD_MAX
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6263
+#    ifdef ULONGLONG_MAX
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6264
+#      define PERL_UQUAD_MAX ((unsigned long long)ULONGLONG_MAX)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6265
+#    else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6266
+#      ifdef MAXULONGLONG
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6267
+#        define PERL_UQUAD_MAX ((unsigned long long)MAXULONGLONG)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6268
+#      else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6269
+#        define PERL_UQUAD_MAX (~(unsigned long long)0)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6270
+#      endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6271
+#    endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6272
+#  endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6273
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6274
+#  ifndef PERL_UQUAD_MIN
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6275
+#    define PERL_UQUAD_MIN ((unsigned long long)0L)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6276
+#  endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6277
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6278
+#  ifndef PERL_QUAD_MAX
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6279
+#    ifdef LONGLONG_MAX
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6280
+#      define PERL_QUAD_MAX ((long long)LONGLONG_MAX)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6281
+#    else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6282
+#      ifdef MAXLONGLONG
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6283
+#        define PERL_QUAD_MAX ((long long)MAXLONGLONG)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6284
+#      else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6285
+#        define PERL_QUAD_MAX ((long long) (PERL_UQUAD_MAX >> 1))
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6286
+#      endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6287
+#    endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6288
+#  endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6289
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6290
+#  ifndef PERL_QUAD_MIN
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6291
+#    ifdef LONGLONG_MIN
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6292
+#      define PERL_QUAD_MIN ((long long)LONGLONG_MIN)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6293
+#    else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6294
+#      ifdef MINLONGLONG
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6295
+#        define PERL_QUAD_MIN ((long long)MINLONGLONG)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6296
+#      else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6297
+#        define PERL_QUAD_MIN (-PERL_QUAD_MAX - ((3 & -1) == 3))
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6298
+#      endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6299
+#    endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6300
+#  endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6301
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6302
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6303
+/* This is based on code from 5.003 perl.h */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6304
+#ifdef HAS_QUAD
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6305
+#  ifdef cray
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6306
+#ifndef IVTYPE
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6307
+#  define IVTYPE                         int
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6308
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6309
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6310
+#ifndef IV_MIN
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6311
+#  define IV_MIN                         PERL_INT_MIN
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6312
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6313
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6314
+#ifndef IV_MAX
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6315
+#  define IV_MAX                         PERL_INT_MAX
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6316
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6317
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6318
+#ifndef UV_MIN
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6319
+#  define UV_MIN                         PERL_UINT_MIN
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6320
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6321
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6322
+#ifndef UV_MAX
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6323
+#  define UV_MAX                         PERL_UINT_MAX
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6324
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6325
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6326
+#    ifdef INTSIZE
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6327
+#ifndef IVSIZE
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6328
+#  define IVSIZE                         INTSIZE
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6329
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6330
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6331
+#    endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6332
+#  else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6333
+#    if defined(convex) || defined(uts)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6334
+#ifndef IVTYPE
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6335
+#  define IVTYPE                         long long
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6336
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6337
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6338
+#ifndef IV_MIN
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6339
+#  define IV_MIN                         PERL_QUAD_MIN
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6340
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6341
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6342
+#ifndef IV_MAX
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6343
+#  define IV_MAX                         PERL_QUAD_MAX
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6344
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6345
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6346
+#ifndef UV_MIN
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6347
+#  define UV_MIN                         PERL_UQUAD_MIN
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6348
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6349
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6350
+#ifndef UV_MAX
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6351
+#  define UV_MAX                         PERL_UQUAD_MAX
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6352
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6353
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6354
+#      ifdef LONGLONGSIZE
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6355
+#ifndef IVSIZE
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6356
+#  define IVSIZE                         LONGLONGSIZE
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6357
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6358
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6359
+#      endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6360
+#    else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6361
+#ifndef IVTYPE
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6362
+#  define IVTYPE                         long
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6363
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6364
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6365
+#ifndef IV_MIN
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6366
+#  define IV_MIN                         PERL_LONG_MIN
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6367
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6368
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6369
+#ifndef IV_MAX
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6370
+#  define IV_MAX                         PERL_LONG_MAX
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6371
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6372
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6373
+#ifndef UV_MIN
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6374
+#  define UV_MIN                         PERL_ULONG_MIN
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6375
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6376
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6377
+#ifndef UV_MAX
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6378
+#  define UV_MAX                         PERL_ULONG_MAX
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6379
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6380
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6381
+#      ifdef LONGSIZE
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6382
+#ifndef IVSIZE
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6383
+#  define IVSIZE                         LONGSIZE
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6384
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6385
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6386
+#      endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6387
+#    endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6388
+#  endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6389
+#ifndef IVSIZE
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6390
+#  define IVSIZE                         8
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6391
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6392
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6393
+#ifndef LONGSIZE
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6394
+#  define LONGSIZE                       8
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6395
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6396
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6397
+#ifndef PERL_QUAD_MIN
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6398
+#  define PERL_QUAD_MIN                  IV_MIN
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6399
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6400
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6401
+#ifndef PERL_QUAD_MAX
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6402
+#  define PERL_QUAD_MAX                  IV_MAX
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6403
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6404
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6405
+#ifndef PERL_UQUAD_MIN
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6406
+#  define PERL_UQUAD_MIN                 UV_MIN
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6407
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6408
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6409
+#ifndef PERL_UQUAD_MAX
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6410
+#  define PERL_UQUAD_MAX                 UV_MAX
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6411
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6412
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6413
+#else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6414
+#ifndef IVTYPE
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6415
+#  define IVTYPE                         long
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6416
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6417
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6418
+#ifndef LONGSIZE
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6419
+#  define LONGSIZE                       4
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6420
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6421
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6422
+#ifndef IV_MIN
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6423
+#  define IV_MIN                         PERL_LONG_MIN
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6424
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6425
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6426
+#ifndef IV_MAX
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6427
+#  define IV_MAX                         PERL_LONG_MAX
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6428
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6429
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6430
+#ifndef UV_MIN
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6431
+#  define UV_MIN                         PERL_ULONG_MIN
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6432
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6433
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6434
+#ifndef UV_MAX
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6435
+#  define UV_MAX                         PERL_ULONG_MAX
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6436
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6437
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6438
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6439
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6440
+#ifndef IVSIZE
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6441
+#  ifdef LONGSIZE
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6442
+#    define IVSIZE LONGSIZE
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6443
+#  else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6444
+#    define IVSIZE 4 /* A bold guess, but the best we can make. */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6445
+#  endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6446
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6447
+#ifndef UVTYPE
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6448
+#  define UVTYPE                         unsigned IVTYPE
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6449
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6450
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6451
+#ifndef UVSIZE
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6452
+#  define UVSIZE                         IVSIZE
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6453
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6454
+#ifndef sv_setuv
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6455
+#  define sv_setuv(sv, uv)               \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6456
+               STMT_START {                         \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6457
+                 UV TeMpUv = uv;                    \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6458
+                 if (TeMpUv <= IV_MAX)              \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6459
+                   sv_setiv(sv, TeMpUv);            \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6460
+                 else                               \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6461
+                   sv_setnv(sv, (double)TeMpUv);    \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6462
+               } STMT_END
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6463
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6464
+#ifndef newSVuv
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6465
+#  define newSVuv(uv)                    ((uv) <= IV_MAX ? newSViv((IV)uv) : newSVnv((NV)uv))
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6466
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6467
+#ifndef sv_2uv
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6468
+#  define sv_2uv(sv)                     ((PL_Sv = (sv)), (UV) (SvNOK(PL_Sv) ? SvNV(PL_Sv) : sv_2nv(PL_Sv)))
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6469
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6470
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6471
+#ifndef SvUVX
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6472
+#  define SvUVX(sv)                      ((UV)SvIVX(sv))
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6473
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6474
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6475
+#ifndef SvUVXx
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6476
+#  define SvUVXx(sv)                     SvUVX(sv)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6477
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6478
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6479
+#ifndef SvUV
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6480
+#  define SvUV(sv)                       (SvIOK(sv) ? SvUVX(sv) : sv_2uv(sv))
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6481
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6482
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6483
+#ifndef SvUVx
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6484
+#  define SvUVx(sv)                      ((PL_Sv = (sv)), SvUV(PL_Sv))
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6485
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6486
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6487
+/* Hint: sv_uv
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6488
+ * Always use the SvUVx() macro instead of sv_uv().
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6489
+ */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6490
+#ifndef sv_uv
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6491
+#  define sv_uv(sv)                      SvUVx(sv)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6492
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6493
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6494
+#if !defined(SvUOK) && defined(SvIOK_UV)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6495
+#  define SvUOK(sv) SvIOK_UV(sv)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6496
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6497
+#ifndef XST_mUV
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6498
+#  define XST_mUV(i,v)                   (ST(i) = sv_2mortal(newSVuv(v))  )
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6499
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6500
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6501
+#ifndef XSRETURN_UV
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6502
+#  define XSRETURN_UV(v)                 STMT_START { XST_mUV(0,v);  XSRETURN(1); } STMT_END
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6503
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6504
+#ifndef PUSHu
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6505
+#  define PUSHu(u)                       STMT_START { sv_setuv(TARG, (UV)(u)); PUSHTARG;  } STMT_END
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6506
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6507
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6508
+#ifndef XPUSHu
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6509
+#  define XPUSHu(u)                      STMT_START { sv_setuv(TARG, (UV)(u)); XPUSHTARG; } STMT_END
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6510
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6511
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6512
+#ifdef HAS_MEMCMP
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6513
+#ifndef memNE
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6514
+#  define memNE(s1,s2,l)                 (memcmp(s1,s2,l))
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6515
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6516
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6517
+#ifndef memEQ
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6518
+#  define memEQ(s1,s2,l)                 (!memcmp(s1,s2,l))
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6519
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6520
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6521
+#else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6522
+#ifndef memNE
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6523
+#  define memNE(s1,s2,l)                 (bcmp(s1,s2,l))
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6524
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6525
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6526
+#ifndef memEQ
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6527
+#  define memEQ(s1,s2,l)                 (!bcmp(s1,s2,l))
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6528
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6529
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6530
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6531
+#ifndef memEQs
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6532
+#  define memEQs(s1, l, s2)              \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6533
+                   (sizeof(s2)-1 == l && memEQ(s1, (s2 ""), (sizeof(s2)-1)))
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6534
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6535
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6536
+#ifndef memNEs
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6537
+#  define memNEs(s1, l, s2)              !memEQs(s1, l, s2)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6538
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6539
+#ifndef MoveD
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6540
+#  define MoveD(s,d,n,t)                 memmove((char*)(d),(char*)(s), (n) * sizeof(t))
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6541
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6542
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6543
+#ifndef CopyD
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6544
+#  define CopyD(s,d,n,t)                 memcpy((char*)(d),(char*)(s), (n) * sizeof(t))
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6545
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6546
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6547
+#ifdef HAS_MEMSET
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6548
+#ifndef ZeroD
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6549
+#  define ZeroD(d,n,t)                   memzero((char*)(d), (n) * sizeof(t))
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6550
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6551
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6552
+#else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6553
+#ifndef ZeroD
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6554
+#  define ZeroD(d,n,t)                   ((void)memzero((char*)(d), (n) * sizeof(t)), d)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6555
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6556
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6557
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6558
+#ifndef PoisonWith
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6559
+#  define PoisonWith(d,n,t,b)            (void)memset((char*)(d), (U8)(b), (n) * sizeof(t))
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6560
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6561
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6562
+#ifndef PoisonNew
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6563
+#  define PoisonNew(d,n,t)               PoisonWith(d,n,t,0xAB)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6564
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6565
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6566
+#ifndef PoisonFree
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6567
+#  define PoisonFree(d,n,t)              PoisonWith(d,n,t,0xEF)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6568
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6569
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6570
+#ifndef Poison
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6571
+#  define Poison(d,n,t)                  PoisonFree(d,n,t)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6572
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6573
+#ifndef Newx
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6574
+#  define Newx(v,n,t)                    New(0,v,n,t)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6575
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6576
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6577
+#ifndef Newxc
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6578
+#  define Newxc(v,n,t,c)                 Newc(0,v,n,t,c)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6579
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6580
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6581
+#ifndef Newxz
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6582
+#  define Newxz(v,n,t)                   Newz(0,v,n,t)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6583
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6584
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6585
+#ifndef PERL_UNUSED_DECL
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6586
+#  ifdef HASATTRIBUTE
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6587
+#    if (defined(__GNUC__) && defined(__cplusplus)) || defined(__INTEL_COMPILER)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6588
+#      define PERL_UNUSED_DECL
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6589
+#    else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6590
+#      define PERL_UNUSED_DECL __attribute__((unused))
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6591
+#    endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6592
+#  else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6593
+#    define PERL_UNUSED_DECL
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6594
+#  endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6595
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6596
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6597
+#ifndef PERL_UNUSED_ARG
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6598
+#  if defined(lint) && defined(S_SPLINT_S) /* www.splint.org */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6599
+#    include <note.h>
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6600
+#    define PERL_UNUSED_ARG(x) NOTE(ARGUNUSED(x))
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6601
+#  else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6602
+#    define PERL_UNUSED_ARG(x) ((void)x)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6603
+#  endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6604
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6605
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6606
+#ifndef PERL_UNUSED_VAR
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6607
+#  define PERL_UNUSED_VAR(x) ((void)x)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6608
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6609
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6610
+#ifndef PERL_UNUSED_CONTEXT
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6611
+#  ifdef USE_ITHREADS
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6612
+#    define PERL_UNUSED_CONTEXT PERL_UNUSED_ARG(my_perl)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6613
+#  else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6614
+#    define PERL_UNUSED_CONTEXT
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6615
+#  endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6616
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6617
+#ifndef NOOP
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6618
+#  define NOOP                           /*EMPTY*/(void)0
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6619
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6620
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6621
+#ifndef dNOOP
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6622
+#  define dNOOP                          extern int /*@unused@*/ Perl___notused PERL_UNUSED_DECL
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6623
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6624
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6625
+#ifndef NVTYPE
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6626
+#  if defined(USE_LONG_DOUBLE) && defined(HAS_LONG_DOUBLE)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6627
+#    define NVTYPE long double
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6628
+#  else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6629
+#    define NVTYPE double
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6630
+#  endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6631
+typedef NVTYPE NV;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6632
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6633
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6634
+#ifndef INT2PTR
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6635
+#  if (IVSIZE == PTRSIZE) && (UVSIZE == PTRSIZE)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6636
+#    define PTRV                  UV
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6637
+#    define INT2PTR(any,d)        (any)(d)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6638
+#  else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6639
+#    if PTRSIZE == LONGSIZE
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6640
+#      define PTRV                unsigned long
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6641
+#    else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6642
+#      define PTRV                unsigned
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6643
+#    endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6644
+#    define INT2PTR(any,d)        (any)(PTRV)(d)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6645
+#  endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6646
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6647
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6648
+#ifndef PTR2ul
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6649
+#  if PTRSIZE == LONGSIZE
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6650
+#    define PTR2ul(p)     (unsigned long)(p)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6651
+#  else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6652
+#    define PTR2ul(p)     INT2PTR(unsigned long,p)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6653
+#  endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6654
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6655
+#ifndef PTR2nat
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6656
+#  define PTR2nat(p)                     (PTRV)(p)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6657
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6658
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6659
+#ifndef NUM2PTR
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6660
+#  define NUM2PTR(any,d)                 (any)PTR2nat(d)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6661
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6662
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6663
+#ifndef PTR2IV
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6664
+#  define PTR2IV(p)                      INT2PTR(IV,p)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6665
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6666
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6667
+#ifndef PTR2UV
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6668
+#  define PTR2UV(p)                      INT2PTR(UV,p)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6669
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6670
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6671
+#ifndef PTR2NV
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6672
+#  define PTR2NV(p)                      NUM2PTR(NV,p)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6673
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6674
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6675
+#undef START_EXTERN_C
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6676
+#undef END_EXTERN_C
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6677
+#undef EXTERN_C
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6678
+#ifdef __cplusplus
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6679
+#  define START_EXTERN_C extern "C" {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6680
+#  define END_EXTERN_C }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6681
+#  define EXTERN_C extern "C"
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6682
+#else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6683
+#  define START_EXTERN_C
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6684
+#  define END_EXTERN_C
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6685
+#  define EXTERN_C extern
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6686
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6687
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6688
+#if defined(PERL_GCC_PEDANTIC)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6689
+#  ifndef PERL_GCC_BRACE_GROUPS_FORBIDDEN
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6690
+#    define PERL_GCC_BRACE_GROUPS_FORBIDDEN
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6691
+#  endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6692
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6693
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6694
+#if defined(__GNUC__) && !defined(PERL_GCC_BRACE_GROUPS_FORBIDDEN) && !defined(__cplusplus)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6695
+#  ifndef PERL_USE_GCC_BRACE_GROUPS
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6696
+#    define PERL_USE_GCC_BRACE_GROUPS
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6697
+#  endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6698
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6699
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6700
+#undef STMT_START
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6701
+#undef STMT_END
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6702
+#ifdef PERL_USE_GCC_BRACE_GROUPS
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6703
+#  define STMT_START    (void)( /* gcc supports ``({ STATEMENTS; })'' */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6704
+#  define STMT_END      )
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6705
+#else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6706
+#  if defined(VOIDFLAGS) && (VOIDFLAGS) && (defined(sun) || defined(__sun__)) && !defined(__GNUC__)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6707
+#    define STMT_START  if (1)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6708
+#    define STMT_END    else (void)0
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6709
+#  else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6710
+#    define STMT_START  do
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6711
+#    define STMT_END    while (0)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6712
+#  endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6713
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6714
+#ifndef boolSV
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6715
+#  define boolSV(b)                      ((b) ? &PL_sv_yes : &PL_sv_no)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6716
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6717
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6718
+/* DEFSV appears first in 5.004_56 */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6719
+#ifndef DEFSV
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6720
+#  define DEFSV                          GvSV(PL_defgv)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6721
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6722
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6723
+#ifndef SAVE_DEFSV
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6724
+#  define SAVE_DEFSV                     SAVESPTR(GvSV(PL_defgv))
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6725
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6726
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6727
+#ifndef DEFSV_set
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6728
+#  define DEFSV_set(sv)                  (DEFSV = (sv))
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6729
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6730
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6731
+/* Older perls (<=5.003) lack AvFILLp */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6732
+#ifndef AvFILLp
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6733
+#  define AvFILLp                        AvFILL
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6734
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6735
+#ifndef ERRSV
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6736
+#  define ERRSV                          get_sv("@",FALSE)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6737
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6738
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6739
+/* Hint: gv_stashpvn
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6740
+ * This function's backport doesn't support the length parameter, but
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6741
+ * rather ignores it. Portability can only be ensured if the length
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6742
+ * parameter is used for speed reasons, but the length can always be
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6743
+ * correctly computed from the string argument.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6744
+ */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6745
+#ifndef gv_stashpvn
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6746
+#  define gv_stashpvn(str,len,create)    gv_stashpv(str,create)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6747
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6748
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6749
+/* Replace: 1 */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6750
+#ifndef get_cv
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6751
+#  define get_cv                         perl_get_cv
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6752
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6753
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6754
+#ifndef get_sv
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6755
+#  define get_sv                         perl_get_sv
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6756
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6757
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6758
+#ifndef get_av
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6759
+#  define get_av                         perl_get_av
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6760
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6761
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6762
+#ifndef get_hv
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6763
+#  define get_hv                         perl_get_hv
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6764
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6765
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6766
+/* Replace: 0 */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6767
+#ifndef dUNDERBAR
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6768
+#  define dUNDERBAR                      dNOOP
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6769
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6770
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6771
+#ifndef UNDERBAR
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6772
+#  define UNDERBAR                       DEFSV
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6773
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6774
+#ifndef dAX
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6775
+#  define dAX                            I32 ax = MARK - PL_stack_base + 1
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6776
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6777
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6778
+#ifndef dITEMS
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6779
+#  define dITEMS                         I32 items = SP - MARK
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6780
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6781
+#ifndef dXSTARG
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6782
+#  define dXSTARG                        SV * targ = sv_newmortal()
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6783
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6784
+#ifndef dAXMARK
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6785
+#  define dAXMARK                        I32 ax = POPMARK; \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6786
+                               register SV ** const mark = PL_stack_base + ax++
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6787
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6788
+#ifndef XSprePUSH
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6789
+#  define XSprePUSH                      (sp = PL_stack_base + ax - 1)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6790
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6791
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6792
+#if (PERL_BCDVERSION < 0x5005000)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6793
+#  undef XSRETURN
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6794
+#  define XSRETURN(off)                                   \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6795
+      STMT_START {                                        \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6796
+          PL_stack_sp = PL_stack_base + ax + ((off) - 1); \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6797
+          return;                                         \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6798
+      } STMT_END
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6799
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6800
+#ifndef XSPROTO
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6801
+#  define XSPROTO(name)                  void name(pTHX_ CV* cv)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6802
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6803
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6804
+#ifndef SVfARG
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6805
+#  define SVfARG(p)                      ((void*)(p))
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6806
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6807
+#ifndef PERL_ABS
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6808
+#  define PERL_ABS(x)                    ((x) < 0 ? -(x) : (x))
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6809
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6810
+#ifndef dVAR
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6811
+#  define dVAR                           dNOOP
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6812
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6813
+#ifndef SVf
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6814
+#  define SVf                            "_"
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6815
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6816
+#ifndef UTF8_MAXBYTES
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6817
+#  define UTF8_MAXBYTES                  UTF8_MAXLEN
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6818
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6819
+#ifndef CPERLscope
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6820
+#  define CPERLscope(x)                  x
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6821
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6822
+#ifndef PERL_HASH
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6823
+#  define PERL_HASH(hash,str,len)        \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6824
+     STMT_START { \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6825
+        const char *s_PeRlHaSh = str; \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6826
+        I32 i_PeRlHaSh = len; \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6827
+        U32 hash_PeRlHaSh = 0; \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6828
+        while (i_PeRlHaSh--) \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6829
+            hash_PeRlHaSh = hash_PeRlHaSh * 33 + *s_PeRlHaSh++; \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6830
+        (hash) = hash_PeRlHaSh; \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6831
+    } STMT_END
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6832
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6833
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6834
+#ifndef PERLIO_FUNCS_DECL
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6835
+# ifdef PERLIO_FUNCS_CONST
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6836
+#  define PERLIO_FUNCS_DECL(funcs) const PerlIO_funcs funcs
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6837
+#  define PERLIO_FUNCS_CAST(funcs) (PerlIO_funcs*)(funcs)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6838
+# else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6839
+#  define PERLIO_FUNCS_DECL(funcs) PerlIO_funcs funcs
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6840
+#  define PERLIO_FUNCS_CAST(funcs) (funcs)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6841
+# endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6842
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6843
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6844
+/* provide these typedefs for older perls */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6845
+#if (PERL_BCDVERSION < 0x5009003)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6846
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6847
+# ifdef ARGSproto
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6848
+typedef OP* (CPERLscope(*Perl_ppaddr_t))(ARGSproto);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6849
+# else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6850
+typedef OP* (CPERLscope(*Perl_ppaddr_t))(pTHX);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6851
+# endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6852
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6853
+typedef OP* (CPERLscope(*Perl_check_t)) (pTHX_ OP*);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6854
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6855
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6856
+#ifndef isPSXSPC
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6857
+#  define isPSXSPC(c)                    (isSPACE(c) || (c) == '\v')
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6858
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6859
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6860
+#ifndef isBLANK
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6861
+#  define isBLANK(c)                     ((c) == ' ' || (c) == '\t')
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6862
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6863
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6864
+#ifdef EBCDIC
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6865
+#ifndef isALNUMC
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6866
+#  define isALNUMC(c)                    isalnum(c)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6867
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6868
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6869
+#ifndef isASCII
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6870
+#  define isASCII(c)                     isascii(c)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6871
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6872
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6873
+#ifndef isCNTRL
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6874
+#  define isCNTRL(c)                     iscntrl(c)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6875
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6876
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6877
+#ifndef isGRAPH
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6878
+#  define isGRAPH(c)                     isgraph(c)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6879
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6880
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6881
+#ifndef isPRINT
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6882
+#  define isPRINT(c)                     isprint(c)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6883
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6884
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6885
+#ifndef isPUNCT
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6886
+#  define isPUNCT(c)                     ispunct(c)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6887
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6888
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6889
+#ifndef isXDIGIT
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6890
+#  define isXDIGIT(c)                    isxdigit(c)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6891
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6892
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6893
+#else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6894
+# if (PERL_BCDVERSION < 0x5010000)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6895
+/* Hint: isPRINT
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6896
+ * The implementation in older perl versions includes all of the
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6897
+ * isSPACE() characters, which is wrong. The version provided by
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6898
+ * Devel::PPPort always overrides a present buggy version.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6899
+ */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6900
+#  undef isPRINT
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6901
+# endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6902
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6903
+#ifdef HAS_QUAD
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6904
+# define WIDEST_UTYPE U64TYPE
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6905
+#else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6906
+# define WIDEST_UTYPE U32
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6907
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6908
+#ifndef isALNUMC
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6909
+#  define isALNUMC(c)                    (isALPHA(c) || isDIGIT(c))
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6910
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6911
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6912
+#ifndef isASCII
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6913
+#  define isASCII(c)                     ((WIDEST_UTYPE) (c) <= 127)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6914
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6915
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6916
+#ifndef isCNTRL
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6917
+#  define isCNTRL(c)                     ((WIDEST_UTYPE) (c) < ' ' || (c) == 127)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6918
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6919
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6920
+#ifndef isGRAPH
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6921
+#  define isGRAPH(c)                     (isALNUM(c) || isPUNCT(c))
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6922
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6923
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6924
+#ifndef isPRINT
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6925
+#  define isPRINT(c)                     (((c) >= 32 && (c) < 127))
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6926
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6927
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6928
+#ifndef isPUNCT
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6929
+#  define isPUNCT(c)                     (((c) >= 33 && (c) <= 47) || ((c) >= 58 && (c) <= 64)  || ((c) >= 91 && (c) <= 96) || ((c) >= 123 && (c) <= 126))
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6930
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6931
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6932
+#ifndef isXDIGIT
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6933
+#  define isXDIGIT(c)                    (isDIGIT(c) || ((c) >= 'a' && (c) <= 'f') || ((c) >= 'A' && (c) <= 'F'))
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6934
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6935
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6936
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6937
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6938
+#ifndef PERL_SIGNALS_UNSAFE_FLAG
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6939
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6940
+#define PERL_SIGNALS_UNSAFE_FLAG 0x0001
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6941
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6942
+#if (PERL_BCDVERSION < 0x5008000)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6943
+#  define D_PPP_PERL_SIGNALS_INIT   PERL_SIGNALS_UNSAFE_FLAG
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6944
+#else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6945
+#  define D_PPP_PERL_SIGNALS_INIT   0
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6946
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6947
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6948
+#if defined(NEED_PL_signals)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6949
+static U32 DPPP_(my_PL_signals) = D_PPP_PERL_SIGNALS_INIT;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6950
+#elif defined(NEED_PL_signals_GLOBAL)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6951
+U32 DPPP_(my_PL_signals) = D_PPP_PERL_SIGNALS_INIT;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6952
+#else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6953
+extern U32 DPPP_(my_PL_signals);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6954
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6955
+#define PL_signals DPPP_(my_PL_signals)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6956
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6957
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6958
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6959
+/* Hint: PL_ppaddr
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6960
+ * Calling an op via PL_ppaddr requires passing a context argument
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6961
+ * for threaded builds. Since the context argument is different for
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6962
+ * 5.005 perls, you can use aTHXR (supplied by ppport.h), which will
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6963
+ * automatically be defined as the correct argument.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6964
+ */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6965
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6966
+#if (PERL_BCDVERSION <= 0x5005005)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6967
+/* Replace: 1 */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6968
+#  define PL_ppaddr                 ppaddr
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6969
+#  define PL_no_modify              no_modify
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6970
+/* Replace: 0 */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6971
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6972
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6973
+#if (PERL_BCDVERSION <= 0x5004005)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6974
+/* Replace: 1 */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6975
+#  define PL_DBsignal               DBsignal
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6976
+#  define PL_DBsingle               DBsingle
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6977
+#  define PL_DBsub                  DBsub
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6978
+#  define PL_DBtrace                DBtrace
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6979
+#  define PL_Sv                     Sv
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6980
+#  define PL_bufend                 bufend
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6981
+#  define PL_bufptr                 bufptr
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6982
+#  define PL_compiling              compiling
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6983
+#  define PL_copline                copline
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6984
+#  define PL_curcop                 curcop
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6985
+#  define PL_curstash               curstash
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6986
+#  define PL_debstash               debstash
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6987
+#  define PL_defgv                  defgv
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6988
+#  define PL_diehook                diehook
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6989
+#  define PL_dirty                  dirty
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6990
+#  define PL_dowarn                 dowarn
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6991
+#  define PL_errgv                  errgv
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6992
+#  define PL_error_count            error_count
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6993
+#  define PL_expect                 expect
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6994
+#  define PL_hexdigit               hexdigit
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6995
+#  define PL_hints                  hints
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6996
+#  define PL_in_my                  in_my
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6997
+#  define PL_laststatval            laststatval
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6998
+#  define PL_lex_state              lex_state
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  6999
+#  define PL_lex_stuff              lex_stuff
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7000
+#  define PL_linestr                linestr
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7001
+#  define PL_na                     na
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7002
+#  define PL_perl_destruct_level    perl_destruct_level
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7003
+#  define PL_perldb                 perldb
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7004
+#  define PL_rsfp_filters           rsfp_filters
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7005
+#  define PL_rsfp                   rsfp
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7006
+#  define PL_stack_base             stack_base
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7007
+#  define PL_stack_sp               stack_sp
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7008
+#  define PL_statcache              statcache
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7009
+#  define PL_stdingv                stdingv
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7010
+#  define PL_sv_arenaroot           sv_arenaroot
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7011
+#  define PL_sv_no                  sv_no
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7012
+#  define PL_sv_undef               sv_undef
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7013
+#  define PL_sv_yes                 sv_yes
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7014
+#  define PL_tainted                tainted
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7015
+#  define PL_tainting               tainting
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7016
+#  define PL_tokenbuf               tokenbuf
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7017
+/* Replace: 0 */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7018
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7019
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7020
+/* Warning: PL_parser
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7021
+ * For perl versions earlier than 5.9.5, this is an always
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7022
+ * non-NULL dummy. Also, it cannot be dereferenced. Don't
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7023
+ * use it if you can avoid is and unless you absolutely know
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7024
+ * what you're doing.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7025
+ * If you always check that PL_parser is non-NULL, you can
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7026
+ * define DPPP_PL_parser_NO_DUMMY to avoid the creation of
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7027
+ * a dummy parser structure.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7028
+ */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7029
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7030
+#if (PERL_BCDVERSION >= 0x5009005)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7031
+# ifdef DPPP_PL_parser_NO_DUMMY
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7032
+#  define D_PPP_my_PL_parser_var(var) ((PL_parser ? PL_parser : \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7033
+                (croak("panic: PL_parser == NULL in %s:%d", \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7034
+                       __FILE__, __LINE__), (yy_parser *) NULL))->var)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7035
+# else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7036
+#  ifdef DPPP_PL_parser_NO_DUMMY_WARNING
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7037
+#   define D_PPP_parser_dummy_warning(var)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7038
+#  else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7039
+#   define D_PPP_parser_dummy_warning(var) \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7040
+             warn("warning: dummy PL_" #var " used in %s:%d", __FILE__, __LINE__),
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7041
+#  endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7042
+#  define D_PPP_my_PL_parser_var(var) ((PL_parser ? PL_parser : \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7043
+                (D_PPP_parser_dummy_warning(var) &DPPP_(dummy_PL_parser)))->var)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7044
+#if defined(NEED_PL_parser)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7045
+static yy_parser DPPP_(dummy_PL_parser);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7046
+#elif defined(NEED_PL_parser_GLOBAL)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7047
+yy_parser DPPP_(dummy_PL_parser);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7048
+#else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7049
+extern yy_parser DPPP_(dummy_PL_parser);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7050
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7051
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7052
+# endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7053
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7054
+/* 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 */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7055
+/* Warning: PL_expect, PL_copline, PL_rsfp, PL_rsfp_filters, PL_linestr, PL_bufptr, PL_bufend, PL_lex_state, PL_lex_stuff, PL_tokenbuf
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7056
+ * Do not use this variable unless you know exactly what you're
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7057
+ * doint. It is internal to the perl parser and may change or even
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7058
+ * be removed in the future. As of perl 5.9.5, you have to check
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7059
+ * for (PL_parser != NULL) for this variable to have any effect.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7060
+ * An always non-NULL PL_parser dummy is provided for earlier
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7061
+ * perl versions.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7062
+ * If PL_parser is NULL when you try to access this variable, a
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7063
+ * dummy is being accessed instead and a warning is issued unless
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7064
+ * you define DPPP_PL_parser_NO_DUMMY_WARNING.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7065
+ * If DPPP_PL_parser_NO_DUMMY is defined, the code trying to access
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7066
+ * this variable will croak with a panic message.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7067
+ */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7068
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7069
+# define PL_expect         D_PPP_my_PL_parser_var(expect)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7070
+# define PL_copline        D_PPP_my_PL_parser_var(copline)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7071
+# define PL_rsfp           D_PPP_my_PL_parser_var(rsfp)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7072
+# define PL_rsfp_filters   D_PPP_my_PL_parser_var(rsfp_filters)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7073
+# define PL_linestr        D_PPP_my_PL_parser_var(linestr)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7074
+# define PL_bufptr         D_PPP_my_PL_parser_var(bufptr)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7075
+# define PL_bufend         D_PPP_my_PL_parser_var(bufend)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7076
+# define PL_lex_state      D_PPP_my_PL_parser_var(lex_state)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7077
+# define PL_lex_stuff      D_PPP_my_PL_parser_var(lex_stuff)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7078
+# define PL_tokenbuf       D_PPP_my_PL_parser_var(tokenbuf)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7079
+# define PL_in_my          D_PPP_my_PL_parser_var(in_my)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7080
+# define PL_in_my_stash    D_PPP_my_PL_parser_var(in_my_stash)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7081
+# define PL_error_count    D_PPP_my_PL_parser_var(error_count)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7082
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7083
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7084
+#else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7085
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7086
+/* ensure that PL_parser != NULL and cannot be dereferenced */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7087
+# define PL_parser         ((void *) 1)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7088
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7089
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7090
+#ifndef mPUSHs
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7091
+#  define mPUSHs(s)                      PUSHs(sv_2mortal(s))
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7092
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7093
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7094
+#ifndef PUSHmortal
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7095
+#  define PUSHmortal                     PUSHs(sv_newmortal())
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7096
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7097
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7098
+#ifndef mPUSHp
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7099
+#  define mPUSHp(p,l)                    sv_setpvn(PUSHmortal, (p), (l))
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7100
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7101
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7102
+#ifndef mPUSHn
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7103
+#  define mPUSHn(n)                      sv_setnv(PUSHmortal, (NV)(n))
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7104
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7105
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7106
+#ifndef mPUSHi
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7107
+#  define mPUSHi(i)                      sv_setiv(PUSHmortal, (IV)(i))
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7108
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7109
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7110
+#ifndef mPUSHu
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7111
+#  define mPUSHu(u)                      sv_setuv(PUSHmortal, (UV)(u))
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7112
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7113
+#ifndef mXPUSHs
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7114
+#  define mXPUSHs(s)                     XPUSHs(sv_2mortal(s))
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7115
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7116
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7117
+#ifndef XPUSHmortal
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7118
+#  define XPUSHmortal                    XPUSHs(sv_newmortal())
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7119
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7120
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7121
+#ifndef mXPUSHp
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7122
+#  define mXPUSHp(p,l)                   STMT_START { EXTEND(sp,1); sv_setpvn(PUSHmortal, (p), (l)); } STMT_END
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7123
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7124
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7125
+#ifndef mXPUSHn
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7126
+#  define mXPUSHn(n)                     STMT_START { EXTEND(sp,1); sv_setnv(PUSHmortal, (NV)(n)); } STMT_END
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7127
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7128
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7129
+#ifndef mXPUSHi
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7130
+#  define mXPUSHi(i)                     STMT_START { EXTEND(sp,1); sv_setiv(PUSHmortal, (IV)(i)); } STMT_END
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7131
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7132
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7133
+#ifndef mXPUSHu
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7134
+#  define mXPUSHu(u)                     STMT_START { EXTEND(sp,1); sv_setuv(PUSHmortal, (UV)(u)); } STMT_END
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7135
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7136
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7137
+/* Replace: 1 */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7138
+#ifndef call_sv
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7139
+#  define call_sv                        perl_call_sv
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7140
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7141
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7142
+#ifndef call_pv
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7143
+#  define call_pv                        perl_call_pv
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7144
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7145
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7146
+#ifndef call_argv
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7147
+#  define call_argv                      perl_call_argv
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7148
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7149
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7150
+#ifndef call_method
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7151
+#  define call_method                    perl_call_method
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7152
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7153
+#ifndef eval_sv
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7154
+#  define eval_sv                        perl_eval_sv
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7155
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7156
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7157
+/* Replace: 0 */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7158
+#ifndef PERL_LOADMOD_DENY
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7159
+#  define PERL_LOADMOD_DENY              0x1
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7160
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7161
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7162
+#ifndef PERL_LOADMOD_NOIMPORT
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7163
+#  define PERL_LOADMOD_NOIMPORT          0x2
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7164
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7165
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7166
+#ifndef PERL_LOADMOD_IMPORT_OPS
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7167
+#  define PERL_LOADMOD_IMPORT_OPS        0x4
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7168
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7169
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7170
+#ifndef G_METHOD
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7171
+# define G_METHOD               64
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7172
+# ifdef call_sv
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7173
+#  undef call_sv
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7174
+# endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7175
+# if (PERL_BCDVERSION < 0x5006000)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7176
+#  define call_sv(sv, flags)  ((flags) & G_METHOD ? perl_call_method((char *) SvPV_nolen_const(sv), \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7177
+                                (flags) & ~G_METHOD) : perl_call_sv(sv, flags))
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7178
+# else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7179
+#  define call_sv(sv, flags)  ((flags) & G_METHOD ? Perl_call_method(aTHX_ (char *) SvPV_nolen_const(sv), \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7180
+                                (flags) & ~G_METHOD) : Perl_call_sv(aTHX_ sv, flags))
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7181
+# endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7182
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7183
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7184
+/* Replace perl_eval_pv with eval_pv */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7185
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7186
+#ifndef eval_pv
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7187
+#if defined(NEED_eval_pv)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7188
+static SV* DPPP_(my_eval_pv)(char *p, I32 croak_on_error);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7189
+static
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7190
+#else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7191
+extern SV* DPPP_(my_eval_pv)(char *p, I32 croak_on_error);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7192
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7193
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7194
+#ifdef eval_pv
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7195
+#  undef eval_pv
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7196
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7197
+#define eval_pv(a,b) DPPP_(my_eval_pv)(aTHX_ a,b)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7198
+#define Perl_eval_pv DPPP_(my_eval_pv)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7199
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7200
+#if defined(NEED_eval_pv) || defined(NEED_eval_pv_GLOBAL)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7201
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7202
+SV*
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7203
+DPPP_(my_eval_pv)(char *p, I32 croak_on_error)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7204
+{
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7205
+    dSP;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7206
+    SV* sv = newSVpv(p, 0);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7207
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7208
+    PUSHMARK(sp);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7209
+    eval_sv(sv, G_SCALAR);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7210
+    SvREFCNT_dec(sv);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7211
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7212
+    SPAGAIN;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7213
+    sv = POPs;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7214
+    PUTBACK;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7215
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7216
+    if (croak_on_error && SvTRUE(GvSV(errgv)))
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7217
+        croak(SvPVx(GvSV(errgv), na));
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7218
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7219
+    return sv;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7220
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7221
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7222
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7223
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7224
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7225
+#ifndef vload_module
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7226
+#if defined(NEED_vload_module)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7227
+static void DPPP_(my_vload_module)(U32 flags, SV *name, SV *ver, va_list *args);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7228
+static
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7229
+#else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7230
+extern void DPPP_(my_vload_module)(U32 flags, SV *name, SV *ver, va_list *args);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7231
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7232
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7233
+#ifdef vload_module
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7234
+#  undef vload_module
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7235
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7236
+#define vload_module(a,b,c,d) DPPP_(my_vload_module)(aTHX_ a,b,c,d)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7237
+#define Perl_vload_module DPPP_(my_vload_module)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7238
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7239
+#if defined(NEED_vload_module) || defined(NEED_vload_module_GLOBAL)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7240
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7241
+void
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7242
+DPPP_(my_vload_module)(U32 flags, SV *name, SV *ver, va_list *args)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7243
+{
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7244
+    dTHR;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7245
+    dVAR;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7246
+    OP *veop, *imop;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7247
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7248
+    OP * const modname = newSVOP(OP_CONST, 0, name);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7249
+    /* 5.005 has a somewhat hacky force_normal that doesn't croak on
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7250
+       SvREADONLY() if PL_compling is true. Current perls take care in
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7251
+       ck_require() to correctly turn off SvREADONLY before calling
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7252
+       force_normal_flags(). This seems a better fix than fudging PL_compling
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7253
+     */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7254
+    SvREADONLY_off(((SVOP*)modname)->op_sv);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7255
+    modname->op_private |= OPpCONST_BARE;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7256
+    if (ver) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7257
+        veop = newSVOP(OP_CONST, 0, ver);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7258
+    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7259
+    else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7260
+        veop = NULL;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7261
+    if (flags & PERL_LOADMOD_NOIMPORT) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7262
+        imop = sawparens(newNULLLIST());
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7263
+    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7264
+    else if (flags & PERL_LOADMOD_IMPORT_OPS) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7265
+        imop = va_arg(*args, OP*);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7266
+    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7267
+    else {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7268
+        SV *sv;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7269
+        imop = NULL;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7270
+        sv = va_arg(*args, SV*);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7271
+        while (sv) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7272
+            imop = append_elem(OP_LIST, imop, newSVOP(OP_CONST, 0, sv));
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7273
+            sv = va_arg(*args, SV*);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7274
+        }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7275
+    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7276
+    {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7277
+        const line_t ocopline = PL_copline;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7278
+        COP * const ocurcop = PL_curcop;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7279
+        const int oexpect = PL_expect;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7280
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7281
+#if (PERL_BCDVERSION >= 0x5004000)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7282
+        utilize(!(flags & PERL_LOADMOD_DENY), start_subparse(FALSE, 0),
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7283
+                veop, modname, imop);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7284
+#else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7285
+        utilize(!(flags & PERL_LOADMOD_DENY), start_subparse(),
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7286
+                modname, imop);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7287
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7288
+        PL_expect = oexpect;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7289
+        PL_copline = ocopline;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7290
+        PL_curcop = ocurcop;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7291
+    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7292
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7293
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7294
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7295
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7296
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7297
+#ifndef load_module
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7298
+#if defined(NEED_load_module)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7299
+static void DPPP_(my_load_module)(U32 flags, SV *name, SV *ver, ...);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7300
+static
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7301
+#else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7302
+extern void DPPP_(my_load_module)(U32 flags, SV *name, SV *ver, ...);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7303
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7304
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7305
+#ifdef load_module
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7306
+#  undef load_module
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7307
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7308
+#define load_module DPPP_(my_load_module)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7309
+#define Perl_load_module DPPP_(my_load_module)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7310
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7311
+#if defined(NEED_load_module) || defined(NEED_load_module_GLOBAL)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7312
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7313
+void
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7314
+DPPP_(my_load_module)(U32 flags, SV *name, SV *ver, ...)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7315
+{
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7316
+    va_list args;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7317
+    va_start(args, ver);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7318
+    vload_module(flags, name, ver, &args);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7319
+    va_end(args);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7320
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7321
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7322
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7323
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7324
+#ifndef newRV_inc
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7325
+#  define newRV_inc(sv)                  newRV(sv)   /* Replace */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7326
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7327
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7328
+#ifndef newRV_noinc
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7329
+#if defined(NEED_newRV_noinc)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7330
+static SV * DPPP_(my_newRV_noinc)(SV *sv);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7331
+static
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7332
+#else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7333
+extern SV * DPPP_(my_newRV_noinc)(SV *sv);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7334
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7335
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7336
+#ifdef newRV_noinc
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7337
+#  undef newRV_noinc
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7338
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7339
+#define newRV_noinc(a) DPPP_(my_newRV_noinc)(aTHX_ a)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7340
+#define Perl_newRV_noinc DPPP_(my_newRV_noinc)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7341
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7342
+#if defined(NEED_newRV_noinc) || defined(NEED_newRV_noinc_GLOBAL)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7343
+SV *
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7344
+DPPP_(my_newRV_noinc)(SV *sv)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7345
+{
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7346
+  SV *rv = (SV *)newRV(sv);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7347
+  SvREFCNT_dec(sv);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7348
+  return rv;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7349
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7350
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7351
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7352
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7353
+/* Hint: newCONSTSUB
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7354
+ * Returns a CV* as of perl-5.7.1. This return value is not supported
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7355
+ * by Devel::PPPort.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7356
+ */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7357
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7358
+/* newCONSTSUB from IO.xs is in the core starting with 5.004_63 */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7359
+#if (PERL_BCDVERSION < 0x5004063) && (PERL_BCDVERSION != 0x5004005)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7360
+#if defined(NEED_newCONSTSUB)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7361
+static void DPPP_(my_newCONSTSUB)(HV *stash, const char *name, SV *sv);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7362
+static
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7363
+#else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7364
+extern void DPPP_(my_newCONSTSUB)(HV *stash, const char *name, SV *sv);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7365
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7366
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7367
+#ifdef newCONSTSUB
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7368
+#  undef newCONSTSUB
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7369
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7370
+#define newCONSTSUB(a,b,c) DPPP_(my_newCONSTSUB)(aTHX_ a,b,c)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7371
+#define Perl_newCONSTSUB DPPP_(my_newCONSTSUB)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7372
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7373
+#if defined(NEED_newCONSTSUB) || defined(NEED_newCONSTSUB_GLOBAL)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7374
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7375
+/* This is just a trick to avoid a dependency of newCONSTSUB on PL_parser */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7376
+/* (There's no PL_parser in perl < 5.005, so this is completely safe)     */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7377
+#define D_PPP_PL_copline PL_copline
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7378
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7379
+void
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7380
+DPPP_(my_newCONSTSUB)(HV *stash, const char *name, SV *sv)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7381
+{
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7382
+        U32 oldhints = PL_hints;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7383
+        HV *old_cop_stash = PL_curcop->cop_stash;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7384
+        HV *old_curstash = PL_curstash;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7385
+        line_t oldline = PL_curcop->cop_line;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7386
+        PL_curcop->cop_line = D_PPP_PL_copline;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7387
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7388
+        PL_hints &= ~HINT_BLOCK_SCOPE;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7389
+        if (stash)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7390
+                PL_curstash = PL_curcop->cop_stash = stash;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7391
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7392
+        newSUB(
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7393
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7394
+#if   (PERL_BCDVERSION < 0x5003022)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7395
+                start_subparse(),
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7396
+#elif (PERL_BCDVERSION == 0x5003022)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7397
+                start_subparse(0),
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7398
+#else  /* 5.003_23  onwards */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7399
+                start_subparse(FALSE, 0),
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7400
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7401
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7402
+                newSVOP(OP_CONST, 0, newSVpv((char *) name, 0)),
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7403
+                newSVOP(OP_CONST, 0, &PL_sv_no),   /* SvPV(&PL_sv_no) == "" -- GMB */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7404
+                newSTATEOP(0, Nullch, newSVOP(OP_CONST, 0, sv))
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7405
+        );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7406
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7407
+        PL_hints = oldhints;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7408
+        PL_curcop->cop_stash = old_cop_stash;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7409
+        PL_curstash = old_curstash;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7410
+        PL_curcop->cop_line = oldline;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7411
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7412
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7413
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7414
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7415
+/*
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7416
+ * Boilerplate macros for initializing and accessing interpreter-local
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7417
+ * data from C.  All statics in extensions should be reworked to use
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7418
+ * this, if you want to make the extension thread-safe.  See ext/re/re.xs
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7419
+ * for an example of the use of these macros.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7420
+ *
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7421
+ * Code that uses these macros is responsible for the following:
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7422
+ * 1. #define MY_CXT_KEY to a unique string, e.g. "DynaLoader_guts"
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7423
+ * 2. Declare a typedef named my_cxt_t that is a structure that contains
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7424
+ *    all the data that needs to be interpreter-local.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7425
+ * 3. Use the START_MY_CXT macro after the declaration of my_cxt_t.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7426
+ * 4. Use the MY_CXT_INIT macro such that it is called exactly once
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7427
+ *    (typically put in the BOOT: section).
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7428
+ * 5. Use the members of the my_cxt_t structure everywhere as
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7429
+ *    MY_CXT.member.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7430
+ * 6. Use the dMY_CXT macro (a declaration) in all the functions that
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7431
+ *    access MY_CXT.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7432
+ */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7433
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7434
+#if defined(MULTIPLICITY) || defined(PERL_OBJECT) || \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7435
+    defined(PERL_CAPI)    || defined(PERL_IMPLICIT_CONTEXT)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7436
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7437
+#ifndef START_MY_CXT
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7438
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7439
+/* This must appear in all extensions that define a my_cxt_t structure,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7440
+ * right after the definition (i.e. at file scope).  The non-threads
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7441
+ * case below uses it to declare the data as static. */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7442
+#define START_MY_CXT
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7443
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7444
+#if (PERL_BCDVERSION < 0x5004068)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7445
+/* Fetches the SV that keeps the per-interpreter data. */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7446
+#define dMY_CXT_SV \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7447
+        SV *my_cxt_sv = get_sv(MY_CXT_KEY, FALSE)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7448
+#else /* >= perl5.004_68 */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7449
+#define dMY_CXT_SV \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7450
+        SV *my_cxt_sv = *hv_fetch(PL_modglobal, MY_CXT_KEY,             \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7451
+                                  sizeof(MY_CXT_KEY)-1, TRUE)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7452
+#endif /* < perl5.004_68 */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7453
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7454
+/* This declaration should be used within all functions that use the
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7455
+ * interpreter-local data. */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7456
+#define dMY_CXT \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7457
+        dMY_CXT_SV;                                                     \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7458
+        my_cxt_t *my_cxtp = INT2PTR(my_cxt_t*,SvUV(my_cxt_sv))
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7459
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7460
+/* Creates and zeroes the per-interpreter data.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7461
+ * (We allocate my_cxtp in a Perl SV so that it will be released when
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7462
+ * the interpreter goes away.) */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7463
+#define MY_CXT_INIT \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7464
+        dMY_CXT_SV;                                                     \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7465
+        /* newSV() allocates one more than needed */                    \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7466
+        my_cxt_t *my_cxtp = (my_cxt_t*)SvPVX(newSV(sizeof(my_cxt_t)-1));\
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7467
+        Zero(my_cxtp, 1, my_cxt_t);                                     \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7468
+        sv_setuv(my_cxt_sv, PTR2UV(my_cxtp))
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7469
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7470
+/* This macro must be used to access members of the my_cxt_t structure.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7471
+ * e.g. MYCXT.some_data */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7472
+#define MY_CXT          (*my_cxtp)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7473
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7474
+/* Judicious use of these macros can reduce the number of times dMY_CXT
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7475
+ * is used.  Use is similar to pTHX, aTHX etc. */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7476
+#define pMY_CXT         my_cxt_t *my_cxtp
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7477
+#define pMY_CXT_        pMY_CXT,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7478
+#define _pMY_CXT        ,pMY_CXT
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7479
+#define aMY_CXT         my_cxtp
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7480
+#define aMY_CXT_        aMY_CXT,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7481
+#define _aMY_CXT        ,aMY_CXT
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7482
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7483
+#endif /* START_MY_CXT */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7484
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7485
+#ifndef MY_CXT_CLONE
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7486
+/* Clones the per-interpreter data. */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7487
+#define MY_CXT_CLONE \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7488
+        dMY_CXT_SV;                                                     \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7489
+        my_cxt_t *my_cxtp = (my_cxt_t*)SvPVX(newSV(sizeof(my_cxt_t)-1));\
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7490
+        Copy(INT2PTR(my_cxt_t*, SvUV(my_cxt_sv)), my_cxtp, 1, my_cxt_t);\
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7491
+        sv_setuv(my_cxt_sv, PTR2UV(my_cxtp))
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7492
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7493
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7494
+#else /* single interpreter */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7495
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7496
+#ifndef START_MY_CXT
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7497
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7498
+#define START_MY_CXT    static my_cxt_t my_cxt;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7499
+#define dMY_CXT_SV      dNOOP
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7500
+#define dMY_CXT         dNOOP
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7501
+#define MY_CXT_INIT     NOOP
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7502
+#define MY_CXT          my_cxt
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7503
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7504
+#define pMY_CXT         void
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7505
+#define pMY_CXT_
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7506
+#define _pMY_CXT
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7507
+#define aMY_CXT
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7508
+#define aMY_CXT_
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7509
+#define _aMY_CXT
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7510
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7511
+#endif /* START_MY_CXT */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7512
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7513
+#ifndef MY_CXT_CLONE
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7514
+#define MY_CXT_CLONE    NOOP
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7515
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7516
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7517
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7518
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7519
+#ifndef IVdf
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7520
+#  if IVSIZE == LONGSIZE
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7521
+#    define     IVdf      "ld"
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7522
+#    define     UVuf      "lu"
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7523
+#    define     UVof      "lo"
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7524
+#    define     UVxf      "lx"
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7525
+#    define     UVXf      "lX"
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7526
+#  elif IVSIZE == INTSIZE
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7527
+#    define   IVdf      "d"
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7528
+#    define   UVuf      "u"
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7529
+#    define   UVof      "o"
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7530
+#    define   UVxf      "x"
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7531
+#    define   UVXf      "X"
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7532
+#  else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7533
+#    error "cannot define IV/UV formats"
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7534
+#  endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7535
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7536
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7537
+#ifndef NVef
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7538
+#  if defined(USE_LONG_DOUBLE) && defined(HAS_LONG_DOUBLE) && \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7539
+      defined(PERL_PRIfldbl) && (PERL_BCDVERSION != 0x5006000)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7540
+            /* Not very likely, but let's try anyway. */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7541
+#    define NVef          PERL_PRIeldbl
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7542
+#    define NVff          PERL_PRIfldbl
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7543
+#    define NVgf          PERL_PRIgldbl
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7544
+#  else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7545
+#    define NVef          "e"
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7546
+#    define NVff          "f"
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7547
+#    define NVgf          "g"
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7548
+#  endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7549
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7550
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7551
+#ifndef SvREFCNT_inc
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7552
+#  ifdef PERL_USE_GCC_BRACE_GROUPS
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7553
+#    define SvREFCNT_inc(sv)            \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7554
+      ({                                \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7555
+          SV * const _sv = (SV*)(sv);   \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7556
+          if (_sv)                      \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7557
+               (SvREFCNT(_sv))++;       \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7558
+          _sv;                          \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7559
+      })
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7560
+#  else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7561
+#    define SvREFCNT_inc(sv)    \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7562
+          ((PL_Sv=(SV*)(sv)) ? (++(SvREFCNT(PL_Sv)),PL_Sv) : NULL)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7563
+#  endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7564
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7565
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7566
+#ifndef SvREFCNT_inc_simple
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7567
+#  ifdef PERL_USE_GCC_BRACE_GROUPS
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7568
+#    define SvREFCNT_inc_simple(sv)     \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7569
+      ({                                        \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7570
+          if (sv)                               \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7571
+               (SvREFCNT(sv))++;                \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7572
+          (SV *)(sv);                           \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7573
+      })
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7574
+#  else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7575
+#    define SvREFCNT_inc_simple(sv) \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7576
+          ((sv) ? (SvREFCNT(sv)++,(SV*)(sv)) : NULL)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7577
+#  endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7578
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7579
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7580
+#ifndef SvREFCNT_inc_NN
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7581
+#  ifdef PERL_USE_GCC_BRACE_GROUPS
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7582
+#    define SvREFCNT_inc_NN(sv)         \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7583
+      ({                                        \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7584
+          SV * const _sv = (SV*)(sv);   \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7585
+          SvREFCNT(_sv)++;              \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7586
+          _sv;                          \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7587
+      })
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7588
+#  else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7589
+#    define SvREFCNT_inc_NN(sv) \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7590
+          (PL_Sv=(SV*)(sv),++(SvREFCNT(PL_Sv)),PL_Sv)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7591
+#  endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7592
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7593
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7594
+#ifndef SvREFCNT_inc_void
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7595
+#  ifdef PERL_USE_GCC_BRACE_GROUPS
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7596
+#    define SvREFCNT_inc_void(sv)               \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7597
+      ({                                        \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7598
+          SV * const _sv = (SV*)(sv);   \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7599
+          if (_sv)                      \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7600
+              (void)(SvREFCNT(_sv)++);  \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7601
+      })
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7602
+#  else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7603
+#    define SvREFCNT_inc_void(sv) \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7604
+          (void)((PL_Sv=(SV*)(sv)) ? ++(SvREFCNT(PL_Sv)) : 0)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7605
+#  endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7606
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7607
+#ifndef SvREFCNT_inc_simple_void
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7608
+#  define SvREFCNT_inc_simple_void(sv)   STMT_START { if (sv) SvREFCNT(sv)++; } STMT_END
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7609
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7610
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7611
+#ifndef SvREFCNT_inc_simple_NN
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7612
+#  define SvREFCNT_inc_simple_NN(sv)     (++SvREFCNT(sv), (SV*)(sv))
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7613
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7614
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7615
+#ifndef SvREFCNT_inc_void_NN
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7616
+#  define SvREFCNT_inc_void_NN(sv)       (void)(++SvREFCNT((SV*)(sv)))
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7617
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7618
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7619
+#ifndef SvREFCNT_inc_simple_void_NN
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7620
+#  define SvREFCNT_inc_simple_void_NN(sv) (void)(++SvREFCNT((SV*)(sv)))
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7621
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7622
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7623
+#ifndef newSV_type
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7624
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7625
+#if defined(NEED_newSV_type)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7626
+static SV* DPPP_(my_newSV_type)(pTHX_ svtype const t);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7627
+static
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7628
+#else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7629
+extern SV* DPPP_(my_newSV_type)(pTHX_ svtype const t);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7630
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7631
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7632
+#ifdef newSV_type
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7633
+#  undef newSV_type
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7634
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7635
+#define newSV_type(a) DPPP_(my_newSV_type)(aTHX_ a)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7636
+#define Perl_newSV_type DPPP_(my_newSV_type)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7637
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7638
+#if defined(NEED_newSV_type) || defined(NEED_newSV_type_GLOBAL)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7639
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7640
+SV*
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7641
+DPPP_(my_newSV_type)(pTHX_ svtype const t)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7642
+{
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7643
+  SV* const sv = newSV(0);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7644
+  sv_upgrade(sv, t);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7645
+  return sv;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7646
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7647
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7648
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7649
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7650
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7651
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7652
+#if (PERL_BCDVERSION < 0x5006000)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7653
+# define D_PPP_CONSTPV_ARG(x)  ((char *) (x))
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7654
+#else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7655
+# define D_PPP_CONSTPV_ARG(x)  (x)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7656
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7657
+#ifndef newSVpvn
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7658
+#  define newSVpvn(data,len)             ((data)                                              \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7659
+                                    ? ((len) ? newSVpv((data), (len)) : newSVpv("", 0)) \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7660
+                                    : newSV(0))
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7661
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7662
+#ifndef newSVpvn_utf8
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7663
+#  define newSVpvn_utf8(s, len, u)       newSVpvn_flags((s), (len), (u) ? SVf_UTF8 : 0)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7664
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7665
+#ifndef SVf_UTF8
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7666
+#  define SVf_UTF8                       0
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7667
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7668
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7669
+#ifndef newSVpvn_flags
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7670
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7671
+#if defined(NEED_newSVpvn_flags)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7672
+static SV * DPPP_(my_newSVpvn_flags)(pTHX_ const char *s, STRLEN len, U32 flags);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7673
+static
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7674
+#else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7675
+extern SV * DPPP_(my_newSVpvn_flags)(pTHX_ const char *s, STRLEN len, U32 flags);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7676
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7677
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7678
+#ifdef newSVpvn_flags
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7679
+#  undef newSVpvn_flags
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7680
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7681
+#define newSVpvn_flags(a,b,c) DPPP_(my_newSVpvn_flags)(aTHX_ a,b,c)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7682
+#define Perl_newSVpvn_flags DPPP_(my_newSVpvn_flags)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7683
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7684
+#if defined(NEED_newSVpvn_flags) || defined(NEED_newSVpvn_flags_GLOBAL)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7685
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7686
+SV *
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7687
+DPPP_(my_newSVpvn_flags)(pTHX_ const char *s, STRLEN len, U32 flags)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7688
+{
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7689
+  SV *sv = newSVpvn(D_PPP_CONSTPV_ARG(s), len);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7690
+  SvFLAGS(sv) |= (flags & SVf_UTF8);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7691
+  return (flags & SVs_TEMP) ? sv_2mortal(sv) : sv;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7692
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7693
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7694
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7695
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7696
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7697
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7698
+/* Backwards compatibility stuff... :-( */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7699
+#if !defined(NEED_sv_2pv_flags) && defined(NEED_sv_2pv_nolen)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7700
+#  define NEED_sv_2pv_flags
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7701
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7702
+#if !defined(NEED_sv_2pv_flags_GLOBAL) && defined(NEED_sv_2pv_nolen_GLOBAL)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7703
+#  define NEED_sv_2pv_flags_GLOBAL
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7704
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7705
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7706
+/* Hint: sv_2pv_nolen
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7707
+ * Use the SvPV_nolen() or SvPV_nolen_const() macros instead of sv_2pv_nolen().
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7708
+ */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7709
+#ifndef sv_2pv_nolen
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7710
+#  define sv_2pv_nolen(sv)               SvPV_nolen(sv)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7711
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7712
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7713
+#ifdef SvPVbyte
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7714
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7715
+/* Hint: SvPVbyte
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7716
+ * Does not work in perl-5.6.1, ppport.h implements a version
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7717
+ * borrowed from perl-5.7.3.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7718
+ */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7719
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7720
+#if (PERL_BCDVERSION < 0x5007000)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7721
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7722
+#if defined(NEED_sv_2pvbyte)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7723
+static char * DPPP_(my_sv_2pvbyte)(pTHX_ SV *sv, STRLEN *lp);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7724
+static
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7725
+#else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7726
+extern char * DPPP_(my_sv_2pvbyte)(pTHX_ SV *sv, STRLEN *lp);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7727
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7728
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7729
+#ifdef sv_2pvbyte
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7730
+#  undef sv_2pvbyte
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7731
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7732
+#define sv_2pvbyte(a,b) DPPP_(my_sv_2pvbyte)(aTHX_ a,b)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7733
+#define Perl_sv_2pvbyte DPPP_(my_sv_2pvbyte)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7734
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7735
+#if defined(NEED_sv_2pvbyte) || defined(NEED_sv_2pvbyte_GLOBAL)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7736
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7737
+char *
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7738
+DPPP_(my_sv_2pvbyte)(pTHX_ SV *sv, STRLEN *lp)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7739
+{
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7740
+  sv_utf8_downgrade(sv,0);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7741
+  return SvPV(sv,*lp);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7742
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7743
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7744
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7745
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7746
+/* Hint: sv_2pvbyte
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7747
+ * Use the SvPVbyte() macro instead of sv_2pvbyte().
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7748
+ */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7749
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7750
+#undef SvPVbyte
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7751
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7752
+#define SvPVbyte(sv, lp)                                                \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7753
+        ((SvFLAGS(sv) & (SVf_POK|SVf_UTF8)) == (SVf_POK)                \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7754
+         ? ((lp = SvCUR(sv)), SvPVX(sv)) : sv_2pvbyte(sv, &lp))
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7755
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7756
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7757
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7758
+#else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7759
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7760
+#  define SvPVbyte          SvPV
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7761
+#  define sv_2pvbyte        sv_2pv
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7762
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7763
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7764
+#ifndef sv_2pvbyte_nolen
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7765
+#  define sv_2pvbyte_nolen(sv)           sv_2pv_nolen(sv)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7766
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7767
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7768
+/* Hint: sv_pvn
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7769
+ * Always use the SvPV() macro instead of sv_pvn().
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7770
+ */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7771
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7772
+/* Hint: sv_pvn_force
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7773
+ * Always use the SvPV_force() macro instead of sv_pvn_force().
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7774
+ */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7775
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7776
+/* If these are undefined, they're not handled by the core anyway */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7777
+#ifndef SV_IMMEDIATE_UNREF
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7778
+#  define SV_IMMEDIATE_UNREF             0
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7779
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7780
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7781
+#ifndef SV_GMAGIC
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7782
+#  define SV_GMAGIC                      0
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7783
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7784
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7785
+#ifndef SV_COW_DROP_PV
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7786
+#  define SV_COW_DROP_PV                 0
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7787
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7788
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7789
+#ifndef SV_UTF8_NO_ENCODING
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7790
+#  define SV_UTF8_NO_ENCODING            0
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7791
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7792
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7793
+#ifndef SV_NOSTEAL
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7794
+#  define SV_NOSTEAL                     0
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7795
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7796
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7797
+#ifndef SV_CONST_RETURN
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7798
+#  define SV_CONST_RETURN                0
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7799
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7800
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7801
+#ifndef SV_MUTABLE_RETURN
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7802
+#  define SV_MUTABLE_RETURN              0
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7803
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7804
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7805
+#ifndef SV_SMAGIC
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7806
+#  define SV_SMAGIC                      0
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7807
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7808
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7809
+#ifndef SV_HAS_TRAILING_NUL
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7810
+#  define SV_HAS_TRAILING_NUL            0
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7811
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7812
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7813
+#ifndef SV_COW_SHARED_HASH_KEYS
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7814
+#  define SV_COW_SHARED_HASH_KEYS        0
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7815
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7816
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7817
+#if (PERL_BCDVERSION < 0x5007002)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7818
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7819
+#if defined(NEED_sv_2pv_flags)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7820
+static char * DPPP_(my_sv_2pv_flags)(pTHX_ SV *sv, STRLEN *lp, I32 flags);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7821
+static
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7822
+#else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7823
+extern char * DPPP_(my_sv_2pv_flags)(pTHX_ SV *sv, STRLEN *lp, I32 flags);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7824
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7825
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7826
+#ifdef sv_2pv_flags
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7827
+#  undef sv_2pv_flags
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7828
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7829
+#define sv_2pv_flags(a,b,c) DPPP_(my_sv_2pv_flags)(aTHX_ a,b,c)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7830
+#define Perl_sv_2pv_flags DPPP_(my_sv_2pv_flags)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7831
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7832
+#if defined(NEED_sv_2pv_flags) || defined(NEED_sv_2pv_flags_GLOBAL)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7833
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7834
+char *
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7835
+DPPP_(my_sv_2pv_flags)(pTHX_ SV *sv, STRLEN *lp, I32 flags)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7836
+{
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7837
+  STRLEN n_a = (STRLEN) flags;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7838
+  return sv_2pv(sv, lp ? lp : &n_a);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7839
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7840
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7841
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7842
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7843
+#if defined(NEED_sv_pvn_force_flags)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7844
+static char * DPPP_(my_sv_pvn_force_flags)(pTHX_ SV *sv, STRLEN *lp, I32 flags);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7845
+static
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7846
+#else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7847
+extern char * DPPP_(my_sv_pvn_force_flags)(pTHX_ SV *sv, STRLEN *lp, I32 flags);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7848
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7849
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7850
+#ifdef sv_pvn_force_flags
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7851
+#  undef sv_pvn_force_flags
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7852
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7853
+#define sv_pvn_force_flags(a,b,c) DPPP_(my_sv_pvn_force_flags)(aTHX_ a,b,c)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7854
+#define Perl_sv_pvn_force_flags DPPP_(my_sv_pvn_force_flags)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7855
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7856
+#if defined(NEED_sv_pvn_force_flags) || defined(NEED_sv_pvn_force_flags_GLOBAL)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7857
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7858
+char *
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7859
+DPPP_(my_sv_pvn_force_flags)(pTHX_ SV *sv, STRLEN *lp, I32 flags)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7860
+{
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7861
+  STRLEN n_a = (STRLEN) flags;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7862
+  return sv_pvn_force(sv, lp ? lp : &n_a);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7863
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7864
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7865
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7866
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7867
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7868
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7869
+#if (PERL_BCDVERSION < 0x5008008) || ( (PERL_BCDVERSION >= 0x5009000) && (PERL_BCDVERSION < 0x5009003) )
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7870
+# define DPPP_SVPV_NOLEN_LP_ARG &PL_na
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7871
+#else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7872
+# define DPPP_SVPV_NOLEN_LP_ARG 0
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7873
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7874
+#ifndef SvPV_const
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7875
+#  define SvPV_const(sv, lp)             SvPV_flags_const(sv, lp, SV_GMAGIC)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7876
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7877
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7878
+#ifndef SvPV_mutable
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7879
+#  define SvPV_mutable(sv, lp)           SvPV_flags_mutable(sv, lp, SV_GMAGIC)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7880
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7881
+#ifndef SvPV_flags
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7882
+#  define SvPV_flags(sv, lp, flags)      \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7883
+                 ((SvFLAGS(sv) & (SVf_POK)) == SVf_POK \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7884
+                  ? ((lp = SvCUR(sv)), SvPVX(sv)) : sv_2pv_flags(sv, &lp, flags))
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7885
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7886
+#ifndef SvPV_flags_const
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7887
+#  define SvPV_flags_const(sv, lp, flags) \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7888
+                 ((SvFLAGS(sv) & (SVf_POK)) == SVf_POK \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7889
+                  ? ((lp = SvCUR(sv)), SvPVX_const(sv)) : \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7890
+                  (const char*) sv_2pv_flags(sv, &lp, flags|SV_CONST_RETURN))
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7891
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7892
+#ifndef SvPV_flags_const_nolen
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7893
+#  define SvPV_flags_const_nolen(sv, flags) \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7894
+                 ((SvFLAGS(sv) & (SVf_POK)) == SVf_POK \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7895
+                  ? SvPVX_const(sv) : \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7896
+                  (const char*) sv_2pv_flags(sv, DPPP_SVPV_NOLEN_LP_ARG, flags|SV_CONST_RETURN))
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7897
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7898
+#ifndef SvPV_flags_mutable
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7899
+#  define SvPV_flags_mutable(sv, lp, flags) \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7900
+                 ((SvFLAGS(sv) & (SVf_POK)) == SVf_POK \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7901
+                  ? ((lp = SvCUR(sv)), SvPVX_mutable(sv)) : \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7902
+                  sv_2pv_flags(sv, &lp, flags|SV_MUTABLE_RETURN))
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7903
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7904
+#ifndef SvPV_force
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7905
+#  define SvPV_force(sv, lp)             SvPV_force_flags(sv, lp, SV_GMAGIC)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7906
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7907
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7908
+#ifndef SvPV_force_nolen
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7909
+#  define SvPV_force_nolen(sv)           SvPV_force_flags_nolen(sv, SV_GMAGIC)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7910
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7911
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7912
+#ifndef SvPV_force_mutable
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7913
+#  define SvPV_force_mutable(sv, lp)     SvPV_force_flags_mutable(sv, lp, SV_GMAGIC)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7914
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7915
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7916
+#ifndef SvPV_force_nomg
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7917
+#  define SvPV_force_nomg(sv, lp)        SvPV_force_flags(sv, lp, 0)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7918
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7919
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7920
+#ifndef SvPV_force_nomg_nolen
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7921
+#  define SvPV_force_nomg_nolen(sv)      SvPV_force_flags_nolen(sv, 0)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7922
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7923
+#ifndef SvPV_force_flags
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7924
+#  define SvPV_force_flags(sv, lp, flags) \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7925
+                 ((SvFLAGS(sv) & (SVf_POK|SVf_THINKFIRST)) == SVf_POK \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7926
+                 ? ((lp = SvCUR(sv)), SvPVX(sv)) : sv_pvn_force_flags(sv, &lp, flags))
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7927
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7928
+#ifndef SvPV_force_flags_nolen
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7929
+#  define SvPV_force_flags_nolen(sv, flags) \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7930
+                 ((SvFLAGS(sv) & (SVf_POK|SVf_THINKFIRST)) == SVf_POK \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7931
+                 ? SvPVX(sv) : sv_pvn_force_flags(sv, DPPP_SVPV_NOLEN_LP_ARG, flags))
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7932
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7933
+#ifndef SvPV_force_flags_mutable
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7934
+#  define SvPV_force_flags_mutable(sv, lp, flags) \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7935
+                 ((SvFLAGS(sv) & (SVf_POK|SVf_THINKFIRST)) == SVf_POK \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7936
+                 ? ((lp = SvCUR(sv)), SvPVX_mutable(sv)) \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7937
+                  : sv_pvn_force_flags(sv, &lp, flags|SV_MUTABLE_RETURN))
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7938
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7939
+#ifndef SvPV_nolen
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7940
+#  define SvPV_nolen(sv)                 \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7941
+                 ((SvFLAGS(sv) & (SVf_POK)) == SVf_POK \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7942
+                  ? SvPVX(sv) : sv_2pv_flags(sv, DPPP_SVPV_NOLEN_LP_ARG, SV_GMAGIC))
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7943
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7944
+#ifndef SvPV_nolen_const
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7945
+#  define SvPV_nolen_const(sv)           \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7946
+                 ((SvFLAGS(sv) & (SVf_POK)) == SVf_POK \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7947
+                  ? SvPVX_const(sv) : sv_2pv_flags(sv, DPPP_SVPV_NOLEN_LP_ARG, SV_GMAGIC|SV_CONST_RETURN))
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7948
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7949
+#ifndef SvPV_nomg
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7950
+#  define SvPV_nomg(sv, lp)              SvPV_flags(sv, lp, 0)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7951
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7952
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7953
+#ifndef SvPV_nomg_const
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7954
+#  define SvPV_nomg_const(sv, lp)        SvPV_flags_const(sv, lp, 0)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7955
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7956
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7957
+#ifndef SvPV_nomg_const_nolen
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7958
+#  define SvPV_nomg_const_nolen(sv)      SvPV_flags_const_nolen(sv, 0)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7959
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7960
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7961
+#ifndef SvPV_nomg_nolen
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7962
+#  define SvPV_nomg_nolen(sv)            ((SvFLAGS(sv) & (SVf_POK)) == SVf_POK \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7963
+                                    ? SvPVX(sv) : sv_2pv_flags(sv, DPPP_SVPV_NOLEN_LP_ARG, 0))
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7964
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7965
+#ifndef SvPV_renew
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7966
+#  define SvPV_renew(sv,n)               STMT_START { SvLEN_set(sv, n); \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7967
+                 SvPV_set((sv), (char *) saferealloc(          \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7968
+                       (Malloc_t)SvPVX(sv), (MEM_SIZE)((n)))); \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7969
+               } STMT_END
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7970
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7971
+#ifndef SvMAGIC_set
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7972
+#  define SvMAGIC_set(sv, val)           \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7973
+                STMT_START { assert(SvTYPE(sv) >= SVt_PVMG); \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7974
+                (((XPVMG*) SvANY(sv))->xmg_magic = (val)); } STMT_END
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7975
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7976
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7977
+#if (PERL_BCDVERSION < 0x5009003)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7978
+#ifndef SvPVX_const
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7979
+#  define SvPVX_const(sv)                ((const char*) (0 + SvPVX(sv)))
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7980
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7981
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7982
+#ifndef SvPVX_mutable
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7983
+#  define SvPVX_mutable(sv)              (0 + SvPVX(sv))
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7984
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7985
+#ifndef SvRV_set
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7986
+#  define SvRV_set(sv, val)              \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7987
+                STMT_START { assert(SvTYPE(sv) >=  SVt_RV); \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7988
+                (((XRV*) SvANY(sv))->xrv_rv = (val)); } STMT_END
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7989
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7990
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7991
+#else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7992
+#ifndef SvPVX_const
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7993
+#  define SvPVX_const(sv)                ((const char*)((sv)->sv_u.svu_pv))
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7994
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7995
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7996
+#ifndef SvPVX_mutable
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7997
+#  define SvPVX_mutable(sv)              ((sv)->sv_u.svu_pv)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7998
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  7999
+#ifndef SvRV_set
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8000
+#  define SvRV_set(sv, val)              \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8001
+                STMT_START { assert(SvTYPE(sv) >=  SVt_RV); \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8002
+                ((sv)->sv_u.svu_rv = (val)); } STMT_END
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8003
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8004
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8005
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8006
+#ifndef SvSTASH_set
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8007
+#  define SvSTASH_set(sv, val)           \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8008
+                STMT_START { assert(SvTYPE(sv) >= SVt_PVMG); \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8009
+                (((XPVMG*) SvANY(sv))->xmg_stash = (val)); } STMT_END
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8010
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8011
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8012
+#if (PERL_BCDVERSION < 0x5004000)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8013
+#ifndef SvUV_set
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8014
+#  define SvUV_set(sv, val)              \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8015
+                STMT_START { assert(SvTYPE(sv) == SVt_IV || SvTYPE(sv) >= SVt_PVIV); \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8016
+                (((XPVIV*) SvANY(sv))->xiv_iv = (IV) (val)); } STMT_END
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8017
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8018
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8019
+#else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8020
+#ifndef SvUV_set
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8021
+#  define SvUV_set(sv, val)              \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8022
+                STMT_START { assert(SvTYPE(sv) == SVt_IV || SvTYPE(sv) >= SVt_PVIV); \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8023
+                (((XPVUV*) SvANY(sv))->xuv_uv = (val)); } STMT_END
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8024
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8025
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8026
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8027
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8028
+#if (PERL_BCDVERSION >= 0x5004000) && !defined(vnewSVpvf)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8029
+#if defined(NEED_vnewSVpvf)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8030
+static SV * DPPP_(my_vnewSVpvf)(pTHX_ const char *pat, va_list *args);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8031
+static
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8032
+#else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8033
+extern SV * DPPP_(my_vnewSVpvf)(pTHX_ const char *pat, va_list *args);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8034
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8035
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8036
+#ifdef vnewSVpvf
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8037
+#  undef vnewSVpvf
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8038
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8039
+#define vnewSVpvf(a,b) DPPP_(my_vnewSVpvf)(aTHX_ a,b)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8040
+#define Perl_vnewSVpvf DPPP_(my_vnewSVpvf)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8041
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8042
+#if defined(NEED_vnewSVpvf) || defined(NEED_vnewSVpvf_GLOBAL)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8043
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8044
+SV *
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8045
+DPPP_(my_vnewSVpvf)(pTHX_ const char *pat, va_list *args)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8046
+{
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8047
+  register SV *sv = newSV(0);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8048
+  sv_vsetpvfn(sv, pat, strlen(pat), args, Null(SV**), 0, Null(bool*));
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8049
+  return sv;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8050
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8051
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8052
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8053
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8054
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8055
+#if (PERL_BCDVERSION >= 0x5004000) && !defined(sv_vcatpvf)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8056
+#  define sv_vcatpvf(sv, pat, args)  sv_vcatpvfn(sv, pat, strlen(pat), args, Null(SV**), 0, Null(bool*))
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8057
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8058
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8059
+#if (PERL_BCDVERSION >= 0x5004000) && !defined(sv_vsetpvf)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8060
+#  define sv_vsetpvf(sv, pat, args)  sv_vsetpvfn(sv, pat, strlen(pat), args, Null(SV**), 0, Null(bool*))
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8061
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8062
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8063
+#if (PERL_BCDVERSION >= 0x5004000) && !defined(sv_catpvf_mg)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8064
+#if defined(NEED_sv_catpvf_mg)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8065
+static void DPPP_(my_sv_catpvf_mg)(pTHX_ SV *sv, const char *pat, ...);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8066
+static
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8067
+#else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8068
+extern void DPPP_(my_sv_catpvf_mg)(pTHX_ SV *sv, const char *pat, ...);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8069
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8070
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8071
+#define Perl_sv_catpvf_mg DPPP_(my_sv_catpvf_mg)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8072
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8073
+#if defined(NEED_sv_catpvf_mg) || defined(NEED_sv_catpvf_mg_GLOBAL)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8074
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8075
+void
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8076
+DPPP_(my_sv_catpvf_mg)(pTHX_ SV *sv, const char *pat, ...)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8077
+{
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8078
+  va_list args;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8079
+  va_start(args, pat);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8080
+  sv_vcatpvfn(sv, pat, strlen(pat), &args, Null(SV**), 0, Null(bool*));
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8081
+  SvSETMAGIC(sv);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8082
+  va_end(args);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8083
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8084
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8085
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8086
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8087
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8088
+#ifdef PERL_IMPLICIT_CONTEXT
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8089
+#if (PERL_BCDVERSION >= 0x5004000) && !defined(sv_catpvf_mg_nocontext)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8090
+#if defined(NEED_sv_catpvf_mg_nocontext)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8091
+static void DPPP_(my_sv_catpvf_mg_nocontext)(SV *sv, const char *pat, ...);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8092
+static
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8093
+#else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8094
+extern void DPPP_(my_sv_catpvf_mg_nocontext)(SV *sv, const char *pat, ...);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8095
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8096
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8097
+#define sv_catpvf_mg_nocontext DPPP_(my_sv_catpvf_mg_nocontext)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8098
+#define Perl_sv_catpvf_mg_nocontext DPPP_(my_sv_catpvf_mg_nocontext)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8099
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8100
+#if defined(NEED_sv_catpvf_mg_nocontext) || defined(NEED_sv_catpvf_mg_nocontext_GLOBAL)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8101
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8102
+void
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8103
+DPPP_(my_sv_catpvf_mg_nocontext)(SV *sv, const char *pat, ...)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8104
+{
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8105
+  dTHX;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8106
+  va_list args;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8107
+  va_start(args, pat);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8108
+  sv_vcatpvfn(sv, pat, strlen(pat), &args, Null(SV**), 0, Null(bool*));
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8109
+  SvSETMAGIC(sv);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8110
+  va_end(args);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8111
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8112
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8113
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8114
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8115
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8116
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8117
+/* sv_catpvf_mg depends on sv_catpvf_mg_nocontext */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8118
+#ifndef sv_catpvf_mg
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8119
+#  ifdef PERL_IMPLICIT_CONTEXT
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8120
+#    define sv_catpvf_mg   Perl_sv_catpvf_mg_nocontext
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8121
+#  else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8122
+#    define sv_catpvf_mg   Perl_sv_catpvf_mg
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8123
+#  endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8124
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8125
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8126
+#if (PERL_BCDVERSION >= 0x5004000) && !defined(sv_vcatpvf_mg)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8127
+#  define sv_vcatpvf_mg(sv, pat, args)                                     \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8128
+   STMT_START {                                                            \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8129
+     sv_vcatpvfn(sv, pat, strlen(pat), args, Null(SV**), 0, Null(bool*));  \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8130
+     SvSETMAGIC(sv);                                                       \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8131
+   } STMT_END
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8132
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8133
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8134
+#if (PERL_BCDVERSION >= 0x5004000) && !defined(sv_setpvf_mg)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8135
+#if defined(NEED_sv_setpvf_mg)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8136
+static void DPPP_(my_sv_setpvf_mg)(pTHX_ SV *sv, const char *pat, ...);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8137
+static
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8138
+#else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8139
+extern void DPPP_(my_sv_setpvf_mg)(pTHX_ SV *sv, const char *pat, ...);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8140
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8141
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8142
+#define Perl_sv_setpvf_mg DPPP_(my_sv_setpvf_mg)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8143
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8144
+#if defined(NEED_sv_setpvf_mg) || defined(NEED_sv_setpvf_mg_GLOBAL)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8145
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8146
+void
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8147
+DPPP_(my_sv_setpvf_mg)(pTHX_ SV *sv, const char *pat, ...)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8148
+{
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8149
+  va_list args;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8150
+  va_start(args, pat);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8151
+  sv_vsetpvfn(sv, pat, strlen(pat), &args, Null(SV**), 0, Null(bool*));
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8152
+  SvSETMAGIC(sv);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8153
+  va_end(args);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8154
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8155
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8156
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8157
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8158
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8159
+#ifdef PERL_IMPLICIT_CONTEXT
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8160
+#if (PERL_BCDVERSION >= 0x5004000) && !defined(sv_setpvf_mg_nocontext)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8161
+#if defined(NEED_sv_setpvf_mg_nocontext)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8162
+static void DPPP_(my_sv_setpvf_mg_nocontext)(SV *sv, const char *pat, ...);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8163
+static
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8164
+#else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8165
+extern void DPPP_(my_sv_setpvf_mg_nocontext)(SV *sv, const char *pat, ...);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8166
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8167
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8168
+#define sv_setpvf_mg_nocontext DPPP_(my_sv_setpvf_mg_nocontext)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8169
+#define Perl_sv_setpvf_mg_nocontext DPPP_(my_sv_setpvf_mg_nocontext)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8170
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8171
+#if defined(NEED_sv_setpvf_mg_nocontext) || defined(NEED_sv_setpvf_mg_nocontext_GLOBAL)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8172
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8173
+void
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8174
+DPPP_(my_sv_setpvf_mg_nocontext)(SV *sv, const char *pat, ...)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8175
+{
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8176
+  dTHX;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8177
+  va_list args;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8178
+  va_start(args, pat);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8179
+  sv_vsetpvfn(sv, pat, strlen(pat), &args, Null(SV**), 0, Null(bool*));
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8180
+  SvSETMAGIC(sv);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8181
+  va_end(args);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8182
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8183
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8184
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8185
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8186
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8187
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8188
+/* sv_setpvf_mg depends on sv_setpvf_mg_nocontext */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8189
+#ifndef sv_setpvf_mg
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8190
+#  ifdef PERL_IMPLICIT_CONTEXT
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8191
+#    define sv_setpvf_mg   Perl_sv_setpvf_mg_nocontext
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8192
+#  else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8193
+#    define sv_setpvf_mg   Perl_sv_setpvf_mg
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8194
+#  endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8195
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8196
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8197
+#if (PERL_BCDVERSION >= 0x5004000) && !defined(sv_vsetpvf_mg)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8198
+#  define sv_vsetpvf_mg(sv, pat, args)                                     \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8199
+   STMT_START {                                                            \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8200
+     sv_vsetpvfn(sv, pat, strlen(pat), args, Null(SV**), 0, Null(bool*));  \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8201
+     SvSETMAGIC(sv);                                                       \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8202
+   } STMT_END
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8203
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8204
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8205
+/* Hint: newSVpvn_share
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8206
+ * The SVs created by this function only mimic the behaviour of
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8207
+ * shared PVs without really being shared. Only use if you know
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8208
+ * what you're doing.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8209
+ */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8210
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8211
+#ifndef newSVpvn_share
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8212
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8213
+#if defined(NEED_newSVpvn_share)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8214
+static SV * DPPP_(my_newSVpvn_share)(pTHX_ const char *src, I32 len, U32 hash);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8215
+static
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8216
+#else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8217
+extern SV * DPPP_(my_newSVpvn_share)(pTHX_ const char *src, I32 len, U32 hash);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8218
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8219
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8220
+#ifdef newSVpvn_share
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8221
+#  undef newSVpvn_share
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8222
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8223
+#define newSVpvn_share(a,b,c) DPPP_(my_newSVpvn_share)(aTHX_ a,b,c)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8224
+#define Perl_newSVpvn_share DPPP_(my_newSVpvn_share)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8225
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8226
+#if defined(NEED_newSVpvn_share) || defined(NEED_newSVpvn_share_GLOBAL)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8227
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8228
+SV *
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8229
+DPPP_(my_newSVpvn_share)(pTHX_ const char *src, I32 len, U32 hash)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8230
+{
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8231
+  SV *sv;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8232
+  if (len < 0)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8233
+    len = -len;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8234
+  if (!hash)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8235
+    PERL_HASH(hash, (char*) src, len);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8236
+  sv = newSVpvn((char *) src, len);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8237
+  sv_upgrade(sv, SVt_PVIV);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8238
+  SvIVX(sv) = hash;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8239
+  SvREADONLY_on(sv);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8240
+  SvPOK_on(sv);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8241
+  return sv;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8242
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8243
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8244
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8245
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8246
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8247
+#ifndef SvSHARED_HASH
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8248
+#  define SvSHARED_HASH(sv)              (0 + SvUVX(sv))
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8249
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8250
+#ifndef HvNAME_get
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8251
+#  define HvNAME_get(hv)                 HvNAME(hv)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8252
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8253
+#ifndef HvNAMELEN_get
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8254
+#  define HvNAMELEN_get(hv)              (HvNAME_get(hv) ? (I32)strlen(HvNAME_get(hv)) : 0)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8255
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8256
+#ifndef GvSVn
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8257
+#  define GvSVn(gv)                      GvSV(gv)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8258
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8259
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8260
+#ifndef isGV_with_GP
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8261
+#  define isGV_with_GP(gv)               isGV(gv)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8262
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8263
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8264
+#ifndef gv_fetchpvn_flags
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8265
+#  define gv_fetchpvn_flags(name, len, flags, svt) gv_fetchpv(name, flags, svt)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8266
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8267
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8268
+#ifndef gv_fetchsv
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8269
+#  define gv_fetchsv(name, flags, svt)   gv_fetchpv(SvPV_nolen_const(name), flags, svt)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8270
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8271
+#ifndef get_cvn_flags
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8272
+#  define get_cvn_flags(name, namelen, flags) get_cv(name, flags)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8273
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8274
+#ifndef WARN_ALL
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8275
+#  define WARN_ALL                       0
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8276
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8277
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8278
+#ifndef WARN_CLOSURE
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8279
+#  define WARN_CLOSURE                   1
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8280
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8281
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8282
+#ifndef WARN_DEPRECATED
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8283
+#  define WARN_DEPRECATED                2
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8284
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8285
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8286
+#ifndef WARN_EXITING
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8287
+#  define WARN_EXITING                   3
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8288
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8289
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8290
+#ifndef WARN_GLOB
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8291
+#  define WARN_GLOB                      4
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8292
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8293
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8294
+#ifndef WARN_IO
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8295
+#  define WARN_IO                        5
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8296
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8297
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8298
+#ifndef WARN_CLOSED
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8299
+#  define WARN_CLOSED                    6
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8300
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8301
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8302
+#ifndef WARN_EXEC
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8303
+#  define WARN_EXEC                      7
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8304
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8305
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8306
+#ifndef WARN_LAYER
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8307
+#  define WARN_LAYER                     8
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8308
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8309
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8310
+#ifndef WARN_NEWLINE
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8311
+#  define WARN_NEWLINE                   9
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8312
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8313
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8314
+#ifndef WARN_PIPE
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8315
+#  define WARN_PIPE                      10
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8316
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8317
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8318
+#ifndef WARN_UNOPENED
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8319
+#  define WARN_UNOPENED                  11
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8320
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8321
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8322
+#ifndef WARN_MISC
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8323
+#  define WARN_MISC                      12
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8324
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8325
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8326
+#ifndef WARN_NUMERIC
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8327
+#  define WARN_NUMERIC                   13
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8328
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8329
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8330
+#ifndef WARN_ONCE
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8331
+#  define WARN_ONCE                      14
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8332
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8333
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8334
+#ifndef WARN_OVERFLOW
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8335
+#  define WARN_OVERFLOW                  15
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8336
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8337
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8338
+#ifndef WARN_PACK
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8339
+#  define WARN_PACK                      16
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8340
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8341
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8342
+#ifndef WARN_PORTABLE
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8343
+#  define WARN_PORTABLE                  17
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8344
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8345
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8346
+#ifndef WARN_RECURSION
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8347
+#  define WARN_RECURSION                 18
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8348
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8349
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8350
+#ifndef WARN_REDEFINE
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8351
+#  define WARN_REDEFINE                  19
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8352
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8353
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8354
+#ifndef WARN_REGEXP
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8355
+#  define WARN_REGEXP                    20
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8356
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8357
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8358
+#ifndef WARN_SEVERE
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8359
+#  define WARN_SEVERE                    21
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8360
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8361
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8362
+#ifndef WARN_DEBUGGING
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8363
+#  define WARN_DEBUGGING                 22
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8364
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8365
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8366
+#ifndef WARN_INPLACE
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8367
+#  define WARN_INPLACE                   23
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8368
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8369
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8370
+#ifndef WARN_INTERNAL
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8371
+#  define WARN_INTERNAL                  24
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8372
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8373
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8374
+#ifndef WARN_MALLOC
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8375
+#  define WARN_MALLOC                    25
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8376
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8377
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8378
+#ifndef WARN_SIGNAL
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8379
+#  define WARN_SIGNAL                    26
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8380
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8381
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8382
+#ifndef WARN_SUBSTR
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8383
+#  define WARN_SUBSTR                    27
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8384
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8385
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8386
+#ifndef WARN_SYNTAX
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8387
+#  define WARN_SYNTAX                    28
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8388
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8389
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8390
+#ifndef WARN_AMBIGUOUS
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8391
+#  define WARN_AMBIGUOUS                 29
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8392
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8393
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8394
+#ifndef WARN_BAREWORD
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8395
+#  define WARN_BAREWORD                  30
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8396
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8397
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8398
+#ifndef WARN_DIGIT
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8399
+#  define WARN_DIGIT                     31
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8400
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8401
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8402
+#ifndef WARN_PARENTHESIS
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8403
+#  define WARN_PARENTHESIS               32
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8404
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8405
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8406
+#ifndef WARN_PRECEDENCE
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8407
+#  define WARN_PRECEDENCE                33
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8408
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8409
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8410
+#ifndef WARN_PRINTF
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8411
+#  define WARN_PRINTF                    34
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8412
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8413
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8414
+#ifndef WARN_PROTOTYPE
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8415
+#  define WARN_PROTOTYPE                 35
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8416
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8417
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8418
+#ifndef WARN_QW
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8419
+#  define WARN_QW                        36
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8420
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8421
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8422
+#ifndef WARN_RESERVED
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8423
+#  define WARN_RESERVED                  37
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8424
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8425
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8426
+#ifndef WARN_SEMICOLON
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8427
+#  define WARN_SEMICOLON                 38
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8428
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8429
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8430
+#ifndef WARN_TAINT
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8431
+#  define WARN_TAINT                     39
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8432
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8433
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8434
+#ifndef WARN_THREADS
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8435
+#  define WARN_THREADS                   40
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8436
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8437
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8438
+#ifndef WARN_UNINITIALIZED
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8439
+#  define WARN_UNINITIALIZED             41
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8440
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8441
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8442
+#ifndef WARN_UNPACK
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8443
+#  define WARN_UNPACK                    42
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8444
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8445
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8446
+#ifndef WARN_UNTIE
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8447
+#  define WARN_UNTIE                     43
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8448
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8449
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8450
+#ifndef WARN_UTF8
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8451
+#  define WARN_UTF8                      44
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8452
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8453
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8454
+#ifndef WARN_VOID
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8455
+#  define WARN_VOID                      45
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8456
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8457
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8458
+#ifndef WARN_ASSERTIONS
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8459
+#  define WARN_ASSERTIONS                46
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8460
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8461
+#ifndef packWARN
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8462
+#  define packWARN(a)                    (a)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8463
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8464
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8465
+#ifndef ckWARN
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8466
+#  ifdef G_WARN_ON
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8467
+#    define  ckWARN(a)                  (PL_dowarn & G_WARN_ON)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8468
+#  else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8469
+#    define  ckWARN(a)                  PL_dowarn
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8470
+#  endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8471
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8472
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8473
+#if (PERL_BCDVERSION >= 0x5004000) && !defined(warner)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8474
+#if defined(NEED_warner)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8475
+static void DPPP_(my_warner)(U32 err, const char *pat, ...);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8476
+static
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8477
+#else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8478
+extern void DPPP_(my_warner)(U32 err, const char *pat, ...);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8479
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8480
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8481
+#define Perl_warner DPPP_(my_warner)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8482
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8483
+#if defined(NEED_warner) || defined(NEED_warner_GLOBAL)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8484
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8485
+void
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8486
+DPPP_(my_warner)(U32 err, const char *pat, ...)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8487
+{
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8488
+  SV *sv;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8489
+  va_list args;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8490
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8491
+  PERL_UNUSED_ARG(err);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8492
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8493
+  va_start(args, pat);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8494
+  sv = vnewSVpvf(pat, &args);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8495
+  va_end(args);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8496
+  sv_2mortal(sv);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8497
+  warn("%s", SvPV_nolen(sv));
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8498
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8499
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8500
+#define warner  Perl_warner
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8501
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8502
+#define Perl_warner_nocontext  Perl_warner
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8503
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8504
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8505
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8506
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8507
+/* concatenating with "" ensures that only literal strings are accepted as argument
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8508
+ * note that STR_WITH_LEN() can't be used as argument to macros or functions that
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8509
+ * under some configurations might be macros
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8510
+ */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8511
+#ifndef STR_WITH_LEN
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8512
+#  define STR_WITH_LEN(s)                (s ""), (sizeof(s)-1)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8513
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8514
+#ifndef newSVpvs
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8515
+#  define newSVpvs(str)                  newSVpvn(str "", sizeof(str) - 1)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8516
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8517
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8518
+#ifndef newSVpvs_flags
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8519
+#  define newSVpvs_flags(str, flags)     newSVpvn_flags(str "", sizeof(str) - 1, flags)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8520
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8521
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8522
+#ifndef newSVpvs_share
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8523
+#  define newSVpvs_share(str)            newSVpvn_share(str "", sizeof(str) - 1, 0)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8524
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8525
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8526
+#ifndef sv_catpvs
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8527
+#  define sv_catpvs(sv, str)             sv_catpvn(sv, str "", sizeof(str) - 1)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8528
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8529
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8530
+#ifndef sv_setpvs
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8531
+#  define sv_setpvs(sv, str)             sv_setpvn(sv, str "", sizeof(str) - 1)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8532
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8533
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8534
+#ifndef hv_fetchs
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8535
+#  define hv_fetchs(hv, key, lval)       hv_fetch(hv, key "", sizeof(key) - 1, lval)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8536
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8537
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8538
+#ifndef hv_stores
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8539
+#  define hv_stores(hv, key, val)        hv_store(hv, key "", sizeof(key) - 1, val, 0)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8540
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8541
+#ifndef gv_fetchpvs
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8542
+#  define gv_fetchpvs(name, flags, svt)  gv_fetchpvn_flags(name "", sizeof(name) - 1, flags, svt)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8543
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8544
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8545
+#ifndef gv_stashpvs
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8546
+#  define gv_stashpvs(name, flags)       gv_stashpvn(name "", sizeof(name) - 1, flags)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8547
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8548
+#ifndef get_cvs
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8549
+#  define get_cvs(name, flags)           get_cvn_flags(name "", sizeof(name)-1, flags)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8550
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8551
+#ifndef SvGETMAGIC
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8552
+#  define SvGETMAGIC(x)                  STMT_START { if (SvGMAGICAL(x)) mg_get(x); } STMT_END
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8553
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8554
+#ifndef PERL_MAGIC_sv
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8555
+#  define PERL_MAGIC_sv                  '\0'
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8556
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8557
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8558
+#ifndef PERL_MAGIC_overload
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8559
+#  define PERL_MAGIC_overload            'A'
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8560
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8561
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8562
+#ifndef PERL_MAGIC_overload_elem
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8563
+#  define PERL_MAGIC_overload_elem       'a'
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8564
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8565
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8566
+#ifndef PERL_MAGIC_overload_table
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8567
+#  define PERL_MAGIC_overload_table      'c'
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8568
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8569
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8570
+#ifndef PERL_MAGIC_bm
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8571
+#  define PERL_MAGIC_bm                  'B'
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8572
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8573
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8574
+#ifndef PERL_MAGIC_regdata
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8575
+#  define PERL_MAGIC_regdata             'D'
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8576
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8577
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8578
+#ifndef PERL_MAGIC_regdatum
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8579
+#  define PERL_MAGIC_regdatum            'd'
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8580
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8581
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8582
+#ifndef PERL_MAGIC_env
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8583
+#  define PERL_MAGIC_env                 'E'
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8584
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8585
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8586
+#ifndef PERL_MAGIC_envelem
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8587
+#  define PERL_MAGIC_envelem             'e'
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8588
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8589
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8590
+#ifndef PERL_MAGIC_fm
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8591
+#  define PERL_MAGIC_fm                  'f'
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8592
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8593
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8594
+#ifndef PERL_MAGIC_regex_global
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8595
+#  define PERL_MAGIC_regex_global        'g'
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8596
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8597
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8598
+#ifndef PERL_MAGIC_isa
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8599
+#  define PERL_MAGIC_isa                 'I'
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8600
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8601
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8602
+#ifndef PERL_MAGIC_isaelem
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8603
+#  define PERL_MAGIC_isaelem             'i'
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8604
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8605
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8606
+#ifndef PERL_MAGIC_nkeys
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8607
+#  define PERL_MAGIC_nkeys               'k'
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8608
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8609
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8610
+#ifndef PERL_MAGIC_dbfile
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8611
+#  define PERL_MAGIC_dbfile              'L'
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8612
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8613
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8614
+#ifndef PERL_MAGIC_dbline
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8615
+#  define PERL_MAGIC_dbline              'l'
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8616
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8617
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8618
+#ifndef PERL_MAGIC_mutex
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8619
+#  define PERL_MAGIC_mutex               'm'
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8620
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8621
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8622
+#ifndef PERL_MAGIC_shared
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8623
+#  define PERL_MAGIC_shared              'N'
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8624
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8625
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8626
+#ifndef PERL_MAGIC_shared_scalar
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8627
+#  define PERL_MAGIC_shared_scalar       'n'
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8628
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8629
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8630
+#ifndef PERL_MAGIC_collxfrm
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8631
+#  define PERL_MAGIC_collxfrm            'o'
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8632
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8633
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8634
+#ifndef PERL_MAGIC_tied
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8635
+#  define PERL_MAGIC_tied                'P'
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8636
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8637
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8638
+#ifndef PERL_MAGIC_tiedelem
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8639
+#  define PERL_MAGIC_tiedelem            'p'
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8640
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8641
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8642
+#ifndef PERL_MAGIC_tiedscalar
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8643
+#  define PERL_MAGIC_tiedscalar          'q'
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8644
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8645
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8646
+#ifndef PERL_MAGIC_qr
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8647
+#  define PERL_MAGIC_qr                  'r'
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8648
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8649
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8650
+#ifndef PERL_MAGIC_sig
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8651
+#  define PERL_MAGIC_sig                 'S'
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8652
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8653
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8654
+#ifndef PERL_MAGIC_sigelem
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8655
+#  define PERL_MAGIC_sigelem             's'
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8656
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8657
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8658
+#ifndef PERL_MAGIC_taint
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8659
+#  define PERL_MAGIC_taint               't'
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8660
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8661
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8662
+#ifndef PERL_MAGIC_uvar
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8663
+#  define PERL_MAGIC_uvar                'U'
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8664
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8665
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8666
+#ifndef PERL_MAGIC_uvar_elem
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8667
+#  define PERL_MAGIC_uvar_elem           'u'
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8668
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8669
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8670
+#ifndef PERL_MAGIC_vstring
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8671
+#  define PERL_MAGIC_vstring             'V'
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8672
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8673
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8674
+#ifndef PERL_MAGIC_vec
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8675
+#  define PERL_MAGIC_vec                 'v'
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8676
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8677
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8678
+#ifndef PERL_MAGIC_utf8
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8679
+#  define PERL_MAGIC_utf8                'w'
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8680
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8681
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8682
+#ifndef PERL_MAGIC_substr
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8683
+#  define PERL_MAGIC_substr              'x'
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8684
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8685
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8686
+#ifndef PERL_MAGIC_defelem
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8687
+#  define PERL_MAGIC_defelem             'y'
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8688
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8689
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8690
+#ifndef PERL_MAGIC_glob
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8691
+#  define PERL_MAGIC_glob                '*'
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8692
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8693
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8694
+#ifndef PERL_MAGIC_arylen
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8695
+#  define PERL_MAGIC_arylen              '#'
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8696
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8697
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8698
+#ifndef PERL_MAGIC_pos
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8699
+#  define PERL_MAGIC_pos                 '.'
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8700
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8701
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8702
+#ifndef PERL_MAGIC_backref
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8703
+#  define PERL_MAGIC_backref             '<'
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8704
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8705
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8706
+#ifndef PERL_MAGIC_ext
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8707
+#  define PERL_MAGIC_ext                 '~'
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8708
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8709
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8710
+/* That's the best we can do... */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8711
+#ifndef sv_catpvn_nomg
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8712
+#  define sv_catpvn_nomg                 sv_catpvn
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8713
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8714
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8715
+#ifndef sv_catsv_nomg
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8716
+#  define sv_catsv_nomg                  sv_catsv
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8717
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8718
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8719
+#ifndef sv_setsv_nomg
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8720
+#  define sv_setsv_nomg                  sv_setsv
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8721
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8722
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8723
+#ifndef sv_pvn_nomg
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8724
+#  define sv_pvn_nomg                    sv_pvn
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8725
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8726
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8727
+#ifndef SvIV_nomg
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8728
+#  define SvIV_nomg                      SvIV
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8729
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8730
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8731
+#ifndef SvUV_nomg
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8732
+#  define SvUV_nomg                      SvUV
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8733
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8734
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8735
+#ifndef sv_catpv_mg
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8736
+#  define sv_catpv_mg(sv, ptr)          \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8737
+   STMT_START {                         \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8738
+     SV *TeMpSv = sv;                   \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8739
+     sv_catpv(TeMpSv,ptr);              \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8740
+     SvSETMAGIC(TeMpSv);                \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8741
+   } STMT_END
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8742
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8743
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8744
+#ifndef sv_catpvn_mg
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8745
+#  define sv_catpvn_mg(sv, ptr, len)    \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8746
+   STMT_START {                         \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8747
+     SV *TeMpSv = sv;                   \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8748
+     sv_catpvn(TeMpSv,ptr,len);         \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8749
+     SvSETMAGIC(TeMpSv);                \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8750
+   } STMT_END
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8751
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8752
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8753
+#ifndef sv_catsv_mg
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8754
+#  define sv_catsv_mg(dsv, ssv)         \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8755
+   STMT_START {                         \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8756
+     SV *TeMpSv = dsv;                  \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8757
+     sv_catsv(TeMpSv,ssv);              \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8758
+     SvSETMAGIC(TeMpSv);                \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8759
+   } STMT_END
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8760
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8761
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8762
+#ifndef sv_setiv_mg
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8763
+#  define sv_setiv_mg(sv, i)            \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8764
+   STMT_START {                         \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8765
+     SV *TeMpSv = sv;                   \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8766
+     sv_setiv(TeMpSv,i);                \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8767
+     SvSETMAGIC(TeMpSv);                \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8768
+   } STMT_END
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8769
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8770
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8771
+#ifndef sv_setnv_mg
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8772
+#  define sv_setnv_mg(sv, num)          \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8773
+   STMT_START {                         \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8774
+     SV *TeMpSv = sv;                   \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8775
+     sv_setnv(TeMpSv,num);              \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8776
+     SvSETMAGIC(TeMpSv);                \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8777
+   } STMT_END
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8778
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8779
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8780
+#ifndef sv_setpv_mg
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8781
+#  define sv_setpv_mg(sv, ptr)          \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8782
+   STMT_START {                         \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8783
+     SV *TeMpSv = sv;                   \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8784
+     sv_setpv(TeMpSv,ptr);              \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8785
+     SvSETMAGIC(TeMpSv);                \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8786
+   } STMT_END
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8787
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8788
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8789
+#ifndef sv_setpvn_mg
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8790
+#  define sv_setpvn_mg(sv, ptr, len)    \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8791
+   STMT_START {                         \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8792
+     SV *TeMpSv = sv;                   \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8793
+     sv_setpvn(TeMpSv,ptr,len);         \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8794
+     SvSETMAGIC(TeMpSv);                \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8795
+   } STMT_END
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8796
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8797
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8798
+#ifndef sv_setsv_mg
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8799
+#  define sv_setsv_mg(dsv, ssv)         \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8800
+   STMT_START {                         \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8801
+     SV *TeMpSv = dsv;                  \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8802
+     sv_setsv(TeMpSv,ssv);              \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8803
+     SvSETMAGIC(TeMpSv);                \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8804
+   } STMT_END
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8805
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8806
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8807
+#ifndef sv_setuv_mg
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8808
+#  define sv_setuv_mg(sv, i)            \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8809
+   STMT_START {                         \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8810
+     SV *TeMpSv = sv;                   \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8811
+     sv_setuv(TeMpSv,i);                \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8812
+     SvSETMAGIC(TeMpSv);                \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8813
+   } STMT_END
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8814
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8815
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8816
+#ifndef sv_usepvn_mg
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8817
+#  define sv_usepvn_mg(sv, ptr, len)    \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8818
+   STMT_START {                         \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8819
+     SV *TeMpSv = sv;                   \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8820
+     sv_usepvn(TeMpSv,ptr,len);         \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8821
+     SvSETMAGIC(TeMpSv);                \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8822
+   } STMT_END
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8823
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8824
+#ifndef SvVSTRING_mg
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8825
+#  define SvVSTRING_mg(sv)               (SvMAGICAL(sv) ? mg_find(sv, PERL_MAGIC_vstring) : NULL)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8826
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8827
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8828
+/* Hint: sv_magic_portable
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8829
+ * This is a compatibility function that is only available with
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8830
+ * Devel::PPPort. It is NOT in the perl core.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8831
+ * Its purpose is to mimic the 5.8.0 behaviour of sv_magic() when
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8832
+ * it is being passed a name pointer with namlen == 0. In that
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8833
+ * case, perl 5.8.0 and later store the pointer, not a copy of it.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8834
+ * The compatibility can be provided back to perl 5.004. With
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8835
+ * earlier versions, the code will not compile.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8836
+ */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8837
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8838
+#if (PERL_BCDVERSION < 0x5004000)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8839
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8840
+  /* code that uses sv_magic_portable will not compile */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8841
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8842
+#elif (PERL_BCDVERSION < 0x5008000)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8843
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8844
+#  define sv_magic_portable(sv, obj, how, name, namlen)     \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8845
+   STMT_START {                                             \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8846
+     SV *SvMp_sv = (sv);                                    \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8847
+     char *SvMp_name = (char *) (name);                     \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8848
+     I32 SvMp_namlen = (namlen);                            \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8849
+     if (SvMp_name && SvMp_namlen == 0)                     \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8850
+     {                                                      \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8851
+       MAGIC *mg;                                           \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8852
+       sv_magic(SvMp_sv, obj, how, 0, 0);                   \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8853
+       mg = SvMAGIC(SvMp_sv);                               \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8854
+       mg->mg_len = -42; /* XXX: this is the tricky part */ \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8855
+       mg->mg_ptr = SvMp_name;                              \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8856
+     }                                                      \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8857
+     else                                                   \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8858
+     {                                                      \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8859
+       sv_magic(SvMp_sv, obj, how, SvMp_name, SvMp_namlen); \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8860
+     }                                                      \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8861
+   } STMT_END
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8862
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8863
+#else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8864
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8865
+#  define sv_magic_portable(a, b, c, d, e)  sv_magic(a, b, c, d, e)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8866
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8867
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8868
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8869
+#ifdef USE_ITHREADS
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8870
+#ifndef CopFILE
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8871
+#  define CopFILE(c)                     ((c)->cop_file)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8872
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8873
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8874
+#ifndef CopFILEGV
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8875
+#  define CopFILEGV(c)                   (CopFILE(c) ? gv_fetchfile(CopFILE(c)) : Nullgv)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8876
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8877
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8878
+#ifndef CopFILE_set
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8879
+#  define CopFILE_set(c,pv)              ((c)->cop_file = savepv(pv))
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8880
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8881
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8882
+#ifndef CopFILESV
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8883
+#  define CopFILESV(c)                   (CopFILE(c) ? GvSV(gv_fetchfile(CopFILE(c))) : Nullsv)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8884
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8885
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8886
+#ifndef CopFILEAV
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8887
+#  define CopFILEAV(c)                   (CopFILE(c) ? GvAV(gv_fetchfile(CopFILE(c))) : Nullav)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8888
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8889
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8890
+#ifndef CopSTASHPV
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8891
+#  define CopSTASHPV(c)                  ((c)->cop_stashpv)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8892
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8893
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8894
+#ifndef CopSTASHPV_set
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8895
+#  define CopSTASHPV_set(c,pv)           ((c)->cop_stashpv = ((pv) ? savepv(pv) : Nullch))
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8896
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8897
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8898
+#ifndef CopSTASH
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8899
+#  define CopSTASH(c)                    (CopSTASHPV(c) ? gv_stashpv(CopSTASHPV(c),GV_ADD) : Nullhv)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8900
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8901
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8902
+#ifndef CopSTASH_set
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8903
+#  define CopSTASH_set(c,hv)             CopSTASHPV_set(c, (hv) ? HvNAME(hv) : Nullch)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8904
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8905
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8906
+#ifndef CopSTASH_eq
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8907
+#  define CopSTASH_eq(c,hv)              ((hv) && (CopSTASHPV(c) == HvNAME(hv) \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8908
+                                        || (CopSTASHPV(c) && HvNAME(hv) \
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8909
+                                        && strEQ(CopSTASHPV(c), HvNAME(hv)))))
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8910
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8911
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8912
+#else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8913
+#ifndef CopFILEGV
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8914
+#  define CopFILEGV(c)                   ((c)->cop_filegv)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8915
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8916
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8917
+#ifndef CopFILEGV_set
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8918
+#  define CopFILEGV_set(c,gv)            ((c)->cop_filegv = (GV*)SvREFCNT_inc(gv))
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8919
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8920
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8921
+#ifndef CopFILE_set
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8922
+#  define CopFILE_set(c,pv)              CopFILEGV_set((c), gv_fetchfile(pv))
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8923
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8924
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8925
+#ifndef CopFILESV
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8926
+#  define CopFILESV(c)                   (CopFILEGV(c) ? GvSV(CopFILEGV(c)) : Nullsv)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8927
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8928
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8929
+#ifndef CopFILEAV
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8930
+#  define CopFILEAV(c)                   (CopFILEGV(c) ? GvAV(CopFILEGV(c)) : Nullav)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8931
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8932
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8933
+#ifndef CopFILE
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8934
+#  define CopFILE(c)                     (CopFILESV(c) ? SvPVX(CopFILESV(c)) : Nullch)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8935
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8936
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8937
+#ifndef CopSTASH
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8938
+#  define CopSTASH(c)                    ((c)->cop_stash)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8939
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8940
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8941
+#ifndef CopSTASH_set
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8942
+#  define CopSTASH_set(c,hv)             ((c)->cop_stash = (hv))
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8943
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8944
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8945
+#ifndef CopSTASHPV
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8946
+#  define CopSTASHPV(c)                  (CopSTASH(c) ? HvNAME(CopSTASH(c)) : Nullch)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8947
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8948
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8949
+#ifndef CopSTASHPV_set
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8950
+#  define CopSTASHPV_set(c,pv)           CopSTASH_set((c), gv_stashpv(pv,GV_ADD))
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8951
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8952
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8953
+#ifndef CopSTASH_eq
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8954
+#  define CopSTASH_eq(c,hv)              (CopSTASH(c) == (hv))
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8955
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8956
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8957
+#endif /* USE_ITHREADS */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8958
+#ifndef IN_PERL_COMPILETIME
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8959
+#  define IN_PERL_COMPILETIME            (PL_curcop == &PL_compiling)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8960
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8961
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8962
+#ifndef IN_LOCALE_RUNTIME
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8963
+#  define IN_LOCALE_RUNTIME              (PL_curcop->op_private & HINT_LOCALE)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8964
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8965
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8966
+#ifndef IN_LOCALE_COMPILETIME
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8967
+#  define IN_LOCALE_COMPILETIME          (PL_hints & HINT_LOCALE)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8968
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8969
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8970
+#ifndef IN_LOCALE
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8971
+#  define IN_LOCALE                      (IN_PERL_COMPILETIME ? IN_LOCALE_COMPILETIME : IN_LOCALE_RUNTIME)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8972
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8973
+#ifndef IS_NUMBER_IN_UV
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8974
+#  define IS_NUMBER_IN_UV                0x01
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8975
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8976
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8977
+#ifndef IS_NUMBER_GREATER_THAN_UV_MAX
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8978
+#  define IS_NUMBER_GREATER_THAN_UV_MAX  0x02
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8979
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8980
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8981
+#ifndef IS_NUMBER_NOT_INT
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8982
+#  define IS_NUMBER_NOT_INT              0x04
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8983
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8984
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8985
+#ifndef IS_NUMBER_NEG
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8986
+#  define IS_NUMBER_NEG                  0x08
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8987
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8988
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8989
+#ifndef IS_NUMBER_INFINITY
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8990
+#  define IS_NUMBER_INFINITY             0x10
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8991
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8992
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8993
+#ifndef IS_NUMBER_NAN
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8994
+#  define IS_NUMBER_NAN                  0x20
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8995
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8996
+#ifndef GROK_NUMERIC_RADIX
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8997
+#  define GROK_NUMERIC_RADIX(sp, send)   grok_numeric_radix(sp, send)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8998
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  8999
+#ifndef PERL_SCAN_GREATER_THAN_UV_MAX
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9000
+#  define PERL_SCAN_GREATER_THAN_UV_MAX  0x02
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9001
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9002
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9003
+#ifndef PERL_SCAN_SILENT_ILLDIGIT
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9004
+#  define PERL_SCAN_SILENT_ILLDIGIT      0x04
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9005
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9006
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9007
+#ifndef PERL_SCAN_ALLOW_UNDERSCORES
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9008
+#  define PERL_SCAN_ALLOW_UNDERSCORES    0x01
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9009
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9010
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9011
+#ifndef PERL_SCAN_DISALLOW_PREFIX
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9012
+#  define PERL_SCAN_DISALLOW_PREFIX      0x02
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9013
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9014
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9015
+#ifndef grok_numeric_radix
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9016
+#if defined(NEED_grok_numeric_radix)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9017
+static bool DPPP_(my_grok_numeric_radix)(pTHX_ const char ** sp, const char * send);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9018
+static
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9019
+#else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9020
+extern bool DPPP_(my_grok_numeric_radix)(pTHX_ const char ** sp, const char * send);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9021
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9022
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9023
+#ifdef grok_numeric_radix
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9024
+#  undef grok_numeric_radix
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9025
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9026
+#define grok_numeric_radix(a,b) DPPP_(my_grok_numeric_radix)(aTHX_ a,b)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9027
+#define Perl_grok_numeric_radix DPPP_(my_grok_numeric_radix)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9028
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9029
+#if defined(NEED_grok_numeric_radix) || defined(NEED_grok_numeric_radix_GLOBAL)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9030
+bool
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9031
+DPPP_(my_grok_numeric_radix)(pTHX_ const char **sp, const char *send)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9032
+{
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9033
+#ifdef USE_LOCALE_NUMERIC
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9034
+#ifdef PL_numeric_radix_sv
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9035
+    if (PL_numeric_radix_sv && IN_LOCALE) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9036
+        STRLEN len;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9037
+        char* radix = SvPV(PL_numeric_radix_sv, len);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9038
+        if (*sp + len <= send && memEQ(*sp, radix, len)) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9039
+            *sp += len;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9040
+            return TRUE;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9041
+        }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9042
+    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9043
+#else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9044
+    /* older perls don't have PL_numeric_radix_sv so the radix
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9045
+     * must manually be requested from locale.h
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9046
+     */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9047
+#include <locale.h>
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9048
+    dTHR;  /* needed for older threaded perls */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9049
+    struct lconv *lc = localeconv();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9050
+    char *radix = lc->decimal_point;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9051
+    if (radix && IN_LOCALE) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9052
+        STRLEN len = strlen(radix);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9053
+        if (*sp + len <= send && memEQ(*sp, radix, len)) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9054
+            *sp += len;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9055
+            return TRUE;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9056
+        }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9057
+    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9058
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9059
+#endif /* USE_LOCALE_NUMERIC */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9060
+    /* always try "." if numeric radix didn't match because
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9061
+     * we may have data from different locales mixed */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9062
+    if (*sp < send && **sp == '.') {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9063
+        ++*sp;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9064
+        return TRUE;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9065
+    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9066
+    return FALSE;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9067
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9068
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9069
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9070
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9071
+#ifndef grok_number
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9072
+#if defined(NEED_grok_number)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9073
+static int DPPP_(my_grok_number)(pTHX_ const char * pv, STRLEN len, UV * valuep);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9074
+static
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9075
+#else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9076
+extern int DPPP_(my_grok_number)(pTHX_ const char * pv, STRLEN len, UV * valuep);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9077
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9078
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9079
+#ifdef grok_number
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9080
+#  undef grok_number
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9081
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9082
+#define grok_number(a,b,c) DPPP_(my_grok_number)(aTHX_ a,b,c)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9083
+#define Perl_grok_number DPPP_(my_grok_number)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9084
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9085
+#if defined(NEED_grok_number) || defined(NEED_grok_number_GLOBAL)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9086
+int
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9087
+DPPP_(my_grok_number)(pTHX_ const char *pv, STRLEN len, UV *valuep)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9088
+{
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9089
+  const char *s = pv;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9090
+  const char *send = pv + len;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9091
+  const UV max_div_10 = UV_MAX / 10;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9092
+  const char max_mod_10 = UV_MAX % 10;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9093
+  int numtype = 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9094
+  int sawinf = 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9095
+  int sawnan = 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9096
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9097
+  while (s < send && isSPACE(*s))
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9098
+    s++;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9099
+  if (s == send) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9100
+    return 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9101
+  } else if (*s == '-') {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9102
+    s++;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9103
+    numtype = IS_NUMBER_NEG;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9104
+  }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9105
+  else if (*s == '+')
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9106
+  s++;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9107
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9108
+  if (s == send)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9109
+    return 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9110
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9111
+  /* next must be digit or the radix separator or beginning of infinity */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9112
+  if (isDIGIT(*s)) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9113
+    /* UVs are at least 32 bits, so the first 9 decimal digits cannot
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9114
+       overflow.  */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9115
+    UV value = *s - '0';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9116
+    /* This construction seems to be more optimiser friendly.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9117
+       (without it gcc does the isDIGIT test and the *s - '0' separately)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9118
+       With it gcc on arm is managing 6 instructions (6 cycles) per digit.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9119
+       In theory the optimiser could deduce how far to unroll the loop
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9120
+       before checking for overflow.  */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9121
+    if (++s < send) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9122
+      int digit = *s - '0';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9123
+      if (digit >= 0 && digit <= 9) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9124
+        value = value * 10 + digit;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9125
+        if (++s < send) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9126
+          digit = *s - '0';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9127
+          if (digit >= 0 && digit <= 9) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9128
+            value = value * 10 + digit;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9129
+            if (++s < send) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9130
+              digit = *s - '0';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9131
+              if (digit >= 0 && digit <= 9) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9132
+                value = value * 10 + digit;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9133
+                if (++s < send) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9134
+                  digit = *s - '0';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9135
+                  if (digit >= 0 && digit <= 9) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9136
+                    value = value * 10 + digit;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9137
+                    if (++s < send) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9138
+                      digit = *s - '0';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9139
+                      if (digit >= 0 && digit <= 9) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9140
+                        value = value * 10 + digit;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9141
+                        if (++s < send) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9142
+                          digit = *s - '0';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9143
+                          if (digit >= 0 && digit <= 9) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9144
+                            value = value * 10 + digit;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9145
+                            if (++s < send) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9146
+                              digit = *s - '0';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9147
+                              if (digit >= 0 && digit <= 9) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9148
+                                value = value * 10 + digit;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9149
+                                if (++s < send) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9150
+                                  digit = *s - '0';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9151
+                                  if (digit >= 0 && digit <= 9) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9152
+                                    value = value * 10 + digit;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9153
+                                    if (++s < send) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9154
+                                      /* Now got 9 digits, so need to check
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9155
+                                         each time for overflow.  */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9156
+                                      digit = *s - '0';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9157
+                                      while (digit >= 0 && digit <= 9
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9158
+                                             && (value < max_div_10
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9159
+                                                 || (value == max_div_10
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9160
+                                                     && digit <= max_mod_10))) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9161
+                                        value = value * 10 + digit;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9162
+                                        if (++s < send)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9163
+                                          digit = *s - '0';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9164
+                                        else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9165
+                                          break;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9166
+                                      }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9167
+                                      if (digit >= 0 && digit <= 9
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9168
+                                          && (s < send)) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9169
+                                        /* value overflowed.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9170
+                                           skip the remaining digits, don't
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9171
+                                           worry about setting *valuep.  */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9172
+                                        do {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9173
+                                          s++;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9174
+                                        } while (s < send && isDIGIT(*s));
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9175
+                                        numtype |=
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9176
+                                          IS_NUMBER_GREATER_THAN_UV_MAX;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9177
+                                        goto skip_value;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9178
+                                      }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9179
+                                    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9180
+                                  }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9181
+                                }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9182
+                              }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9183
+                            }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9184
+                          }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9185
+                        }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9186
+                      }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9187
+                    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9188
+                  }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9189
+                }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9190
+              }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9191
+            }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9192
+          }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9193
+        }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9194
+      }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9195
+    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9196
+    numtype |= IS_NUMBER_IN_UV;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9197
+    if (valuep)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9198
+      *valuep = value;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9199
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9200
+  skip_value:
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9201
+    if (GROK_NUMERIC_RADIX(&s, send)) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9202
+      numtype |= IS_NUMBER_NOT_INT;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9203
+      while (s < send && isDIGIT(*s))  /* optional digits after the radix */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9204
+        s++;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9205
+    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9206
+  }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9207
+  else if (GROK_NUMERIC_RADIX(&s, send)) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9208
+    numtype |= IS_NUMBER_NOT_INT | IS_NUMBER_IN_UV; /* valuep assigned below */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9209
+    /* no digits before the radix means we need digits after it */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9210
+    if (s < send && isDIGIT(*s)) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9211
+      do {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9212
+        s++;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9213
+      } while (s < send && isDIGIT(*s));
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9214
+      if (valuep) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9215
+        /* integer approximation is valid - it's 0.  */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9216
+        *valuep = 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9217
+      }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9218
+    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9219
+    else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9220
+      return 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9221
+  } else if (*s == 'I' || *s == 'i') {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9222
+    s++; if (s == send || (*s != 'N' && *s != 'n')) return 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9223
+    s++; if (s == send || (*s != 'F' && *s != 'f')) return 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9224
+    s++; if (s < send && (*s == 'I' || *s == 'i')) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9225
+      s++; if (s == send || (*s != 'N' && *s != 'n')) return 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9226
+      s++; if (s == send || (*s != 'I' && *s != 'i')) return 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9227
+      s++; if (s == send || (*s != 'T' && *s != 't')) return 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9228
+      s++; if (s == send || (*s != 'Y' && *s != 'y')) return 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9229
+      s++;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9230
+    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9231
+    sawinf = 1;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9232
+  } else if (*s == 'N' || *s == 'n') {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9233
+    /* XXX TODO: There are signaling NaNs and quiet NaNs. */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9234
+    s++; if (s == send || (*s != 'A' && *s != 'a')) return 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9235
+    s++; if (s == send || (*s != 'N' && *s != 'n')) return 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9236
+    s++;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9237
+    sawnan = 1;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9238
+  } else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9239
+    return 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9240
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9241
+  if (sawinf) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9242
+    numtype &= IS_NUMBER_NEG; /* Keep track of sign  */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9243
+    numtype |= IS_NUMBER_INFINITY | IS_NUMBER_NOT_INT;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9244
+  } else if (sawnan) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9245
+    numtype &= IS_NUMBER_NEG; /* Keep track of sign  */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9246
+    numtype |= IS_NUMBER_NAN | IS_NUMBER_NOT_INT;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9247
+  } else if (s < send) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9248
+    /* we can have an optional exponent part */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9249
+    if (*s == 'e' || *s == 'E') {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9250
+      /* The only flag we keep is sign.  Blow away any "it's UV"  */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9251
+      numtype &= IS_NUMBER_NEG;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9252
+      numtype |= IS_NUMBER_NOT_INT;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9253
+      s++;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9254
+      if (s < send && (*s == '-' || *s == '+'))
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9255
+        s++;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9256
+      if (s < send && isDIGIT(*s)) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9257
+        do {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9258
+          s++;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9259
+        } while (s < send && isDIGIT(*s));
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9260
+      }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9261
+      else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9262
+      return 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9263
+    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9264
+  }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9265
+  while (s < send && isSPACE(*s))
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9266
+    s++;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9267
+  if (s >= send)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9268
+    return numtype;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9269
+  if (len == 10 && memEQ(pv, "0 but true", 10)) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9270
+    if (valuep)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9271
+      *valuep = 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9272
+    return IS_NUMBER_IN_UV;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9273
+  }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9274
+  return 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9275
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9276
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9277
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9278
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9279
+/*
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9280
+ * The grok_* routines have been modified to use warn() instead of
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9281
+ * Perl_warner(). Also, 'hexdigit' was the former name of PL_hexdigit,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9282
+ * which is why the stack variable has been renamed to 'xdigit'.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9283
+ */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9284
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9285
+#ifndef grok_bin
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9286
+#if defined(NEED_grok_bin)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9287
+static UV DPPP_(my_grok_bin)(pTHX_ const char * start, STRLEN * len_p, I32 * flags, NV * result);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9288
+static
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9289
+#else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9290
+extern UV DPPP_(my_grok_bin)(pTHX_ const char * start, STRLEN * len_p, I32 * flags, NV * result);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9291
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9292
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9293
+#ifdef grok_bin
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9294
+#  undef grok_bin
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9295
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9296
+#define grok_bin(a,b,c,d) DPPP_(my_grok_bin)(aTHX_ a,b,c,d)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9297
+#define Perl_grok_bin DPPP_(my_grok_bin)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9298
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9299
+#if defined(NEED_grok_bin) || defined(NEED_grok_bin_GLOBAL)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9300
+UV
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9301
+DPPP_(my_grok_bin)(pTHX_ const char *start, STRLEN *len_p, I32 *flags, NV *result)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9302
+{
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9303
+    const char *s = start;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9304
+    STRLEN len = *len_p;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9305
+    UV value = 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9306
+    NV value_nv = 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9307
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9308
+    const UV max_div_2 = UV_MAX / 2;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9309
+    bool allow_underscores = *flags & PERL_SCAN_ALLOW_UNDERSCORES;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9310
+    bool overflowed = FALSE;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9311
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9312
+    if (!(*flags & PERL_SCAN_DISALLOW_PREFIX)) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9313
+        /* strip off leading b or 0b.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9314
+           for compatibility silently suffer "b" and "0b" as valid binary
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9315
+           numbers. */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9316
+        if (len >= 1) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9317
+            if (s[0] == 'b') {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9318
+                s++;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9319
+                len--;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9320
+            }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9321
+            else if (len >= 2 && s[0] == '0' && s[1] == 'b') {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9322
+                s+=2;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9323
+                len-=2;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9324
+            }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9325
+        }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9326
+    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9327
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9328
+    for (; len-- && *s; s++) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9329
+        char bit = *s;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9330
+        if (bit == '0' || bit == '1') {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9331
+            /* Write it in this wonky order with a goto to attempt to get the
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9332
+               compiler to make the common case integer-only loop pretty tight.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9333
+               With gcc seems to be much straighter code than old scan_bin.  */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9334
+          redo:
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9335
+            if (!overflowed) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9336
+                if (value <= max_div_2) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9337
+                    value = (value << 1) | (bit - '0');
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9338
+                    continue;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9339
+                }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9340
+                /* Bah. We're just overflowed.  */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9341
+                warn("Integer overflow in binary number");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9342
+                overflowed = TRUE;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9343
+                value_nv = (NV) value;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9344
+            }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9345
+            value_nv *= 2.0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9346
+            /* If an NV has not enough bits in its mantissa to
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9347
+             * represent a UV this summing of small low-order numbers
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9348
+             * is a waste of time (because the NV cannot preserve
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9349
+             * the low-order bits anyway): we could just remember when
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9350
+             * did we overflow and in the end just multiply value_nv by the
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9351
+             * right amount. */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9352
+            value_nv += (NV)(bit - '0');
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9353
+            continue;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9354
+        }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9355
+        if (bit == '_' && len && allow_underscores && (bit = s[1])
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9356
+            && (bit == '0' || bit == '1'))
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9357
+            {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9358
+                --len;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9359
+                ++s;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9360
+                goto redo;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9361
+            }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9362
+        if (!(*flags & PERL_SCAN_SILENT_ILLDIGIT))
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9363
+            warn("Illegal binary digit '%c' ignored", *s);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9364
+        break;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9365
+    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9366
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9367
+    if (   ( overflowed && value_nv > 4294967295.0)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9368
+#if UVSIZE > 4
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9369
+        || (!overflowed && value > 0xffffffff  )
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9370
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9371
+        ) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9372
+        warn("Binary number > 0b11111111111111111111111111111111 non-portable");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9373
+    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9374
+    *len_p = s - start;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9375
+    if (!overflowed) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9376
+        *flags = 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9377
+        return value;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9378
+    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9379
+    *flags = PERL_SCAN_GREATER_THAN_UV_MAX;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9380
+    if (result)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9381
+        *result = value_nv;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9382
+    return UV_MAX;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9383
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9384
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9385
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9386
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9387
+#ifndef grok_hex
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9388
+#if defined(NEED_grok_hex)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9389
+static UV DPPP_(my_grok_hex)(pTHX_ const char * start, STRLEN * len_p, I32 * flags, NV * result);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9390
+static
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9391
+#else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9392
+extern UV DPPP_(my_grok_hex)(pTHX_ const char * start, STRLEN * len_p, I32 * flags, NV * result);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9393
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9394
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9395
+#ifdef grok_hex
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9396
+#  undef grok_hex
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9397
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9398
+#define grok_hex(a,b,c,d) DPPP_(my_grok_hex)(aTHX_ a,b,c,d)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9399
+#define Perl_grok_hex DPPP_(my_grok_hex)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9400
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9401
+#if defined(NEED_grok_hex) || defined(NEED_grok_hex_GLOBAL)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9402
+UV
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9403
+DPPP_(my_grok_hex)(pTHX_ const char *start, STRLEN *len_p, I32 *flags, NV *result)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9404
+{
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9405
+    const char *s = start;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9406
+    STRLEN len = *len_p;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9407
+    UV value = 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9408
+    NV value_nv = 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9409
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9410
+    const UV max_div_16 = UV_MAX / 16;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9411
+    bool allow_underscores = *flags & PERL_SCAN_ALLOW_UNDERSCORES;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9412
+    bool overflowed = FALSE;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9413
+    const char *xdigit;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9414
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9415
+    if (!(*flags & PERL_SCAN_DISALLOW_PREFIX)) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9416
+        /* strip off leading x or 0x.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9417
+           for compatibility silently suffer "x" and "0x" as valid hex numbers.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9418
+        */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9419
+        if (len >= 1) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9420
+            if (s[0] == 'x') {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9421
+                s++;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9422
+                len--;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9423
+            }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9424
+            else if (len >= 2 && s[0] == '0' && s[1] == 'x') {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9425
+                s+=2;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9426
+                len-=2;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9427
+            }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9428
+        }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9429
+    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9430
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9431
+    for (; len-- && *s; s++) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9432
+        xdigit = strchr((char *) PL_hexdigit, *s);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9433
+        if (xdigit) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9434
+            /* Write it in this wonky order with a goto to attempt to get the
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9435
+               compiler to make the common case integer-only loop pretty tight.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9436
+               With gcc seems to be much straighter code than old scan_hex.  */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9437
+          redo:
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9438
+            if (!overflowed) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9439
+                if (value <= max_div_16) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9440
+                    value = (value << 4) | ((xdigit - PL_hexdigit) & 15);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9441
+                    continue;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9442
+                }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9443
+                warn("Integer overflow in hexadecimal number");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9444
+                overflowed = TRUE;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9445
+                value_nv = (NV) value;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9446
+            }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9447
+            value_nv *= 16.0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9448
+            /* If an NV has not enough bits in its mantissa to
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9449
+             * represent a UV this summing of small low-order numbers
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9450
+             * is a waste of time (because the NV cannot preserve
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9451
+             * the low-order bits anyway): we could just remember when
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9452
+             * did we overflow and in the end just multiply value_nv by the
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9453
+             * right amount of 16-tuples. */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9454
+            value_nv += (NV)((xdigit - PL_hexdigit) & 15);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9455
+            continue;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9456
+        }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9457
+        if (*s == '_' && len && allow_underscores && s[1]
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9458
+                && (xdigit = strchr((char *) PL_hexdigit, s[1])))
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9459
+            {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9460
+                --len;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9461
+                ++s;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9462
+                goto redo;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9463
+            }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9464
+        if (!(*flags & PERL_SCAN_SILENT_ILLDIGIT))
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9465
+            warn("Illegal hexadecimal digit '%c' ignored", *s);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9466
+        break;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9467
+    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9468
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9469
+    if (   ( overflowed && value_nv > 4294967295.0)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9470
+#if UVSIZE > 4
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9471
+        || (!overflowed && value > 0xffffffff  )
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9472
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9473
+        ) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9474
+        warn("Hexadecimal number > 0xffffffff non-portable");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9475
+    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9476
+    *len_p = s - start;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9477
+    if (!overflowed) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9478
+        *flags = 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9479
+        return value;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9480
+    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9481
+    *flags = PERL_SCAN_GREATER_THAN_UV_MAX;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9482
+    if (result)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9483
+        *result = value_nv;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9484
+    return UV_MAX;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9485
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9486
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9487
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9488
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9489
+#ifndef grok_oct
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9490
+#if defined(NEED_grok_oct)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9491
+static UV DPPP_(my_grok_oct)(pTHX_ const char * start, STRLEN * len_p, I32 * flags, NV * result);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9492
+static
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9493
+#else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9494
+extern UV DPPP_(my_grok_oct)(pTHX_ const char * start, STRLEN * len_p, I32 * flags, NV * result);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9495
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9496
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9497
+#ifdef grok_oct
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9498
+#  undef grok_oct
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9499
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9500
+#define grok_oct(a,b,c,d) DPPP_(my_grok_oct)(aTHX_ a,b,c,d)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9501
+#define Perl_grok_oct DPPP_(my_grok_oct)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9502
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9503
+#if defined(NEED_grok_oct) || defined(NEED_grok_oct_GLOBAL)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9504
+UV
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9505
+DPPP_(my_grok_oct)(pTHX_ const char *start, STRLEN *len_p, I32 *flags, NV *result)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9506
+{
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9507
+    const char *s = start;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9508
+    STRLEN len = *len_p;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9509
+    UV value = 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9510
+    NV value_nv = 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9511
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9512
+    const UV max_div_8 = UV_MAX / 8;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9513
+    bool allow_underscores = *flags & PERL_SCAN_ALLOW_UNDERSCORES;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9514
+    bool overflowed = FALSE;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9515
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9516
+    for (; len-- && *s; s++) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9517
+         /* gcc 2.95 optimiser not smart enough to figure that this subtraction
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9518
+            out front allows slicker code.  */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9519
+        int digit = *s - '0';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9520
+        if (digit >= 0 && digit <= 7) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9521
+            /* Write it in this wonky order with a goto to attempt to get the
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9522
+               compiler to make the common case integer-only loop pretty tight.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9523
+            */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9524
+          redo:
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9525
+            if (!overflowed) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9526
+                if (value <= max_div_8) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9527
+                    value = (value << 3) | digit;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9528
+                    continue;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9529
+                }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9530
+                /* Bah. We're just overflowed.  */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9531
+                warn("Integer overflow in octal number");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9532
+                overflowed = TRUE;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9533
+                value_nv = (NV) value;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9534
+            }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9535
+            value_nv *= 8.0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9536
+            /* If an NV has not enough bits in its mantissa to
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9537
+             * represent a UV this summing of small low-order numbers
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9538
+             * is a waste of time (because the NV cannot preserve
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9539
+             * the low-order bits anyway): we could just remember when
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9540
+             * did we overflow and in the end just multiply value_nv by the
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9541
+             * right amount of 8-tuples. */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9542
+            value_nv += (NV)digit;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9543
+            continue;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9544
+        }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9545
+        if (digit == ('_' - '0') && len && allow_underscores
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9546
+            && (digit = s[1] - '0') && (digit >= 0 && digit <= 7))
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9547
+            {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9548
+                --len;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9549
+                ++s;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9550
+                goto redo;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9551
+            }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9552
+        /* Allow \octal to work the DWIM way (that is, stop scanning
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9553
+         * as soon as non-octal characters are seen, complain only iff
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9554
+         * someone seems to want to use the digits eight and nine). */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9555
+        if (digit == 8 || digit == 9) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9556
+            if (!(*flags & PERL_SCAN_SILENT_ILLDIGIT))
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9557
+                warn("Illegal octal digit '%c' ignored", *s);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9558
+        }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9559
+        break;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9560
+    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9561
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9562
+    if (   ( overflowed && value_nv > 4294967295.0)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9563
+#if UVSIZE > 4
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9564
+        || (!overflowed && value > 0xffffffff  )
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9565
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9566
+        ) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9567
+        warn("Octal number > 037777777777 non-portable");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9568
+    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9569
+    *len_p = s - start;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9570
+    if (!overflowed) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9571
+        *flags = 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9572
+        return value;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9573
+    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9574
+    *flags = PERL_SCAN_GREATER_THAN_UV_MAX;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9575
+    if (result)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9576
+        *result = value_nv;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9577
+    return UV_MAX;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9578
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9579
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9580
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9581
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9582
+#if !defined(my_snprintf)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9583
+#if defined(NEED_my_snprintf)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9584
+static int DPPP_(my_my_snprintf)(char * buffer, const Size_t len, const char * format, ...);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9585
+static
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9586
+#else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9587
+extern int DPPP_(my_my_snprintf)(char * buffer, const Size_t len, const char * format, ...);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9588
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9589
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9590
+#define my_snprintf DPPP_(my_my_snprintf)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9591
+#define Perl_my_snprintf DPPP_(my_my_snprintf)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9592
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9593
+#if defined(NEED_my_snprintf) || defined(NEED_my_snprintf_GLOBAL)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9594
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9595
+int
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9596
+DPPP_(my_my_snprintf)(char *buffer, const Size_t len, const char *format, ...)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9597
+{
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9598
+    dTHX;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9599
+    int retval;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9600
+    va_list ap;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9601
+    va_start(ap, format);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9602
+#ifdef HAS_VSNPRINTF
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9603
+    retval = vsnprintf(buffer, len, format, ap);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9604
+#else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9605
+    retval = vsprintf(buffer, format, ap);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9606
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9607
+    va_end(ap);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9608
+    if (retval < 0 || (len > 0 && (Size_t)retval >= len))
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9609
+        Perl_croak(aTHX_ "panic: my_snprintf buffer overflow");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9610
+    return retval;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9611
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9612
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9613
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9614
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9615
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9616
+#if !defined(my_sprintf)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9617
+#if defined(NEED_my_sprintf)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9618
+static int DPPP_(my_my_sprintf)(char * buffer, const char * pat, ...);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9619
+static
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9620
+#else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9621
+extern int DPPP_(my_my_sprintf)(char * buffer, const char * pat, ...);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9622
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9623
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9624
+#define my_sprintf DPPP_(my_my_sprintf)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9625
+#define Perl_my_sprintf DPPP_(my_my_sprintf)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9626
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9627
+#if defined(NEED_my_sprintf) || defined(NEED_my_sprintf_GLOBAL)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9628
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9629
+int
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9630
+DPPP_(my_my_sprintf)(char *buffer, const char* pat, ...)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9631
+{
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9632
+    va_list args;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9633
+    va_start(args, pat);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9634
+    vsprintf(buffer, pat, args);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9635
+    va_end(args);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9636
+    return strlen(buffer);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9637
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9638
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9639
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9640
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9641
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9642
+#ifdef NO_XSLOCKS
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9643
+#  ifdef dJMPENV
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9644
+#    define dXCPT             dJMPENV; int rEtV = 0
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9645
+#    define XCPT_TRY_START    JMPENV_PUSH(rEtV); if (rEtV == 0)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9646
+#    define XCPT_TRY_END      JMPENV_POP;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9647
+#    define XCPT_CATCH        if (rEtV != 0)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9648
+#    define XCPT_RETHROW      JMPENV_JUMP(rEtV)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9649
+#  else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9650
+#    define dXCPT             Sigjmp_buf oldTOP; int rEtV = 0
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9651
+#    define XCPT_TRY_START    Copy(top_env, oldTOP, 1, Sigjmp_buf); rEtV = Sigsetjmp(top_env, 1); if (rEtV == 0)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9652
+#    define XCPT_TRY_END      Copy(oldTOP, top_env, 1, Sigjmp_buf);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9653
+#    define XCPT_CATCH        if (rEtV != 0)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9654
+#    define XCPT_RETHROW      Siglongjmp(top_env, rEtV)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9655
+#  endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9656
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9657
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9658
+#if !defined(my_strlcat)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9659
+#if defined(NEED_my_strlcat)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9660
+static Size_t DPPP_(my_my_strlcat)(char * dst, const char * src, Size_t size);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9661
+static
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9662
+#else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9663
+extern Size_t DPPP_(my_my_strlcat)(char * dst, const char * src, Size_t size);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9664
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9665
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9666
+#define my_strlcat DPPP_(my_my_strlcat)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9667
+#define Perl_my_strlcat DPPP_(my_my_strlcat)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9668
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9669
+#if defined(NEED_my_strlcat) || defined(NEED_my_strlcat_GLOBAL)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9670
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9671
+Size_t
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9672
+DPPP_(my_my_strlcat)(char *dst, const char *src, Size_t size)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9673
+{
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9674
+    Size_t used, length, copy;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9675
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9676
+    used = strlen(dst);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9677
+    length = strlen(src);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9678
+    if (size > 0 && used < size - 1) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9679
+        copy = (length >= size - used) ? size - used - 1 : length;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9680
+        memcpy(dst + used, src, copy);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9681
+        dst[used + copy] = '\0';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9682
+    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9683
+    return used + length;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9684
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9685
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9686
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9687
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9688
+#if !defined(my_strlcpy)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9689
+#if defined(NEED_my_strlcpy)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9690
+static Size_t DPPP_(my_my_strlcpy)(char * dst, const char * src, Size_t size);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9691
+static
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9692
+#else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9693
+extern Size_t DPPP_(my_my_strlcpy)(char * dst, const char * src, Size_t size);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9694
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9695
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9696
+#define my_strlcpy DPPP_(my_my_strlcpy)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9697
+#define Perl_my_strlcpy DPPP_(my_my_strlcpy)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9698
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9699
+#if defined(NEED_my_strlcpy) || defined(NEED_my_strlcpy_GLOBAL)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9700
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9701
+Size_t
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9702
+DPPP_(my_my_strlcpy)(char *dst, const char *src, Size_t size)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9703
+{
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9704
+    Size_t length, copy;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9705
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9706
+    length = strlen(src);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9707
+    if (size > 0) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9708
+        copy = (length >= size) ? size - 1 : length;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9709
+        memcpy(dst, src, copy);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9710
+        dst[copy] = '\0';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9711
+    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9712
+    return length;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9713
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9714
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9715
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9716
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9717
+#ifndef PERL_PV_ESCAPE_QUOTE
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9718
+#  define PERL_PV_ESCAPE_QUOTE           0x0001
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9719
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9720
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9721
+#ifndef PERL_PV_PRETTY_QUOTE
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9722
+#  define PERL_PV_PRETTY_QUOTE           PERL_PV_ESCAPE_QUOTE
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9723
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9724
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9725
+#ifndef PERL_PV_PRETTY_ELLIPSES
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9726
+#  define PERL_PV_PRETTY_ELLIPSES        0x0002
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9727
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9728
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9729
+#ifndef PERL_PV_PRETTY_LTGT
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9730
+#  define PERL_PV_PRETTY_LTGT            0x0004
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9731
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9732
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9733
+#ifndef PERL_PV_ESCAPE_FIRSTCHAR
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9734
+#  define PERL_PV_ESCAPE_FIRSTCHAR       0x0008
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9735
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9736
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9737
+#ifndef PERL_PV_ESCAPE_UNI
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9738
+#  define PERL_PV_ESCAPE_UNI             0x0100
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9739
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9740
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9741
+#ifndef PERL_PV_ESCAPE_UNI_DETECT
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9742
+#  define PERL_PV_ESCAPE_UNI_DETECT      0x0200
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9743
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9744
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9745
+#ifndef PERL_PV_ESCAPE_ALL
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9746
+#  define PERL_PV_ESCAPE_ALL             0x1000
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9747
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9748
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9749
+#ifndef PERL_PV_ESCAPE_NOBACKSLASH
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9750
+#  define PERL_PV_ESCAPE_NOBACKSLASH     0x2000
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9751
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9752
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9753
+#ifndef PERL_PV_ESCAPE_NOCLEAR
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9754
+#  define PERL_PV_ESCAPE_NOCLEAR         0x4000
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9755
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9756
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9757
+#ifndef PERL_PV_ESCAPE_RE
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9758
+#  define PERL_PV_ESCAPE_RE              0x8000
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9759
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9760
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9761
+#ifndef PERL_PV_PRETTY_NOCLEAR
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9762
+#  define PERL_PV_PRETTY_NOCLEAR         PERL_PV_ESCAPE_NOCLEAR
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9763
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9764
+#ifndef PERL_PV_PRETTY_DUMP
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9765
+#  define PERL_PV_PRETTY_DUMP            PERL_PV_PRETTY_ELLIPSES|PERL_PV_PRETTY_QUOTE
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9766
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9767
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9768
+#ifndef PERL_PV_PRETTY_REGPROP
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9769
+#  define PERL_PV_PRETTY_REGPROP         PERL_PV_PRETTY_ELLIPSES|PERL_PV_PRETTY_LTGT|PERL_PV_ESCAPE_RE
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9770
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9771
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9772
+/* Hint: pv_escape
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9773
+ * Note that unicode functionality is only backported to
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9774
+ * those perl versions that support it. For older perl
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9775
+ * versions, the implementation will fall back to bytes.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9776
+ */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9777
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9778
+#ifndef pv_escape
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9779
+#if defined(NEED_pv_escape)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9780
+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);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9781
+static
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9782
+#else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9783
+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);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9784
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9785
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9786
+#ifdef pv_escape
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9787
+#  undef pv_escape
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9788
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9789
+#define pv_escape(a,b,c,d,e,f) DPPP_(my_pv_escape)(aTHX_ a,b,c,d,e,f)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9790
+#define Perl_pv_escape DPPP_(my_pv_escape)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9791
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9792
+#if defined(NEED_pv_escape) || defined(NEED_pv_escape_GLOBAL)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9793
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9794
+char *
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9795
+DPPP_(my_pv_escape)(pTHX_ SV *dsv, char const * const str,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9796
+  const STRLEN count, const STRLEN max,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9797
+  STRLEN * const escaped, const U32 flags)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9798
+{
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9799
+    const char esc = flags & PERL_PV_ESCAPE_RE ? '%' : '\\';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9800
+    const char dq = flags & PERL_PV_ESCAPE_QUOTE ? '"' : esc;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9801
+    char octbuf[32] = "%123456789ABCDF";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9802
+    STRLEN wrote = 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9803
+    STRLEN chsize = 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9804
+    STRLEN readsize = 1;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9805
+#if defined(is_utf8_string) && defined(utf8_to_uvchr)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9806
+    bool isuni = flags & PERL_PV_ESCAPE_UNI ? 1 : 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9807
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9808
+    const char *pv  = str;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9809
+    const char * const end = pv + count;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9810
+    octbuf[0] = esc;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9811
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9812
+    if (!(flags & PERL_PV_ESCAPE_NOCLEAR))
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9813
+        sv_setpvs(dsv, "");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9814
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9815
+#if defined(is_utf8_string) && defined(utf8_to_uvchr)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9816
+    if ((flags & PERL_PV_ESCAPE_UNI_DETECT) && is_utf8_string((U8*)pv, count))
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9817
+        isuni = 1;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9818
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9819
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9820
+    for (; pv < end && (!max || wrote < max) ; pv += readsize) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9821
+        const UV u =
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9822
+#if defined(is_utf8_string) && defined(utf8_to_uvchr)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9823
+                     isuni ? utf8_to_uvchr((U8*)pv, &readsize) :
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9824
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9825
+                             (U8)*pv;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9826
+        const U8 c = (U8)u & 0xFF;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9827
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9828
+        if (u > 255 || (flags & PERL_PV_ESCAPE_ALL)) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9829
+            if (flags & PERL_PV_ESCAPE_FIRSTCHAR)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9830
+                chsize = my_snprintf(octbuf, sizeof octbuf,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9831
+                                      "%"UVxf, u);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9832
+            else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9833
+                chsize = my_snprintf(octbuf, sizeof octbuf,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9834
+                                      "%cx{%"UVxf"}", esc, u);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9835
+        } else if (flags & PERL_PV_ESCAPE_NOBACKSLASH) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9836
+            chsize = 1;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9837
+        } else {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9838
+            if (c == dq || c == esc || !isPRINT(c)) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9839
+                chsize = 2;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9840
+                switch (c) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9841
+                case '\\' : /* fallthrough */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9842
+                case '%'  : if (c == esc)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9843
+                                octbuf[1] = esc;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9844
+                            else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9845
+                                chsize = 1;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9846
+                            break;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9847
+                case '\v' : octbuf[1] = 'v'; break;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9848
+                case '\t' : octbuf[1] = 't'; break;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9849
+                case '\r' : octbuf[1] = 'r'; break;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9850
+                case '\n' : octbuf[1] = 'n'; break;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9851
+                case '\f' : octbuf[1] = 'f'; break;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9852
+                case '"'  : if (dq == '"')
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9853
+                                octbuf[1] = '"';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9854
+                            else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9855
+                                chsize = 1;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9856
+                            break;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9857
+                default:    chsize = my_snprintf(octbuf, sizeof octbuf,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9858
+                                pv < end && isDIGIT((U8)*(pv+readsize))
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9859
+                                ? "%c%03o" : "%c%o", esc, c);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9860
+                }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9861
+            } else {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9862
+                chsize = 1;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9863
+            }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9864
+        }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9865
+        if (max && wrote + chsize > max) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9866
+            break;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9867
+        } else if (chsize > 1) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9868
+            sv_catpvn(dsv, octbuf, chsize);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9869
+            wrote += chsize;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9870
+        } else {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9871
+            char tmp[2];
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9872
+            my_snprintf(tmp, sizeof tmp, "%c", c);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9873
+            sv_catpvn(dsv, tmp, 1);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9874
+            wrote++;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9875
+        }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9876
+        if (flags & PERL_PV_ESCAPE_FIRSTCHAR)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9877
+            break;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9878
+    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9879
+    if (escaped != NULL)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9880
+        *escaped= pv - str;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9881
+    return SvPVX(dsv);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9882
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9883
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9884
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9885
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9886
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9887
+#ifndef pv_pretty
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9888
+#if defined(NEED_pv_pretty)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9889
+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);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9890
+static
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9891
+#else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9892
+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);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9893
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9894
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9895
+#ifdef pv_pretty
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9896
+#  undef pv_pretty
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9897
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9898
+#define pv_pretty(a,b,c,d,e,f,g) DPPP_(my_pv_pretty)(aTHX_ a,b,c,d,e,f,g)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9899
+#define Perl_pv_pretty DPPP_(my_pv_pretty)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9900
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9901
+#if defined(NEED_pv_pretty) || defined(NEED_pv_pretty_GLOBAL)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9902
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9903
+char *
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9904
+DPPP_(my_pv_pretty)(pTHX_ SV *dsv, char const * const str, const STRLEN count,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9905
+  const STRLEN max, char const * const start_color, char const * const end_color,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9906
+  const U32 flags)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9907
+{
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9908
+    const U8 dq = (flags & PERL_PV_PRETTY_QUOTE) ? '"' : '%';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9909
+    STRLEN escaped;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9910
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9911
+    if (!(flags & PERL_PV_PRETTY_NOCLEAR))
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9912
+        sv_setpvs(dsv, "");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9913
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9914
+    if (dq == '"')
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9915
+        sv_catpvs(dsv, "\"");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9916
+    else if (flags & PERL_PV_PRETTY_LTGT)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9917
+        sv_catpvs(dsv, "<");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9918
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9919
+    if (start_color != NULL)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9920
+        sv_catpv(dsv, D_PPP_CONSTPV_ARG(start_color));
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9921
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9922
+    pv_escape(dsv, str, count, max, &escaped, flags | PERL_PV_ESCAPE_NOCLEAR);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9923
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9924
+    if (end_color != NULL)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9925
+        sv_catpv(dsv, D_PPP_CONSTPV_ARG(end_color));
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9926
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9927
+    if (dq == '"')
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9928
+        sv_catpvs(dsv, "\"");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9929
+    else if (flags & PERL_PV_PRETTY_LTGT)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9930
+        sv_catpvs(dsv, ">");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9931
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9932
+    if ((flags & PERL_PV_PRETTY_ELLIPSES) && escaped < count)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9933
+        sv_catpvs(dsv, "...");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9934
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9935
+    return SvPVX(dsv);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9936
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9937
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9938
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9939
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9940
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9941
+#ifndef pv_display
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9942
+#if defined(NEED_pv_display)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9943
+static char * DPPP_(my_pv_display)(pTHX_ SV * dsv, const char * pv, STRLEN cur, STRLEN len, STRLEN pvlim);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9944
+static
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9945
+#else
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9946
+extern char * DPPP_(my_pv_display)(pTHX_ SV * dsv, const char * pv, STRLEN cur, STRLEN len, STRLEN pvlim);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9947
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9948
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9949
+#ifdef pv_display
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9950
+#  undef pv_display
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9951
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9952
+#define pv_display(a,b,c,d,e) DPPP_(my_pv_display)(aTHX_ a,b,c,d,e)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9953
+#define Perl_pv_display DPPP_(my_pv_display)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9954
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9955
+#if defined(NEED_pv_display) || defined(NEED_pv_display_GLOBAL)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9956
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9957
+char *
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9958
+DPPP_(my_pv_display)(pTHX_ SV *dsv, const char *pv, STRLEN cur, STRLEN len, STRLEN pvlim)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9959
+{
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9960
+    pv_pretty(dsv, pv, cur, pvlim, NULL, NULL, PERL_PV_PRETTY_DUMP);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9961
+    if (len > cur && pv[cur] == '\0')
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9962
+        sv_catpvs(dsv, "\\0");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9963
+    return SvPVX(dsv);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9964
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9965
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9966
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9967
+#endif
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9968
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9969
+#endif /* _P_P_PORTABILITY_H_ */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9970
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9971
+/* End of File ppport.h */
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9972
diff -ur --new-file perl-5.12.5/dist/Data-Dumper/t/bless_var_method.t perl-5.12.5_dumper/dist/Data-Dumper/t/bless_var_method.t
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9973
--- perl-5.12.5/dist/Data-Dumper/t/bless_var_method.t	1969-12-31 19:00:00.000000000 -0500
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9974
+++ perl-5.12.5_dumper/dist/Data-Dumper/t/bless_var_method.t	2014-10-09 15:06:36.175627384 -0400
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9975
@@ -0,0 +1,86 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9976
+#!./perl -w
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9977
+# t/bless.t - Test Bless()
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9978
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9979
+BEGIN {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9980
+    if ($ENV{PERL_CORE}){
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9981
+        require Config; import Config;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9982
+        no warnings 'once';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9983
+        if ($Config{'extensions'} !~ /\bData\/Dumper\b/) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9984
+            print "1..0 # Skip: Data::Dumper was not built\n";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9985
+            exit 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9986
+        }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9987
+    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9988
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9989
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9990
+use strict;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9991
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9992
+use Data::Dumper;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9993
+use Test::More tests =>   8;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9994
+use lib qw( ./t/lib );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9995
+use Testing qw( _dumptostr );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9996
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9997
+my %d = (
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9998
+    delta   => 'd',
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
  9999
+    beta    => 'b',
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10000
+    gamma   => 'c',
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10001
+    alpha   => 'a',
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10002
+);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10003
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10004
+run_tests_for_bless_var_method();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10005
+SKIP: {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10006
+    skip "XS version was unavailable, so we already ran with pure Perl", 4
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10007
+        if $Data::Dumper::Useperl;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10008
+    local $Data::Dumper::Useperl = 1;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10009
+    run_tests_for_bless_var_method();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10010
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10011
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10012
+sub run_tests_for_bless_var_method {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10013
+    my ($obj, %dumps, $bless, $starting);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10014
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10015
+    note("\$Data::Dumper::Bless and Bless() set to true value");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10016
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10017
+    $starting = $Data::Dumper::Bless;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10018
+    $bless = 1;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10019
+    local $Data::Dumper::Bless = $bless;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10020
+    $obj = Data::Dumper->new( [ \%d ] );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10021
+    $dumps{'ddblessone'} = _dumptostr($obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10022
+    local $Data::Dumper::Bless = $starting;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10023
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10024
+    $obj = Data::Dumper->new( [ \%d ] );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10025
+    $obj->Bless($bless);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10026
+    $dumps{'objblessone'} = _dumptostr($obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10027
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10028
+    is($dumps{'ddblessone'}, $dumps{'objblessone'},
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10029
+        "\$Data::Dumper::Bless = 1 and Bless(1) are equivalent");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10030
+    %dumps = ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10031
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10032
+    $bless = 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10033
+    local $Data::Dumper::Bless = $bless;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10034
+    $obj = Data::Dumper->new( [ \%d ] );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10035
+    $dumps{'ddblesszero'} = _dumptostr($obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10036
+    local $Data::Dumper::Bless = $starting;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10037
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10038
+    $obj = Data::Dumper->new( [ \%d ] );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10039
+    $obj->Bless($bless);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10040
+    $dumps{'objblesszero'} = _dumptostr($obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10041
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10042
+    is($dumps{'ddblesszero'}, $dumps{'objblesszero'},
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10043
+        "\$Data::Dumper::Bless = 0 and Bless(0) are equivalent");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10044
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10045
+    $bless = undef;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10046
+    local $Data::Dumper::Bless = $bless;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10047
+    $obj = Data::Dumper->new( [ \%d ] );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10048
+    $dumps{'ddblessundef'} = _dumptostr($obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10049
+    local $Data::Dumper::Bless = $starting;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10050
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10051
+    $obj = Data::Dumper->new( [ \%d ] );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10052
+    $obj->Bless($bless);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10053
+    $dumps{'objblessundef'} = _dumptostr($obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10054
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10055
+    is($dumps{'ddblessundef'}, $dumps{'objblessundef'},
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10056
+        "\$Data::Dumper::Bless = undef and Bless(undef) are equivalent");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10057
+    is($dumps{'ddblesszero'}, $dumps{'objblessundef'},
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10058
+        "\$Data::Dumper::Bless = undef and = 0 are equivalent");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10059
+    %dumps = ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10060
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10061
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10062
diff -ur --new-file perl-5.12.5/dist/Data-Dumper/t/bless.t perl-5.12.5_dumper/dist/Data-Dumper/t/bless.t
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10063
--- perl-5.12.5/dist/Data-Dumper/t/bless.t	2012-11-03 19:25:59.000000000 -0400
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10064
+++ perl-5.12.5_dumper/dist/Data-Dumper/t/bless.t	2014-10-09 15:06:36.178706635 -0400
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10065
@@ -5,16 +5,22 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10066
 # Test::More 0.60 required because:
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10067
 # - is_deeply(undef, $not_undef); now works. [rt.cpan.org 9441]
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10068
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10069
-BEGIN { plan tests => 1+5*2; }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10070
+BEGIN { plan tests => 1+2*5; }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10071
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10072
 BEGIN { use_ok('Data::Dumper') };
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10073
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10074
 # RT 39420: Data::Dumper fails to escape bless class name
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10075
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10076
-# test under XS and pure Perl version
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10077
-foreach $Data::Dumper::Useperl (0, 1) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10078
+run_tests_for_bless();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10079
+SKIP: {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10080
+    skip "XS version was unavailable, so we already ran with pure Perl", 5
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10081
+        if $Data::Dumper::Useperl;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10082
+    local $Data::Dumper::Useperl = 1;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10083
+    run_tests_for_bless();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10084
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10085
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10086
-#diag("\$Data::Dumper::Useperl = $Data::Dumper::Useperl");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10087
+sub run_tests_for_bless {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10088
+note("\$Data::Dumper::Useperl = $Data::Dumper::Useperl");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10089
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10090
 {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10091
 my $t = bless( {}, q{a'b} );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10092
@@ -43,11 +49,14 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10093
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10094
 my $t = bless( qr//, 'foo');
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10095
 my $dt = Dumper($t);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10096
-my $o = <<'PERL';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10097
-$VAR1 = bless( qr/(?-xism:)/, 'foo' );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10098
+my $o = ($] > 5.010 ? <<'PERL' : <<'PERL_LEGACY');
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10099
+$VAR1 = bless( qr//, 'foo' );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10100
 PERL
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10101
+$VAR1 = bless( qr/(?-xism:)/, 'foo' );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10102
+PERL_LEGACY
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10103
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10104
 is($dt, $o, "We can dump blessed qr//'s properly");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10105
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10106
 }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10107
-}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10108
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10109
+} # END sub run_tests_for_bless()
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10110
diff -ur --new-file perl-5.12.5/dist/Data-Dumper/t/bugs.t perl-5.12.5_dumper/dist/Data-Dumper/t/bugs.t
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10111
--- perl-5.12.5/dist/Data-Dumper/t/bugs.t	2012-11-03 19:25:59.000000000 -0400
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10112
+++ perl-5.12.5_dumper/dist/Data-Dumper/t/bugs.t	2014-10-09 15:06:36.177067555 -0400
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10113
@@ -1,6 +1,6 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10114
 #!perl
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10115
 #
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10116
-# regression tests for old bugs that don't fit other categories
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10117
+# regression tests for old bugs that do not fit other categories
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10118
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10119
 BEGIN {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10120
     require Config; import Config;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10121
@@ -12,7 +12,7 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10122
 }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10123
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10124
 use strict;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10125
-use Test::More tests => 5;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10126
+use Test::More tests => 15;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10127
 use Data::Dumper;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10128
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10129
 {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10130
@@ -80,4 +80,68 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10131
 doh('fixed');
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10132
 ok(1, "[perl #56766]"); # Still no core dump? We are fine.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10133
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10134
+SKIP: {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10135
+ skip "perl 5.10.1 crashes and DD cannot help it", 1 if $] < 5.0119999;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10136
+ # [perl #72332] Segfault on empty-string glob
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10137
+ Data::Dumper->Dump([*{*STDERR{IO}}]);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10138
+ ok("ok", #ok
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10139
+   "empty-string glob [perl #72332]");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10140
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10141
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10142
+# writing out of bounds with malformed utf8
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10143
+SKIP: {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10144
+    eval { require Encode };
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10145
+    skip("Encode not available", 1) if $@;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10146
+    local $^W=1;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10147
+    local $SIG{__WARN__} = sub {};
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10148
+    my $a="\x{fc}'" x 50;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10149
+    Encode::_utf8_on($a);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10150
+    Dumper $a;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10151
+    ok("ok", "no crash dumping malformed utf8 with the utf8 flag on");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10152
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10153
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10154
+{
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10155
+  # We have to test reference equivalence, rather than actual output, as
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10156
+  # Perl itself is buggy prior to 5.15.6.  Output from DD should at least
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10157
+  # evaluate to the same typeglob, regardless of perl bugs.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10158
+  my $tests = sub {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10159
+    my $VAR1;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10160
+    no strict 'refs';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10161
+    is eval(Dumper \*{"foo::b\0ar"}), \*{"foo::b\0ar"},
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10162
+      'GVs with nulls';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10163
+    # There is a strange 5.6 bug that causes the eval to fail a supposed
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10164
+    # strict vars test (involving $VAR1).  Mentioning the glob beforehand
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10165
+    # somehow makes it go away.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10166
+    () = \*{chr 256};
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10167
+    is eval Dumper(\*{chr 256})||die ($@), \*{chr 256},
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10168
+      'GVs with UTF8 names (or not, depending on perl version)';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10169
+    () = \*{"\0".chr 256}; # same bug
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10170
+    is eval Dumper(\*{"\0".chr 256}), \*{"\0".chr 256},
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10171
+      'GVs with UTF8 and nulls';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10172
+  };
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10173
+  SKIP: {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10174
+    skip "no XS", 3 if not defined &Data::Dumper::Dumpxs;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10175
+    local $Data::Dumper::Useperl = 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10176
+    &$tests;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10177
+  }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10178
+  local $Data::Dumper::Useperl = 1;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10179
+  &$tests;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10180
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10181
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10182
+{
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10183
+  # Test reference equivalence of dumping *{""}.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10184
+  my $tests = sub {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10185
+    my $VAR1;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10186
+    no strict 'refs';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10187
+    is eval(Dumper \*{""}), \*{""}, 'dumping \*{""}';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10188
+  };
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10189
+  SKIP: {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10190
+    skip "no XS", 1 if not defined &Data::Dumper::Dumpxs;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10191
+    local $Data::Dumper::Useperl = 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10192
+    &$tests;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10193
+  }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10194
+  local $Data::Dumper::Useperl = 1;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10195
+  &$tests;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10196
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10197
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10198
 # EOF
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10199
diff -ur --new-file perl-5.12.5/dist/Data-Dumper/t/deparse.t perl-5.12.5_dumper/dist/Data-Dumper/t/deparse.t
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10200
--- perl-5.12.5/dist/Data-Dumper/t/deparse.t	1969-12-31 19:00:00.000000000 -0500
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10201
+++ perl-5.12.5_dumper/dist/Data-Dumper/t/deparse.t	2014-10-09 15:06:36.176803024 -0400
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10202
@@ -0,0 +1,80 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10203
+#!./perl -w
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10204
+# t/deparse.t - Test Deparse()
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10205
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10206
+BEGIN {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10207
+    if ($ENV{PERL_CORE}){
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10208
+        require Config; import Config;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10209
+        no warnings 'once';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10210
+        if ($Config{'extensions'} !~ /\bData\/Dumper\b/) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10211
+            print "1..0 # Skip: Data::Dumper was not built\n";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10212
+            exit 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10213
+        }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10214
+    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10215
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10216
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10217
+use strict;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10218
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10219
+use Data::Dumper;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10220
+use Test::More tests =>  8;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10221
+use lib qw( ./t/lib );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10222
+use Testing qw( _dumptostr );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10223
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10224
+# Thanks to Arthur Axel "fREW" Schmidt:
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10225
+# http://search.cpan.org/~frew/Data-Dumper-Concise-2.020/lib/Data/Dumper/Concise.pm
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10226
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10227
+note("\$Data::Dumper::Deparse and Deparse()");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10228
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10229
+{
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10230
+    my ($obj, %dumps, $deparse, $starting);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10231
+    use strict;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10232
+    my $struct = { foo => "bar\nbaz", quux => sub { "fleem" } };
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10233
+    $obj = Data::Dumper->new( [ $struct ] );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10234
+    $dumps{'noprev'} = _dumptostr($obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10235
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10236
+    $starting = $Data::Dumper::Deparse;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10237
+    local $Data::Dumper::Deparse = 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10238
+    $obj = Data::Dumper->new( [ $struct ] );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10239
+    $dumps{'dddzero'} = _dumptostr($obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10240
+    local $Data::Dumper::Deparse = $starting;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10241
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10242
+    $obj = Data::Dumper->new( [ $struct ] );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10243
+    $obj->Deparse();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10244
+    $dumps{'objempty'} = _dumptostr($obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10245
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10246
+    $obj = Data::Dumper->new( [ $struct ] );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10247
+    $obj->Deparse(0);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10248
+    $dumps{'objzero'} = _dumptostr($obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10249
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10250
+    is($dumps{'noprev'}, $dumps{'dddzero'},
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10251
+        "No previous setting and \$Data::Dumper::Deparse = 0 are equivalent");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10252
+    is($dumps{'noprev'}, $dumps{'objempty'},
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10253
+        "No previous setting and Deparse() are equivalent");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10254
+    is($dumps{'noprev'}, $dumps{'objzero'},
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10255
+        "No previous setting and Deparse(0) are equivalent");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10256
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10257
+    local $Data::Dumper::Deparse = 1;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10258
+    $obj = Data::Dumper->new( [ $struct ] );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10259
+    $dumps{'dddtrue'} = _dumptostr($obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10260
+    local $Data::Dumper::Deparse = $starting;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10261
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10262
+    $obj = Data::Dumper->new( [ $struct ] );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10263
+    $obj->Deparse(1);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10264
+    $dumps{'objone'} = _dumptostr($obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10265
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10266
+    is($dumps{'dddtrue'}, $dumps{'objone'},
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10267
+        "\$Data::Dumper::Deparse = 1 and Deparse(1) are equivalent");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10268
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10269
+    isnt($dumps{'dddzero'}, $dumps{'dddtrue'},
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10270
+        "\$Data::Dumper::Deparse = 0 differs from \$Data::Dumper::Deparse = 1");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10271
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10272
+    like($dumps{'dddzero'},
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10273
+        qr/quux.*?sub.*?DUMMY/s,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10274
+        "\$Data::Dumper::Deparse = 0 reports DUMMY instead of deparsing coderef");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10275
+    unlike($dumps{'dddtrue'},
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10276
+        qr/quux.*?sub.*?DUMMY/s,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10277
+        "\$Data::Dumper::Deparse = 1 does not report DUMMY");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10278
+    like($dumps{'dddtrue'},
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10279
+        qr/quux.*?sub.*?use\sstrict.*?fleem/s,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10280
+        "\$Data::Dumper::Deparse = 1 deparses coderef");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10281
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10282
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10283
diff -ur --new-file perl-5.12.5/dist/Data-Dumper/t/dumper.t perl-5.12.5_dumper/dist/Data-Dumper/t/dumper.t
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10284
--- perl-5.12.5/dist/Data-Dumper/t/dumper.t	2012-11-03 19:25:59.000000000 -0400
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10285
+++ perl-5.12.5_dumper/dist/Data-Dumper/t/dumper.t	2014-10-09 15:06:36.180643046 -0400
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10286
@@ -30,44 +30,44 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10287
   my $t = eval $string;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10288
   ++$TNUM;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10289
   $t =~ s/([A-Z]+)\(0x[0-9a-f]+\)/$1(0xdeadbeef)/g
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10290
-      if ($WANT =~ /deadbeef/);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10291
+    if ($WANT =~ /deadbeef/);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10292
   if ($Is_ebcdic) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10293
-      # these data need massaging with non ascii character sets
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10294
-      # because of hashing order differences
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10295
-      $WANT = join("\n",sort(split(/\n/,$WANT)));
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10296
-      $WANT =~ s/\,$//mg;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10297
-      $t    = join("\n",sort(split(/\n/,$t)));
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10298
-      $t    =~ s/\,$//mg;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10299
+    # these data need massaging with non ascii character sets
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10300
+    # because of hashing order differences
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10301
+    $WANT = join("\n",sort(split(/\n/,$WANT)));
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10302
+    $WANT =~ s/\,$//mg;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10303
+    $t    = join("\n",sort(split(/\n/,$t)));
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10304
+    $t    =~ s/\,$//mg;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10305
   }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10306
   $name = $name ? " - $name" : '';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10307
   print( ($t eq $WANT and not $@) ? "ok $TNUM$name\n"
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10308
-	: "not ok $TNUM$name\n--Expected--\n$WANT\n--Got--\n$@$t\n");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10309
+    : "not ok $TNUM$name\n--Expected--\n$WANT\n--Got--\n$@$t\n");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10310
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10311
   ++$TNUM;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10312
   if ($Is_ebcdic) { # EBCDIC.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10313
-      if ($TNUM == 311 || $TNUM == 314) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10314
-	  eval $string;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10315
-      } else {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10316
-	  eval $t;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10317
-      }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10318
+    if ($TNUM == 311 || $TNUM == 314) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10319
+      eval $string;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10320
+    } else {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10321
+      eval $t;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10322
+    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10323
   } else {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10324
-      eval "$t";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10325
+    eval "$t";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10326
   }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10327
   print $@ ? "not ok $TNUM\n# \$@ says: $@\n" : "ok $TNUM\n";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10328
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10329
   $t = eval $string;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10330
   ++$TNUM;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10331
   $t =~ s/([A-Z]+)\(0x[0-9a-f]+\)/$1(0xdeadbeef)/g
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10332
-      if ($WANT =~ /deadbeef/);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10333
+    if ($WANT =~ /deadbeef/);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10334
   if ($Is_ebcdic) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10335
-      # here too there are hashing order differences
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10336
-      $WANT = join("\n",sort(split(/\n/,$WANT)));
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10337
-      $WANT =~ s/\,$//mg;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10338
-      $t    = join("\n",sort(split(/\n/,$t)));
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10339
-      $t    =~ s/\,$//mg;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10340
+    # here too there are hashing order differences
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10341
+    $WANT = join("\n",sort(split(/\n/,$WANT)));
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10342
+    $WANT =~ s/\,$//mg;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10343
+    $t    = join("\n",sort(split(/\n/,$t)));
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10344
+    $t    =~ s/\,$//mg;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10345
   }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10346
   print( ($t eq $WANT and not $@) ? "ok $TNUM\n"
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10347
-	: "not ok $TNUM\n--Expected--\n$WANT\n--Got--\n$@$t\n");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10348
+    : "not ok $TNUM\n--Expected--\n$WANT\n--Got--\n$@$t\n");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10349
 }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10350
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10351
 sub SKIP_TEST {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10352
@@ -83,11 +83,11 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10353
 $Data::Dumper::Useperl = 1;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10354
 if (defined &Data::Dumper::Dumpxs) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10355
   print "### XS extension loaded, will run XS tests\n";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10356
-  $TMAX = 363; $XS = 1;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10357
+  $TMAX = 438; $XS = 1;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10358
 }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10359
 else {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10360
   print "### XS extensions not loaded, will NOT run XS tests\n";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10361
-  $TMAX = 183; $XS = 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10362
+  $TMAX = 219; $XS = 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10363
 }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10364
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10365
 print "1..$TMAX\n";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10366
@@ -122,8 +122,20 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10367
 #$6 = $a->[1]{'c'};
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10368
 EOT
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10369
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10370
-TEST q(Data::Dumper->Dump([$a,$b,$c], [qw(a b), 6]));
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10371
-TEST q(Data::Dumper->Dumpxs([$a,$b,$c], [qw(a b), 6])) if $XS;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10372
+TEST (q(Data::Dumper->Dump([$a,$b,$c], [qw(a b), 6])),
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10373
+    'basic test with names: Dump()');
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10374
+TEST (q(Data::Dumper->Dumpxs([$a,$b,$c], [qw(a b), 6])),
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10375
+    'basic test with names: Dumpxs()')
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10376
+    if $XS;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10377
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10378
+SCOPE: {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10379
+    local $Data::Dumper::Sparseseen = 1;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10380
+    TEST (q(Data::Dumper->Dump([$a,$b,$c], [qw(a b), 6])),
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10381
+        'Sparseseen with names: Dump()');
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10382
+    TEST (q(Data::Dumper->Dumpxs([$a,$b,$c], [qw(a b), 6])),
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10383
+        'Sparseseen with names: Dumpxs()')
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10384
+        if $XS;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10385
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10386
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10387
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10388
 ############# 7
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10389
@@ -147,8 +159,20 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10390
 EOT
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10391
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10392
 $Data::Dumper::Purity = 1;         # fill in the holes for eval
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10393
-TEST q(Data::Dumper->Dump([$a, $b], [qw(*a b)])); # print as @a
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10394
-TEST q(Data::Dumper->Dumpxs([$a, $b], [qw(*a b)])) if $XS;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10395
+TEST (q(Data::Dumper->Dump([$a, $b], [qw(*a b)])),
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10396
+    'Purity: basic test with dereferenced array: Dump()'); # print as @a
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10397
+TEST (q(Data::Dumper->Dumpxs([$a, $b], [qw(*a b)])),
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10398
+    'Purity: basic test with dereferenced array: Dumpxs()')
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10399
+    if $XS;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10400
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10401
+SCOPE: {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10402
+  local $Data::Dumper::Sparseseen = 1;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10403
+  TEST (q(Data::Dumper->Dump([$a, $b], [qw(*a b)])),
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10404
+    'Purity: Sparseseen with dereferenced array: Dump()'); # print as @a
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10405
+  TEST (q(Data::Dumper->Dumpxs([$a, $b], [qw(*a b)])),
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10406
+    'Purity: Sparseseen with dereferenced array: Dumpxs()')
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10407
+    if $XS;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10408
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10409
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10410
 ############# 13
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10411
 ##
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10412
@@ -170,8 +194,11 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10413
 #$a = $b{'a'};
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10414
 EOT
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10415
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10416
-TEST q(Data::Dumper->Dump([$b, $a], [qw(*b a)])); # print as %b
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10417
-TEST q(Data::Dumper->Dumpxs([$b, $a], [qw(*b a)])) if $XS;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10418
+TEST (q(Data::Dumper->Dump([$b, $a], [qw(*b a)])),
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10419
+    'basic test with dereferenced hash: Dump()'); # print as %b
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10420
+TEST (q(Data::Dumper->Dumpxs([$b, $a], [qw(*b a)])),
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10421
+    'basic test with dereferenced hash: Dumpxs()')
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10422
+    if $XS;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10423
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10424
 ############# 19
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10425
 ##
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10426
@@ -193,17 +220,19 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10427
 EOT
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10428
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10429
 $Data::Dumper::Indent = 1;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10430
-TEST q(
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10431
+TEST (q(
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10432
        $d = Data::Dumper->new([$a,$b], [qw(a b)]);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10433
        $d->Seen({'*c' => $c});
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10434
        $d->Dump;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10435
-      );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10436
+      ),
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10437
+      'Indent: Seen: Dump()');
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10438
 if ($XS) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10439
-  TEST q(
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10440
+  TEST (q(
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10441
 	 $d = Data::Dumper->new([$a,$b], [qw(a b)]);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10442
 	 $d->Seen({'*c' => $c});
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10443
 	 $d->Dumpxs;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10444
-	);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10445
+     ),
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10446
+      'Indent: Seen: Dumpxs()');
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10447
 }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10448
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10449
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10450
@@ -230,9 +259,12 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10451
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10452
 $d->Indent(3);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10453
 $d->Purity(0)->Quotekeys(0);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10454
-TEST q( $d->Reset; $d->Dump );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10455
+TEST (q( $d->Reset; $d->Dump ),
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10456
+    'Indent(3): Purity(0)->Quotekeys(0): Dump()');
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10457
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10458
-TEST q( $d->Reset; $d->Dumpxs ) if $XS;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10459
+TEST (q( $d->Reset; $d->Dumpxs ),
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10460
+    'Indent(3): Purity(0)->Quotekeys(0): Dumpxs()')
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10461
+    if $XS;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10462
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10463
 ############# 31
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10464
 ##
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10465
@@ -253,8 +285,8 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10466
 #$VAR1->[2] = $VAR1->[1]{'c'};
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10467
 EOT
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10468
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10469
-TEST q(Dumper($a));
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10470
-TEST q(Data::Dumper::DumperX($a)) if $XS;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10471
+TEST (q(Dumper($a)), 'Dumper');
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10472
+TEST (q(Data::Dumper::DumperX($a)), 'DumperX') if $XS;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10473
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10474
 ############# 37
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10475
 ##
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10476
@@ -276,8 +308,11 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10477
   local $Data::Dumper::Purity = 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10478
   local $Data::Dumper::Quotekeys = 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10479
   local $Data::Dumper::Terse = 1;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10480
-  TEST q(Dumper($a));
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10481
-  TEST q(Data::Dumper::DumperX($a)) if $XS;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10482
+  TEST (q(Dumper($a)),
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10483
+    'Purity 0: Quotekeys 0: Terse 1: Dumper');
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10484
+  TEST (q(Data::Dumper::DumperX($a)),
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10485
+    'Purity 0: Quotekeys 0: Terse 1: DumperX')
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10486
+    if $XS;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10487
 }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10488
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10489
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10490
@@ -295,21 +330,10 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10491
        };
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10492
 {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10493
   local $Data::Dumper::Useqq = 1;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10494
-  TEST q(Dumper($foo));
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10495
+  TEST (q(Dumper($foo)), 'Useqq: Dumper');
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10496
+  TEST (q(Data::Dumper::DumperX($foo)), 'Useqq: DumperX') if $XS;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10497
 }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10498
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10499
-  $WANT = <<"EOT";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10500
-#\$VAR1 = {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10501
-#  'abc\0\\'\efg' => 'mno\0',
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10502
-#  'reftest' => \\\\1
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10503
-#};
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10504
-EOT
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10505
-
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10506
-  {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10507
-    local $Data::Dumper::Useqq = 1;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10508
-    TEST q(Data::Dumper::DumperX($foo)) if $XS;   # cheat
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10509
-  }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10510
-
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10511
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10512
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10513
 #############
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10514
@@ -353,8 +377,11 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10515
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10516
   $Data::Dumper::Purity = 1;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10517
   $Data::Dumper::Indent = 3;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10518
-  TEST q(Data::Dumper->Dump([\\*foo, \\@foo, \\%foo], ['*foo', '*bar', '*baz']));
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10519
-  TEST q(Data::Dumper->Dumpxs([\\*foo, \\@foo, \\%foo], ['*foo', '*bar', '*baz'])) if $XS;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10520
+  TEST (q(Data::Dumper->Dump([\\*foo, \\@foo, \\%foo], ['*foo', '*bar', '*baz'])),
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10521
+    'Purity 1: Indent 3: Dump()');
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10522
+  TEST (q(Data::Dumper->Dumpxs([\\*foo, \\@foo, \\%foo], ['*foo', '*bar', '*baz'])),
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10523
+    'Purity 1: Indent 3: Dumpxs()')
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10524
+    if $XS;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10525
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10526
 ############# 55
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10527
 ##
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10528
@@ -381,8 +408,11 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10529
 EOT
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10530
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10531
   $Data::Dumper::Indent = 1;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10532
-  TEST q(Data::Dumper->Dump([\\*foo, \\@foo, \\%foo], ['foo', 'bar', 'baz']));
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10533
-  TEST q(Data::Dumper->Dumpxs([\\*foo, \\@foo, \\%foo], ['foo', 'bar', 'baz'])) if $XS;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10534
+  TEST (q(Data::Dumper->Dump([\\*foo, \\@foo, \\%foo], ['foo', 'bar', 'baz'])),
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10535
+    'Purity 1: Indent 1: Dump()');
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10536
+  TEST (q(Data::Dumper->Dumpxs([\\*foo, \\@foo, \\%foo], ['foo', 'bar', 'baz'])),
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10537
+    'Purity 1: Indent 1: Dumpxs()')
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10538
+    if $XS;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10539
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10540
 ############# 61
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10541
 ##
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10542
@@ -408,8 +438,11 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10543
 #$foo = $bar[1];
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10544
 EOT
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10545
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10546
-  TEST q(Data::Dumper->Dump([\\@foo, \\%foo, \\*foo], ['*bar', '*baz', '*foo']));
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10547
-  TEST q(Data::Dumper->Dumpxs([\\@foo, \\%foo, \\*foo], ['*bar', '*baz', '*foo'])) if $XS;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10548
+  TEST (q(Data::Dumper->Dump([\\@foo, \\%foo, \\*foo], ['*bar', '*baz', '*foo'])),
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10549
+    'array|hash|glob dereferenced: Dump()');
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10550
+  TEST (q(Data::Dumper->Dumpxs([\\@foo, \\%foo, \\*foo], ['*bar', '*baz', '*foo'])),
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10551
+    'array|hash|glob dereferenced: Dumpxs()')
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10552
+    if $XS;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10553
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10554
 ############# 67
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10555
 ##
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10556
@@ -435,8 +468,11 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10557
 #$foo = $bar->[1];
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10558
 EOT
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10559
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10560
-  TEST q(Data::Dumper->Dump([\\@foo, \\%foo, \\*foo], ['bar', 'baz', 'foo']));
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10561
-  TEST q(Data::Dumper->Dumpxs([\\@foo, \\%foo, \\*foo], ['bar', 'baz', 'foo'])) if $XS;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10562
+  TEST (q(Data::Dumper->Dump([\\@foo, \\%foo, \\*foo], ['bar', 'baz', 'foo'])),
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10563
+    'array|hash|glob: not dereferenced: Dump()');
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10564
+  TEST (q(Data::Dumper->Dumpxs([\\@foo, \\%foo, \\*foo], ['bar', 'baz', 'foo'])),
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10565
+    'array|hash|glob: not dereferenced: Dumpxs()')
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10566
+    if $XS;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10567
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10568
 ############# 73
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10569
 ##
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10570
@@ -457,8 +493,11 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10571
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10572
   $Data::Dumper::Purity = 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10573
   $Data::Dumper::Quotekeys = 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10574
-  TEST q(Data::Dumper->Dump([\\*foo, \\@foo, \\%foo], ['*foo', '*bar', '*baz']));
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10575
-  TEST q(Data::Dumper->Dumpxs([\\*foo, \\@foo, \\%foo], ['*foo', '*bar', '*baz'])) if $XS;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10576
+  TEST (q(Data::Dumper->Dump([\\*foo, \\@foo, \\%foo], ['*foo', '*bar', '*baz'])),
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10577
+    'Purity 0: Quotekeys 0: dereferenced: Dump()');
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10578
+  TEST (q(Data::Dumper->Dumpxs([\\*foo, \\@foo, \\%foo], ['*foo', '*bar', '*baz'])),
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10579
+    'Purity 0: Quotekeys 0: dereferenced: Dumpxs')
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10580
+    if $XS;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10581
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10582
 ############# 79
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10583
 ##
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10584
@@ -477,8 +516,11 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10585
 #$baz = $bar->[2];
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10586
 EOT
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10587
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10588
-  TEST q(Data::Dumper->Dump([\\*foo, \\@foo, \\%foo], ['foo', 'bar', 'baz']));
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10589
-  TEST q(Data::Dumper->Dumpxs([\\*foo, \\@foo, \\%foo], ['foo', 'bar', 'baz'])) if $XS;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10590
+  TEST (q(Data::Dumper->Dump([\\*foo, \\@foo, \\%foo], ['foo', 'bar', 'baz'])),
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10591
+    'Purity 0: Quotekeys 0: not dereferenced: Dump()');
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10592
+  TEST (q(Data::Dumper->Dumpxs([\\*foo, \\@foo, \\%foo], ['foo', 'bar', 'baz'])),
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10593
+    'Purity 0: Quotekeys 0: not dereferenced: Dumpxs()')
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10594
+    if $XS;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10595
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10596
 }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10597
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10598
@@ -494,7 +536,7 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10599
   $dogs[2] = \%kennel;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10600
   $mutts = \%kennel;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10601
   $mutts = $mutts;         # avoid warning
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10602
-  
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10603
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10604
 ############# 85
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10605
 ##
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10606
   $WANT = <<'EOT';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10607
@@ -510,19 +552,21 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10608
 #%mutts = %kennels;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10609
 EOT
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10610
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10611
-  TEST q(
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10612
+  TEST (q(
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10613
 	 $d = Data::Dumper->new([\\%kennel, \\@dogs, $mutts],
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10614
 				[qw(*kennels *dogs *mutts)] );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10615
 	 $d->Dump;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10616
-	);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10617
+	),
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10618
+    'constructor: hash|array|scalar: Dump()');
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10619
   if ($XS) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10620
-    TEST q(
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10621
+    TEST (q(
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10622
 	   $d = Data::Dumper->new([\\%kennel, \\@dogs, $mutts],
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10623
 				  [qw(*kennels *dogs *mutts)] );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10624
 	   $d->Dumpxs;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10625
-	  );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10626
+	  ),
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10627
+      'constructor: hash|array|scalar: Dumpxs()');
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10628
   }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10629
-  
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10630
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10631
 ############# 91
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10632
 ##
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10633
   $WANT = <<'EOT';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10634
@@ -531,9 +575,9 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10635
 #%mutts = %kennels;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10636
 EOT
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10637
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10638
-  TEST q($d->Dump);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10639
-  TEST q($d->Dumpxs) if $XS;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10640
-  
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10641
+  TEST q($d->Dump), 'object call: Dump';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10642
+  TEST q($d->Dumpxs), 'object call: Dumpxs' if $XS;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10643
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10644
 ############# 97
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10645
 ##
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10646
   $WANT = <<'EOT';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10647
@@ -549,10 +593,9 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10648
 #%mutts = %kennels;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10649
 EOT
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10650
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10651
-  
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10652
-  TEST q($d->Reset; $d->Dump);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10653
+  TEST q($d->Reset; $d->Dump), 'Reset and Dump separate calls';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10654
   if ($XS) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10655
-    TEST q($d->Reset; $d->Dumpxs);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10656
+    TEST (q($d->Reset; $d->Dumpxs), 'Reset and Dumpxs separate calls');
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10657
   }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10658
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10659
 ############# 103
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10660
@@ -570,24 +613,26 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10661
 #%mutts = %{$dogs[2]};
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10662
 EOT
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10663
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10664
-  TEST q(
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10665
+  TEST (q(
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10666
 	 $d = Data::Dumper->new([\\@dogs, \\%kennel, $mutts],
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10667
 				[qw(*dogs *kennels *mutts)] );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10668
 	 $d->Dump;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10669
-	);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10670
+	),
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10671
+    'constructor: array|hash|scalar: Dump()');
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10672
   if ($XS) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10673
-    TEST q(
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10674
+    TEST (q(
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10675
 	   $d = Data::Dumper->new([\\@dogs, \\%kennel, $mutts],
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10676
 				  [qw(*dogs *kennels *mutts)] );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10677
 	   $d->Dumpxs;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10678
-	  );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10679
+	  ),
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10680
+	'constructor: array|hash|scalar: Dumpxs()');
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10681
   }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10682
-  
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10683
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10684
 ############# 109
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10685
 ##
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10686
-  TEST q($d->Reset->Dump);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10687
+  TEST q($d->Reset->Dump), 'Reset Dump chained';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10688
   if ($XS) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10689
-    TEST q($d->Reset->Dumpxs);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10690
+    TEST q($d->Reset->Dumpxs), 'Reset Dumpxs chained';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10691
   }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10692
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10693
 ############# 115
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10694
@@ -607,14 +652,20 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10695
 #);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10696
 EOT
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10697
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10698
-  TEST q(
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10699
+  TEST (q(
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10700
 	 $d = Data::Dumper->new( [\@dogs, \%kennel], [qw(*dogs *kennels)] );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10701
 	 $d->Deepcopy(1)->Dump;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10702
-	);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10703
+	),
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10704
+    'Deepcopy(1): Dump');
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10705
   if ($XS) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10706
-    TEST q($d->Reset->Dumpxs);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10707
+#    TEST 'q($d->Reset->Dumpxs);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10708
+    TEST (q(
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10709
+	    $d = Data::Dumper->new( [\@dogs, \%kennel], [qw(*dogs *kennels)] );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10710
+	    $d->Deepcopy(1)->Dumpxs;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10711
+    ),
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10712
+    'Deepcopy(1): Dumpxs');
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10713
   }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10714
-  
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10715
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10716
 }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10717
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10718
 {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10719
@@ -631,8 +682,10 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10720
 #];
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10721
 EOT
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10722
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10723
-TEST q(Data::Dumper->new([\&z,$c],['a','c'])->Seen({'b' => \&z})->Dump;);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10724
-TEST q(Data::Dumper->new([\&z,$c],['a','c'])->Seen({'b' => \&z})->Dumpxs;)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10725
+TEST (q(Data::Dumper->new([\&z,$c],['a','c'])->Seen({'b' => \&z})->Dump;),
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10726
+    'Seen: scalar: Dump');
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10727
+TEST (q(Data::Dumper->new([\&z,$c],['a','c'])->Seen({'b' => \&z})->Dumpxs;),
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10728
+    'Seen: scalar: Dumpxs')
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10729
 	if $XS;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10730
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10731
 ############# 127
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10732
@@ -644,8 +697,10 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10733
 #];
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10734
 EOT
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10735
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10736
-TEST q(Data::Dumper->new([\&z,$c],['a','c'])->Seen({'*b' => \&z})->Dump;);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10737
-TEST q(Data::Dumper->new([\&z,$c],['a','c'])->Seen({'*b' => \&z})->Dumpxs;)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10738
+TEST (q(Data::Dumper->new([\&z,$c],['a','c'])->Seen({'*b' => \&z})->Dump;),
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10739
+    'Seen: glob: Dump');
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10740
+TEST (q(Data::Dumper->new([\&z,$c],['a','c'])->Seen({'*b' => \&z})->Dumpxs;),
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10741
+    'Seen: glob: Dumpxs')
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10742
 	if $XS;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10743
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10744
 ############# 133
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10745
@@ -657,8 +712,11 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10746
 #);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10747
 EOT
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10748
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10749
-TEST q(Data::Dumper->new([\&z,$c],['*a','*c'])->Seen({'*b' => \&z})->Dump;);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10750
-TEST q(Data::Dumper->new([\&z,$c],['*a','*c'])->Seen({'*b' => \&z})->Dumpxs;)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10751
+TEST (q(Data::Dumper->new([\&z,$c],['*a','*c'])->Seen({'*b' => \&z})->Dump;),
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10752
+    'Seen: glob: dereference: Dump');
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10753
+TEST (q(Data::Dumper->new([\&z,$c],['*a','*c'])->Seen({'*b' =>
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10754
+\&z})->Dumpxs;),
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10755
+    'Seen: glob: derference: Dumpxs')
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10756
 	if $XS;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10757
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10758
 }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10759
@@ -677,8 +735,10 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10760
 #$a[1] = \$a[0];
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10761
 EOT
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10762
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10763
-TEST q(Data::Dumper->new([$a],['*a'])->Purity(1)->Dump;);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10764
-TEST q(Data::Dumper->new([$a],['*a'])->Purity(1)->Dumpxs;)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10765
+TEST (q(Data::Dumper->new([$a],['*a'])->Purity(1)->Dump;),
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10766
+    'Purity(1): dereference: Dump');
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10767
+TEST (q(Data::Dumper->new([$a],['*a'])->Purity(1)->Dumpxs;),
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10768
+    'Purity(1): dereference: Dumpxs')
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10769
 	if $XS;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10770
 }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10771
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10772
@@ -693,8 +753,10 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10773
 #$b = ${${$a}};
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10774
 EOT
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10775
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10776
-TEST q(Data::Dumper->new([$a,$b],['a','b'])->Purity(1)->Dump;);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10777
-TEST q(Data::Dumper->new([$a,$b],['a','b'])->Purity(1)->Dumpxs;)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10778
+TEST (q(Data::Dumper->new([$a,$b],['a','b'])->Purity(1)->Dump;),
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10779
+    'Purity(1): not dereferenced: Dump');
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10780
+TEST (q(Data::Dumper->new([$a,$b],['a','b'])->Purity(1)->Dumpxs;),
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10781
+    'Purity(1): not dereferenced: Dumpxs')
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10782
 	if $XS;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10783
 }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10784
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10785
@@ -725,8 +787,10 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10786
 #$b = ${$a->[0]{a}};
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10787
 EOT
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10788
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10789
-TEST q(Data::Dumper->new([$a,$b],['a','b'])->Purity(1)->Dump;);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10790
-TEST q(Data::Dumper->new([$a,$b],['a','b'])->Purity(1)->Dumpxs;)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10791
+TEST (q(Data::Dumper->new([$a,$b],['a','b'])->Purity(1)->Dump;),
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10792
+    'Purity(1): Dump again');
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10793
+TEST (q(Data::Dumper->new([$a,$b],['a','b'])->Purity(1)->Dumpxs;),
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10794
+    'Purity(1); Dumpxs again')
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10795
 	if $XS;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10796
 }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10797
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10798
@@ -751,8 +815,10 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10799
 #$c = ${${$a->[0][0][0][0]}};
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10800
 EOT
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10801
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10802
-TEST q(Data::Dumper->new([$a,$b,$c],['a','b','c'])->Purity(1)->Dump;);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10803
-TEST q(Data::Dumper->new([$a,$b,$c],['a','b','c'])->Purity(1)->Dumpxs;)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10804
+TEST (q(Data::Dumper->new([$a,$b,$c],['a','b','c'])->Purity(1)->Dump;),
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10805
+    'Purity(1): Dump: 3 elements');
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10806
+TEST (q(Data::Dumper->new([$a,$b,$c],['a','b','c'])->Purity(1)->Dumpxs;),
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10807
+    'Purity(1): Dumpxs: 3 elements')
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10808
 	if $XS;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10809
 }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10810
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10811
@@ -780,8 +846,10 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10812
 #$c = $a->{b}{c};
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10813
 EOT
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10814
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10815
-TEST q(Data::Dumper->new([$a,$b,$c],['a','b','c'])->Maxdepth(4)->Dump;);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10816
-TEST q(Data::Dumper->new([$a,$b,$c],['a','b','c'])->Maxdepth(4)->Dumpxs;)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10817
+TEST (q(Data::Dumper->new([$a,$b,$c],['a','b','c'])->Maxdepth(4)->Dump;),
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10818
+    'Maxdepth(4): Dump()');
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10819
+TEST (q(Data::Dumper->new([$a,$b,$c],['a','b','c'])->Maxdepth(4)->Dumpxs;),
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10820
+    'Maxdepth(4): Dumpxs()')
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10821
 	if $XS;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10822
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10823
 ############# 169
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10824
@@ -796,8 +864,10 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10825
 #];
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10826
 EOT
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10827
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10828
-TEST q(Data::Dumper->new([$a,$b,$c],['a','b','c'])->Maxdepth(1)->Dump;);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10829
-TEST q(Data::Dumper->new([$a,$b,$c],['a','b','c'])->Maxdepth(1)->Dumpxs;)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10830
+TEST (q(Data::Dumper->new([$a,$b,$c],['a','b','c'])->Maxdepth(1)->Dump;),
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10831
+    'Maxdepth(1): Dump()');
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10832
+TEST (q(Data::Dumper->new([$a,$b,$c],['a','b','c'])->Maxdepth(1)->Dumpxs;),
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10833
+    'Maxdepth(1): Dumpxs()')
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10834
 	if $XS;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10835
 }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10836
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10837
@@ -813,8 +883,10 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10838
 #];
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10839
 EOT
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10840
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10841
-TEST q(Data::Dumper->new([$b],['b'])->Purity(0)->Dump;);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10842
-TEST q(Data::Dumper->new([$b],['b'])->Purity(0)->Dumpxs;)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10843
+TEST (q(Data::Dumper->new([$b],['b'])->Purity(0)->Dump;),
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10844
+    'Purity(0): Dump()');
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10845
+TEST (q(Data::Dumper->new([$b],['b'])->Purity(0)->Dumpxs;),
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10846
+    'Purity(0): Dumpxs()')
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10847
 	if $XS;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10848
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10849
 ############# 181
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10850
@@ -827,8 +899,10 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10851
 EOT
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10852
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10853
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10854
-TEST q(Data::Dumper->new([$b],['b'])->Purity(1)->Dump;);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10855
-TEST q(Data::Dumper->new([$b],['b'])->Purity(1)->Dumpxs;)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10856
+TEST (q(Data::Dumper->new([$b],['b'])->Purity(1)->Dump;),
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10857
+    'Purity(1): Dump()');
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10858
+TEST (q(Data::Dumper->new([$b],['b'])->Purity(1)->Dumpxs;),
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10859
+    'Purity(1): Dumpxs')
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10860
 	if $XS;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10861
 }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10862
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10863
@@ -869,8 +943,10 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10864
 #};
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10865
 EOT
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10866
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10867
-TEST q(Data::Dumper->new([$a])->Dump;);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10868
-TEST q(Data::Dumper->new([$a])->Dumpxs;)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10869
+TEST (q(Data::Dumper->new([$a])->Dump;),
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10870
+    'basic test without names: Dump()');
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10871
+TEST (q(Data::Dumper->new([$a])->Dumpxs;),
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10872
+    'basic test without names: Dumpxs()')
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10873
 	if $XS;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10874
 }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10875
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10876
@@ -899,11 +975,8 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10877
 #};
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10878
 EOT
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10879
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10880
-# perl code does keys and values as numbers if possible
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10881
-TEST q(Data::Dumper->new([$c])->Dump;);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10882
-# XS code always does them as strings
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10883
-$WANT =~ s/ (\d+)/ '$1'/gs;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10884
-TEST q(Data::Dumper->new([$c])->Dumpxs;)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10885
+TEST q(Data::Dumper->new([$c])->Dump;), "sortkeys sub";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10886
+TEST q(Data::Dumper->new([$c])->Dumpxs;), "sortkeys sub (XS)"
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10887
 	if $XS;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10888
 }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10889
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10890
@@ -914,7 +987,7 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10891
   local $Data::Dumper::Sortkeys = \&sort205;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10892
   sub sort205 {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10893
     my $hash = shift;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10894
-    return [ 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10895
+    return [
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10896
       $hash eq $c ? (sort { $a <=> $b } keys %$hash)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10897
 		  : (reverse sort keys %$hash)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10898
     ];
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10899
@@ -949,9 +1022,10 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10900
 #];
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10901
 EOT
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10902
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10903
-TEST q(Data::Dumper->new([[$c, $d]])->Dump;);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10904
-$WANT =~ s/ (\d+)/ '$1'/gs;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10905
-TEST q(Data::Dumper->new([[$c, $d]])->Dumpxs;)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10906
+TEST q(Data::Dumper->new([[$c, $d]])->Dump;), "more sortkeys sub";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10907
+# the XS code does number values as strings
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10908
+$WANT =~ s/ (\d+)(,?)$/ '$1'$2/gm;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10909
+TEST q(Data::Dumper->new([[$c, $d]])->Dumpxs;), "more sortkeys sub (XS)"
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10910
 	if $XS;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10911
 }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10912
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10913
@@ -972,7 +1046,8 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10914
   if(" $Config{'extensions'} " !~ m[ B ]) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10915
     SKIP_TEST "Perl configured without B module";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10916
   } else {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10917
-    TEST q(Data::Dumper->new([{ foo => sub { print "foo"; } }])->Dump);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10918
+    TEST (q(Data::Dumper->new([{ foo => sub { print "foo"; } }])->Dump),
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10919
+        'Deparse 1: Indent 2; Dump()');
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10920
   }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10921
 }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10922
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10923
@@ -1387,8 +1462,11 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10924
   %ping = (chr (0xDECAF) x 4  =>\$ping);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10925
   for $Data::Dumper::Sortkeys (0, 1) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10926
     if($] >= 5.007) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10927
-      TEST q(Data::Dumper->Dump([\\*ping, \\%ping], ['*ping', '*pong']));
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10928
-      TEST q(Data::Dumper->Dumpxs([\\*ping, \\%ping], ['*ping', '*pong'])) if $XS;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10929
+      TEST (q(Data::Dumper->Dump([\\*ping, \\%ping], ['*ping', '*pong'])),
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10930
+        "utf8: Purity 1: Sortkeys: Dump()");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10931
+      TEST (q(Data::Dumper->Dumpxs([\\*ping, \\%ping], ['*ping', '*pong'])),
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10932
+        "utf8: Purity 1: Sortkeys: Dumpxs()")
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10933
+        if $XS;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10934
     } else {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10935
       SKIP_TEST "Incomplete support for UTF-8 in old perls";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10936
       SKIP_TEST "Incomplete support for UTF-8 in old perls";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10937
@@ -1425,8 +1503,183 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10938
 EOT
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10939
     @foo = ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10940
     $foo[2] = 1;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10941
-    TEST q(Data::Dumper->Dump([\@foo])), 'Richard Clamp, Message-Id: <[email protected]>';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10942
-    TEST q(Data::Dumper->Dumpxs([\@foo])) if $XS;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10943
+    TEST q(Data::Dumper->Dump([\@foo])), 'Richard Clamp, Message-Id: <[email protected]>: Dump()';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10944
+    TEST q(Data::Dumper->Dumpxs([\@foo])), 'Richard Clamp, Message-Id: <[email protected]>: Dumpxs()'if $XS;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10945
 }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10946
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10947
+############# 364
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10948
+# Make sure $obj->Dumpxs returns the right thing in list context. This was
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10949
+# broken by the initial attempt to fix [perl #74170].
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10950
+$WANT = <<'EOT';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10951
+#$VAR1 = [];
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10952
+EOT
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10953
+TEST q(join " ", new Data::Dumper [[]],[] =>->Dumpxs),
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10954
+    '$obj->Dumpxs in list context'
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10955
+ if $XS;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10956
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10957
+############# 366
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10958
+{
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10959
+  $WANT = <<'EOT';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10960
+#$VAR1 = [
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10961
+#  "\0\1\2\3\4\5\6\a\b\t\n\13\f\r\16\17\20\21\22\23\24\25\26\27\30\31\32\e\34\35\36\37 !\"#\$%&'()*+,-./0123456789:;<=>?\@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\177\200\201\202\203\204\205\206\207\210\211\212\213\214\215\216\217\220\221\222\223\224\225\226\227\230\231\232\233\234\235\236\237\240\241\242\243\244\245\246\247\250\251\252\253\254\255\256\257\260\261\262\263\264\265\266\267\270\271\272\273\274\275\276\277\300\301\302\303\304\305\306\307\310\311\312\313\314\315\316\317\320\321\322\323\324\325\326\327\330\331\332\333\334\335\336\337\340\341\342\343\344\345\346\347\350\351\352\353\354\355\356\357\360\361\362\363\364\365\366\367\370\371\372\373\374\375\376\377"
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10962
+#];
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10963
+EOT
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10964
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10965
+  $foo = [ join "", map chr, 0..255 ];
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10966
+  local $Data::Dumper::Useqq = 1;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10967
+  TEST (q(Dumper($foo)), 'All latin1 characters: Dumper');
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10968
+  TEST (q(Data::Dumper::DumperX($foo)), 'All latin1 characters: DumperX') if $XS;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10969
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10970
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10971
+############# 372
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10972
+{
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10973
+  $WANT = <<'EOT';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10974
+#$VAR1 = [
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10975
+#  "\0\1\2\3\4\5\6\a\b\t\n\13\f\r\16\17\20\21\22\23\24\25\26\27\30\31\32\e\34\35\36\37 !\"#\$%&'()*+,-./0123456789:;<=>?\@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\177\x{80}\x{81}\x{82}\x{83}\x{84}\x{85}\x{86}\x{87}\x{88}\x{89}\x{8a}\x{8b}\x{8c}\x{8d}\x{8e}\x{8f}\x{90}\x{91}\x{92}\x{93}\x{94}\x{95}\x{96}\x{97}\x{98}\x{99}\x{9a}\x{9b}\x{9c}\x{9d}\x{9e}\x{9f}\x{a0}\x{a1}\x{a2}\x{a3}\x{a4}\x{a5}\x{a6}\x{a7}\x{a8}\x{a9}\x{aa}\x{ab}\x{ac}\x{ad}\x{ae}\x{af}\x{b0}\x{b1}\x{b2}\x{b3}\x{b4}\x{b5}\x{b6}\x{b7}\x{b8}\x{b9}\x{ba}\x{bb}\x{bc}\x{bd}\x{be}\x{bf}\x{c0}\x{c1}\x{c2}\x{c3}\x{c4}\x{c5}\x{c6}\x{c7}\x{c8}\x{c9}\x{ca}\x{cb}\x{cc}\x{cd}\x{ce}\x{cf}\x{d0}\x{d1}\x{d2}\x{d3}\x{d4}\x{d5}\x{d6}\x{d7}\x{d8}\x{d9}\x{da}\x{db}\x{dc}\x{dd}\x{de}\x{df}\x{e0}\x{e1}\x{e2}\x{e3}\x{e4}\x{e5}\x{e6}\x{e7}\x{e8}\x{e9}\x{ea}\x{eb}\x{ec}\x{ed}\x{ee}\x{ef}\x{f0}\x{f1}\x{f2}\x{f3}\x{f4}\x{f5}\x{f6}\x{f7}\x{f8}\x{f9}\x{fa}\x{fb}\x{fc}\x{fd}\x{fe}\x{ff}\x{20ac}"
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10976
+#];
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10977
+EOT
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10978
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10979
+  $foo = [ join "", map chr, 0..255, 0x20ac ];
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10980
+  local $Data::Dumper::Useqq = 1;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10981
+  if ($] < 5.007) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10982
+    print "not ok " . (++$TNUM) . " # TODO - fails under 5.6\n" for 1..3;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10983
+  }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10984
+  else {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10985
+    TEST q(Dumper($foo)),
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10986
+	 'All latin1 characters with utf8 flag including a wide character: Dumper';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10987
+  }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10988
+  TEST (q(Data::Dumper::DumperX($foo)),
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10989
+    'All latin1 characters with utf8 flag including a wide character: DumperX')
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10990
+    if $XS;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10991
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10992
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10993
+############# 378
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10994
+{
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10995
+  # If XS cannot load, the pure-Perl version cannot deparse vstrings with
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10996
+  # underscores properly.  In 5.8.0, vstrings are just strings.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10997
+  my $no_vstrings = <<'NOVSTRINGS';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10998
+#$a = \'ABC';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 10999
+#$b = \'ABC';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11000
+#$c = \'ABC';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11001
+#$d = \'ABC';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11002
+NOVSTRINGS
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11003
+  my $vstrings_corr = <<'VSTRINGS_CORRECT';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11004
+#$a = \v65.66.67;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11005
+#$b = \v65.66.067;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11006
+#$c = \v65.66.6_7;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11007
+#$d = \'ABC';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11008
+VSTRINGS_CORRECT
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11009
+  $WANT = $] <= 5.0080001
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11010
+          ? $no_vstrings
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11011
+          : $vstrings_corr;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11012
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11013
+  @::_v = (
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11014
+    \v65.66.67,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11015
+    \($] < 5.007 ? v65.66.67 : eval 'v65.66.067'),
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11016
+    \v65.66.6_7,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11017
+    \~v190.189.188
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11018
+  );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11019
+  if ($] >= 5.010) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11020
+    TEST q(Data::Dumper->Dump(\@::_v, [qw(a b c d)])), 'vstrings';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11021
+    TEST q(Data::Dumper->Dumpxs(\@::_v, [qw(a b c d)])), 'xs vstrings'
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11022
+      if $XS;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11023
+  }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11024
+  else { # Skip tests before 5.10. vstrings considered funny before
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11025
+    SKIP_TEST "vstrings considered funny before 5.10.0";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11026
+    SKIP_TEST "vstrings considered funny before 5.10.0 (XS)"
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11027
+      if $XS;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11028
+  }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11029
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11030
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11031
+############# 384
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11032
+{
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11033
+  # [perl #107372] blessed overloaded globs
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11034
+  $WANT = <<'EOW';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11035
+#$VAR1 = bless( \*::finkle, 'overtest' );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11036
+EOW
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11037
+  {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11038
+    package overtest;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11039
+    use overload fallback=>1, q\""\=>sub{"oaoaa"};
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11040
+  }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11041
+  TEST q(Data::Dumper->Dump([bless \*finkle, "overtest"])),
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11042
+    'blessed overloaded globs';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11043
+  TEST q(Data::Dumper->Dumpxs([\*finkle])), 'blessed overloaded globs (xs)'
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11044
+    if $XS;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11045
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11046
+############# 390
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11047
+{
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11048
+  # [perl #74798] uncovered behaviour
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11049
+  $WANT = <<'EOW';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11050
+#$VAR1 = "\0000";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11051
+EOW
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11052
+  local $Data::Dumper::Useqq = 1;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11053
+  TEST q(Data::Dumper->Dump(["\x000"])),
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11054
+    "\\ octal followed by digit";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11055
+  TEST q(Data::Dumper->Dumpxs(["\x000"])), '\\ octal followed by digit (xs)'
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11056
+    if $XS;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11057
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11058
+  $WANT = <<'EOW';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11059
+#$VAR1 = "\x{100}\0000";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11060
+EOW
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11061
+  local $Data::Dumper::Useqq = 1;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11062
+  TEST q(Data::Dumper->Dump(["\x{100}\x000"])),
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11063
+    "\\ octal followed by digit unicode";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11064
+  TEST q(Data::Dumper->Dumpxs(["\x{100}\x000"])), '\\ octal followed by digit unicode (xs)'
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11065
+    if $XS;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11066
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11067
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11068
+  $WANT = <<'EOW';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11069
+#$VAR1 = "\0\x{660}";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11070
+EOW
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11071
+  TEST q(Data::Dumper->Dump(["\\x00\\x{0660}"])),
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11072
+    "\\ octal followed by unicode digit";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11073
+  TEST q(Data::Dumper->Dumpxs(["\\x00\\x{0660}"])), '\\ octal followed by unicode digit (xs)'
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11074
+    if $XS;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11075
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11076
+  # [perl #118933 - handling of digits
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11077
+$WANT = <<'EOW';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11078
+#$VAR1 = 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11079
+#$VAR2 = 1;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11080
+#$VAR3 = 90;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11081
+#$VAR4 = -10;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11082
+#$VAR5 = "010";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11083
+#$VAR6 = 112345678;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11084
+#$VAR7 = "1234567890";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11085
+EOW
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11086
+  TEST q(Data::Dumper->Dump([0, 1, 90, -10, "010", "112345678", "1234567890" ])),
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11087
+    "numbers and number-like scalars";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11088
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11089
+  TEST q(Data::Dumper->Dumpxs([0, 1, 90, -10, "010", "112345678", "1234567890" ])),
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11090
+    "numbers and number-like scalars"
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11091
+    if $XS;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11092
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11093
+############# 426
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11094
+{
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11095
+  # [perl #82948]
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11096
+  # re::regexp_pattern was moved to universal.c in v5.10.0-252-g192c1e2
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11097
+  # and apparently backported to maint-5.10
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11098
+  $WANT = $] > 5.010 ? <<'NEW' : <<'OLD';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11099
+#$VAR1 = qr/abc/;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11100
+#$VAR2 = qr/abc/i;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11101
+NEW
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11102
+#$VAR1 = qr/(?-xism:abc)/;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11103
+#$VAR2 = qr/(?i-xsm:abc)/;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11104
+OLD
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11105
+  TEST q(Data::Dumper->Dump([ qr/abc/, qr/abc/i ])), "qr//";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11106
+  TEST q(Data::Dumper->Dumpxs([ qr/abc/, qr/abc/i ])), "qr// xs"
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11107
+    if $XS;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11108
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11109
+############# 432
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11110
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11111
+{
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11112
+  sub foo {}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11113
+  $WANT = <<'EOW';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11114
+#*a = sub { "DUMMY" };
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11115
+#$b = \&a;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11116
+EOW
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11117
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11118
+  TEST q(Data::Dumper->new([ \&foo, \\&foo ], [ "*a", "b" ])->Dump), "name of code in *foo";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11119
+  TEST q(Data::Dumper->new([ \&foo, \\&foo ], [ "*a", "b" ])->Dumpxs), "name of code in *foo xs"
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11120
+    if $XS;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11121
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11122
+############# 436
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11123
diff -ur --new-file perl-5.12.5/dist/Data-Dumper/t/dumpperl.t perl-5.12.5_dumper/dist/Data-Dumper/t/dumpperl.t
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11124
--- perl-5.12.5/dist/Data-Dumper/t/dumpperl.t	1969-12-31 19:00:00.000000000 -0500
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11125
+++ perl-5.12.5_dumper/dist/Data-Dumper/t/dumpperl.t	2014-10-09 15:06:36.179445704 -0400
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11126
@@ -0,0 +1,144 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11127
+#!./perl -w
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11128
+# t/dumpperl.t - test all branches of, and modes of triggering, Dumpperl()
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11129
+BEGIN {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11130
+    if ($ENV{PERL_CORE}){
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11131
+        require Config; import Config;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11132
+        no warnings 'once';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11133
+        if ($Config{'extensions'} !~ /\bData\/Dumper\b/) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11134
+            print "1..0 # Skip: Data::Dumper was not built\n";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11135
+            exit 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11136
+        }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11137
+    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11138
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11139
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11140
+use strict;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11141
+use Carp;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11142
+use Data::Dumper;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11143
+use Test::More tests => 31;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11144
+use lib qw( ./t/lib );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11145
+use Testing qw( _dumptostr );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11146
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11147
+$Data::Dumper::Indent=1;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11148
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11149
+{
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11150
+    local $Data::Dumper::Useperl=1;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11151
+    local $Data::Dumper::Useqq=0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11152
+    local $Data::Dumper::Deparse=0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11153
+    note('$Data::Dumper::Useperl => 1');
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11154
+    run_tests_for_pure_perl_implementations();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11155
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11156
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11157
+{
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11158
+    local $Data::Dumper::Useperl=0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11159
+    local $Data::Dumper::Useqq=1;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11160
+    local $Data::Dumper::Deparse=0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11161
+    note('$Data::Dumper::Useqq => 1');
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11162
+    run_tests_for_pure_perl_implementations();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11163
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11164
+    
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11165
+{
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11166
+    local $Data::Dumper::Useperl=0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11167
+    local $Data::Dumper::Useqq=0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11168
+    local $Data::Dumper::Deparse=1;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11169
+    note('$Data::Dumper::Deparse => 1');
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11170
+    run_tests_for_pure_perl_implementations();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11171
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11172
+    
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11173
+    
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11174
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11175
+sub run_tests_for_pure_perl_implementations {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11176
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11177
+    my ($a, $b, $obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11178
+    my (@names);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11179
+    my (@newnames, $objagain, %newnames);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11180
+    my $dumpstr;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11181
+    $a = 'alpha';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11182
+    $b = 'beta';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11183
+    my @c = ( qw| eta theta | );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11184
+    my %d = ( iota => 'kappa' );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11185
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11186
+    note('names not provided');
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11187
+    $obj = Data::Dumper->new([$a, $b]);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11188
+    $dumpstr = _dumptostr($obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11189
+    like($dumpstr,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11190
+        qr/\$VAR1.+alpha.+\$VAR2.+beta/s,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11191
+        "Dump: two strings"
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11192
+    );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11193
+    
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11194
+    $obj = Data::Dumper->new([$a, \@c]);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11195
+    $dumpstr = _dumptostr($obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11196
+    like($dumpstr,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11197
+        qr/\$VAR1.+alpha.+\$VAR2.+\[.+eta.+theta.+\]/s,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11198
+        "Dump: one string, one array ref"
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11199
+    );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11200
+    
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11201
+    $obj = Data::Dumper->new([$a, \%d]);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11202
+    $dumpstr = _dumptostr($obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11203
+    like($dumpstr,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11204
+        qr/\$VAR1.+alpha.+\$VAR2.+\{.+iota.+kappa.+\}/s,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11205
+        "Dump: one string, one hash ref"
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11206
+    );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11207
+    
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11208
+    $obj = Data::Dumper->new([$a, undef]);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11209
+    $dumpstr = _dumptostr($obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11210
+    like($dumpstr,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11211
+        qr/\$VAR1.+alpha.+\$VAR2.+undef/s,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11212
+        "Dump: one string, one undef"
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11213
+    );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11214
+    
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11215
+    note('names provided');
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11216
+    
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11217
+    $obj = Data::Dumper->new([$a, $b], [ qw( a b ) ]);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11218
+    $dumpstr = _dumptostr($obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11219
+    like($dumpstr,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11220
+        qr/\$a.+alpha.+\$b.+beta/s,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11221
+        "Dump: names: two strings"
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11222
+    );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11223
+    
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11224
+    $obj = Data::Dumper->new([$a, \@c], [ qw( a *c ) ]);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11225
+    $dumpstr = _dumptostr($obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11226
+    like($dumpstr,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11227
+        qr/\$a.+alpha.+\@c.+eta.+theta/s,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11228
+        "Dump: names: one string, one array ref"
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11229
+    );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11230
+    
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11231
+    $obj = Data::Dumper->new([$a, \%d], [ qw( a *d ) ]);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11232
+    $dumpstr = _dumptostr($obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11233
+    like($dumpstr,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11234
+        qr/\$a.+alpha.+\%d.+iota.+kappa/s,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11235
+        "Dump: names: one string, one hash ref"
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11236
+    );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11237
+    
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11238
+    $obj = Data::Dumper->new([$a,undef], [qw(a *c)]);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11239
+    $dumpstr = _dumptostr($obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11240
+    like($dumpstr,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11241
+        qr/\$a.+alpha.+\$c.+undef/s,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11242
+        "Dump: names: one string, one undef"
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11243
+    );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11244
+    
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11245
+    $obj = Data::Dumper->new([$a, $b], [ 'a', '']);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11246
+    $dumpstr = _dumptostr($obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11247
+    like($dumpstr,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11248
+        qr/\$a.+alpha.+\$.+beta/s,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11249
+        "Dump: names: two strings: one name empty"
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11250
+    );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11251
+    
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11252
+    $obj = Data::Dumper->new([$a, $b], [ 'a', '$foo']);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11253
+    $dumpstr = _dumptostr($obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11254
+    no warnings 'uninitialized';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11255
+    like($dumpstr,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11256
+        qr/\$a.+alpha.+\$foo.+beta/s,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11257
+        "Dump: names: two strings: one name start with '\$'"
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11258
+    );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11259
+    use warnings;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11260
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11261
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11262
+{
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11263
+    my ($obj, $dumpstr, $realtype);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11264
+    $obj = Data::Dumper->new([ {IO => *{$::{STDERR}}{IO}} ]);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11265
+    $obj->Useperl(1);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11266
+    eval { $dumpstr = _dumptostr($obj); };
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11267
+    $realtype = 'IO';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11268
+    like($@, qr/Can't handle '$realtype' type/,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11269
+        "Got expected error: pure-perl: Data-Dumper does not handle $realtype");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11270
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11271
diff -ur --new-file perl-5.12.5/dist/Data-Dumper/t/freezer_useperl.t perl-5.12.5_dumper/dist/Data-Dumper/t/freezer_useperl.t
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11272
--- perl-5.12.5/dist/Data-Dumper/t/freezer_useperl.t	1969-12-31 19:00:00.000000000 -0500
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11273
+++ perl-5.12.5_dumper/dist/Data-Dumper/t/freezer_useperl.t	2014-10-09 15:06:36.176584265 -0400
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11274
@@ -0,0 +1,106 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11275
+#!./perl -w
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11276
+#
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11277
+# test a few problems with the Freezer option, not a complete Freezer
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11278
+# test suite yet
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11279
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11280
+BEGIN {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11281
+    require Config; import Config;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11282
+    no warnings 'once';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11283
+    if ($Config{'extensions'} !~ /\bData\/Dumper\b/) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11284
+	print "1..0 # Skip: Data::Dumper was not built\n";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11285
+	exit 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11286
+    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11287
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11288
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11289
+use strict;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11290
+use Test::More tests =>  7;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11291
+use Data::Dumper;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11292
+use lib qw( ./t/lib );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11293
+use Testing qw( _dumptostr );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11294
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11295
+local $Data::Dumper::Useperl = 1;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11296
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11297
+{
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11298
+    local $Data::Dumper::Freezer = 'freeze';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11299
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11300
+    # test for seg-fault bug when freeze() returns a non-ref
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11301
+    {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11302
+        my $foo = Test1->new("foo");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11303
+        my $dumped_foo = Dumper($foo);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11304
+        ok($dumped_foo,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11305
+           "Use of freezer sub which returns non-ref worked.");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11306
+        like($dumped_foo, qr/frozed/,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11307
+             "Dumped string has the key added by Freezer with useperl.");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11308
+        like(join(" ", Dumper($foo)), qr/\A\$VAR1 = /,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11309
+             "Dumped list doesn't begin with Freezer's return value with useperl");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11310
+    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11311
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11312
+    # test for warning when an object does not have a freeze()
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11313
+    {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11314
+        my $warned = 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11315
+        local $SIG{__WARN__} = sub { $warned++ };
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11316
+        my $bar = Test2->new("bar");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11317
+        my $dumped_bar = Dumper($bar);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11318
+        is($warned, 0, "A missing freeze() shouldn't warn.");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11319
+    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11320
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11321
+    # a freeze() which die()s should still trigger the warning
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11322
+    {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11323
+        my $warned = 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11324
+        local $SIG{__WARN__} = sub { $warned++; };
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11325
+        my $bar = Test3->new("bar");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11326
+        my $dumped_bar = Dumper($bar);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11327
+        is($warned, 1, "A freeze() which die()s should warn.");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11328
+    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11329
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11330
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11331
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11332
+{
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11333
+    my ($obj, %dumps);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11334
+    my $foo = Test1->new("foo");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11335
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11336
+    local $Data::Dumper::Freezer = '';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11337
+    $obj = Data::Dumper->new( [ $foo ] );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11338
+    $dumps{'ddfemptystr'} = _dumptostr($obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11339
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11340
+    local $Data::Dumper::Freezer = undef;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11341
+    $obj = Data::Dumper->new( [ $foo ] );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11342
+    $dumps{'ddfundef'} = _dumptostr($obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11343
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11344
+    is($dumps{'ddfundef'}, $dumps{'ddfemptystr'},
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11345
+        "\$Data::Dumper::Freezer same with empty string or undef");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11346
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11347
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11348
+{
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11349
+    my ($obj, %dumps);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11350
+    my $foo = Test1->new("foo");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11351
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11352
+    $obj = Data::Dumper->new( [ $foo ] );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11353
+    $obj->Freezer('');
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11354
+    $dumps{'objemptystr'} = _dumptostr($obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11355
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11356
+    $obj = Data::Dumper->new( [ $foo ] );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11357
+    $obj->Freezer(undef);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11358
+    $dumps{'objundef'} = _dumptostr($obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11359
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11360
+    is($dumps{'objundef'}, $dumps{'objemptystr'},
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11361
+        "Freezer() same with empty string or undef");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11362
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11363
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11364
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11365
+# a package with a freeze() which returns a non-ref
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11366
+package Test1;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11367
+sub new { bless({name => $_[1]}, $_[0]) }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11368
+sub freeze {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11369
+    my $self = shift;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11370
+    $self->{frozed} = 1;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11371
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11372
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11373
+# a package without a freeze()
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11374
+package Test2;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11375
+sub new { bless({name => $_[1]}, $_[0]) }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11376
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11377
+# a package with a freeze() which dies
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11378
+package Test3;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11379
+sub new { bless({name => $_[1]}, $_[0]) }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11380
+sub freeze { die "freeze() is broken" }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11381
diff -ur --new-file perl-5.12.5/dist/Data-Dumper/t/freezer.t perl-5.12.5_dumper/dist/Data-Dumper/t/freezer.t
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11382
--- perl-5.12.5/dist/Data-Dumper/t/freezer.t	2012-11-03 19:25:59.000000000 -0400
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11383
+++ perl-5.12.5_dumper/dist/Data-Dumper/t/freezer.t	2014-10-09 15:06:36.179907539 -0400
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11384
@@ -7,74 +7,104 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11385
     require Config; import Config;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11386
     no warnings 'once';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11387
     if ($Config{'extensions'} !~ /\bData\/Dumper\b/) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11388
-	print "1..0 # Skip: Data::Dumper was not built\n";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11389
-	exit 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11390
+        print "1..0 # Skip: Data::Dumper was not built\n";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11391
+        exit 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11392
     }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11393
 }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11394
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11395
 use strict;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11396
-use Test::More qw(no_plan);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11397
+use Test::More tests =>  8;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11398
 use Data::Dumper;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11399
-$Data::Dumper::Freezer = 'freeze';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11400
+use lib qw( ./t/lib );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11401
+use Testing qw( _dumptostr );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11402
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11403
-# test for seg-fault bug when freeze() returns a non-ref
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11404
-my $foo = Test1->new("foo");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11405
-my $dumped_foo = Dumper($foo);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11406
-ok($dumped_foo, 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11407
-   "Use of freezer sub which returns non-ref worked.");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11408
-like($dumped_foo, qr/frozed/, 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11409
-     "Dumped string has the key added by Freezer.");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11410
-
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11411
-# run the same tests with useperl.  this always worked
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11412
 {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11413
-    local $Data::Dumper::Useperl = 1;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11414
-    my $foo = Test1->new("foo");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11415
-    my $dumped_foo = Dumper($foo);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11416
-    ok($dumped_foo, 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11417
-       "Use of freezer sub which returns non-ref worked with useperl");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11418
-    like($dumped_foo, qr/frozed/, 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11419
-         "Dumped string has the key added by Freezer with useperl.");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11420
+    local $Data::Dumper::Freezer = 'freeze';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11421
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11422
+    # test for seg-fault bug when freeze() returns a non-ref
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11423
+    {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11424
+        my $foo = Test1->new("foo");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11425
+        my $dumped_foo = Dumper($foo);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11426
+        ok($dumped_foo,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11427
+           "Use of freezer sub which returns non-ref worked.");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11428
+        like($dumped_foo, qr/frozed/,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11429
+             "Dumped string has the key added by Freezer with useperl.");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11430
+        like(join(" ", Dumper($foo)), qr/\A\$VAR1 = /,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11431
+             "Dumped list doesn't begin with Freezer's return value with useperl");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11432
+    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11433
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11434
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11435
+    # test for warning when an object does not have a freeze()
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11436
+    {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11437
+        my $warned = 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11438
+        local $SIG{__WARN__} = sub { $warned++ };
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11439
+        my $bar = Test2->new("bar");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11440
+        my $dumped_bar = Dumper($bar);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11441
+        is($warned, 0, "A missing freeze() shouldn't warn.");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11442
+    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11443
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11444
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11445
+    # a freeze() which die()s should still trigger the warning
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11446
+    {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11447
+        my $warned = 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11448
+        local $SIG{__WARN__} = sub { $warned++; };
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11449
+        my $bar = Test3->new("bar");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11450
+        my $dumped_bar = Dumper($bar);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11451
+        is($warned, 1, "A freeze() which die()s should warn.");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11452
+    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11453
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11454
 }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11455
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11456
-# test for warning when an object doesn't have a freeze()
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11457
 {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11458
-    my $warned = 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11459
-    local $SIG{__WARN__} = sub { $warned++ };
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11460
-    my $bar = Test2->new("bar");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11461
-    my $dumped_bar = Dumper($bar);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11462
-    is($warned, 0, "A missing freeze() shouldn't warn.");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11463
-}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11464
+    my ($obj, %dumps);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11465
+    my $foo = Test1->new("foo");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11466
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11467
+    local $Data::Dumper::Freezer = 'freeze';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11468
+    $obj = Data::Dumper->new( [ $foo ] );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11469
+    $dumps{'ddftrue'} = _dumptostr($obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11470
+    local $Data::Dumper::Freezer = '';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11471
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11472
+    $obj = Data::Dumper->new( [ $foo ] );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11473
+    $obj->Freezer('freeze');
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11474
+    $dumps{'objset'} = _dumptostr($obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11475
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11476
-# run the same test with useperl, which always worked
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11477
-{
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11478
-    local $Data::Dumper::Useperl = 1;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11479
-    my $warned = 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11480
-    local $SIG{__WARN__} = sub { $warned++ };
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11481
-    my $bar = Test2->new("bar");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11482
-    my $dumped_bar = Dumper($bar);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11483
-    is($warned, 0, "A missing freeze() shouldn't warn with useperl");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11484
+    is($dumps{'ddftrue'}, $dumps{'objset'},
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11485
+        "\$Data::Dumper::Freezer and Freezer() are equivalent");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11486
 }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11487
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11488
-# a freeze() which die()s should still trigger the warning
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11489
 {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11490
-    my $warned = 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11491
-    local $SIG{__WARN__} = sub { $warned++; };
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11492
-    my $bar = Test3->new("bar");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11493
-    my $dumped_bar = Dumper($bar);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11494
-    is($warned, 1, "A freeze() which die()s should warn.");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11495
+    my ($obj, %dumps);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11496
+    my $foo = Test1->new("foo");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11497
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11498
+    local $Data::Dumper::Freezer = '';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11499
+    $obj = Data::Dumper->new( [ $foo ] );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11500
+    $dumps{'ddfemptystr'} = _dumptostr($obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11501
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11502
+    local $Data::Dumper::Freezer = undef;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11503
+    $obj = Data::Dumper->new( [ $foo ] );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11504
+    $dumps{'ddfundef'} = _dumptostr($obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11505
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11506
+    is($dumps{'ddfundef'}, $dumps{'ddfemptystr'},
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11507
+        "\$Data::Dumper::Freezer same with empty string or undef");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11508
 }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11509
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11510
-# the same should work in useperl
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11511
 {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11512
-    local $Data::Dumper::Useperl = 1;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11513
-    my $warned = 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11514
-    local $SIG{__WARN__} = sub { $warned++; };
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11515
-    my $bar = Test3->new("bar");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11516
-    my $dumped_bar = Dumper($bar);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11517
-    is($warned, 1, "A freeze() which die()s should warn with useperl.");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11518
+    my ($obj, %dumps);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11519
+    my $foo = Test1->new("foo");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11520
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11521
+    $obj = Data::Dumper->new( [ $foo ] );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11522
+    $obj->Freezer('');
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11523
+    $dumps{'objemptystr'} = _dumptostr($obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11524
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11525
+    $obj = Data::Dumper->new( [ $foo ] );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11526
+    $obj->Freezer(undef);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11527
+    $dumps{'objundef'} = _dumptostr($obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11528
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11529
+    is($dumps{'objundef'}, $dumps{'objemptystr'},
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11530
+        "Freezer() same with empty string or undef");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11531
 }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11532
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11533
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11534
 # a package with a freeze() which returns a non-ref
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11535
 package Test1;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11536
 sub new { bless({name => $_[1]}, $_[0]) }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11537
@@ -90,4 +120,4 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11538
 # a package with a freeze() which dies
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11539
 package Test3;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11540
 sub new { bless({name => $_[1]}, $_[0]) }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11541
-sub freeze { die "freeze() is broked" }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11542
+sub freeze { die "freeze() is broken" }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11543
diff -ur --new-file perl-5.12.5/dist/Data-Dumper/t/indent.t perl-5.12.5_dumper/dist/Data-Dumper/t/indent.t
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11544
--- perl-5.12.5/dist/Data-Dumper/t/indent.t	1969-12-31 19:00:00.000000000 -0500
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11545
+++ perl-5.12.5_dumper/dist/Data-Dumper/t/indent.t	2014-10-09 15:06:36.178235441 -0400
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11546
@@ -0,0 +1,113 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11547
+#!./perl -w
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11548
+# t/indent.t - Test Indent()
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11549
+BEGIN {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11550
+    if ($ENV{PERL_CORE}){
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11551
+        require Config; import Config;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11552
+        no warnings 'once';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11553
+        if ($Config{'extensions'} !~ /\bData\/Dumper\b/) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11554
+            print "1..0 # Skip: Data::Dumper was not built\n";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11555
+            exit 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11556
+        }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11557
+    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11558
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11559
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11560
+use strict;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11561
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11562
+use Data::Dumper;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11563
+use Test::More tests => 10;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11564
+use lib qw( ./t/lib );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11565
+use Testing qw( _dumptostr );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11566
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11567
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11568
+my $hash = { foo => 42 };
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11569
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11570
+my (%dumpstr);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11571
+my $dumper;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11572
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11573
+$dumper = Data::Dumper->new([$hash]);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11574
+$dumpstr{noindent} = _dumptostr($dumper);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11575
+# $VAR1 = {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11576
+#           'foo' => 42
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11577
+#         };
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11578
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11579
+$dumper = Data::Dumper->new([$hash]);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11580
+$dumper->Indent();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11581
+$dumpstr{indent_no_arg} = _dumptostr($dumper);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11582
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11583
+$dumper = Data::Dumper->new([$hash]);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11584
+$dumper->Indent(undef);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11585
+$dumpstr{indent_undef} = _dumptostr($dumper);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11586
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11587
+$dumper = Data::Dumper->new([$hash]);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11588
+$dumper->Indent(0);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11589
+$dumpstr{indent_0} = _dumptostr($dumper);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11590
+# $VAR1 = {'foo' => 42}; # no newline
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11591
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11592
+$dumper = Data::Dumper->new([$hash]);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11593
+$dumper->Indent(1);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11594
+$dumpstr{indent_1} = _dumptostr($dumper);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11595
+# $VAR1 = {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11596
+#   'foo' => 42
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11597
+# };
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11598
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11599
+$dumper = Data::Dumper->new([$hash]);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11600
+$dumper->Indent(2);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11601
+$dumpstr{indent_2} = _dumptostr($dumper);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11602
+# $VAR1 = {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11603
+#           'foo' => 42
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11604
+#         };
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11605
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11606
+is($dumpstr{noindent}, $dumpstr{indent_no_arg},
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11607
+    "absence of Indent is same as Indent()");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11608
+is($dumpstr{noindent}, $dumpstr{indent_undef},
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11609
+    "absence of Indent is same as Indent(undef)");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11610
+isnt($dumpstr{noindent}, $dumpstr{indent_0},
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11611
+    "absence of Indent is different from Indent(0)");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11612
+isnt($dumpstr{indent_0}, $dumpstr{indent_1},
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11613
+    "Indent(0) is different from Indent(1)");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11614
+cmp_ok(length($dumpstr{indent_0}), '<=', length($dumpstr{indent_1}),
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11615
+    "Indent(0) is more compact than Indent(1)");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11616
+is($dumpstr{noindent}, $dumpstr{indent_2},
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11617
+    "absence of Indent is same as Indent(2), i.e., 2 is default");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11618
+cmp_ok(length($dumpstr{indent_1}), '<=', length($dumpstr{indent_2}),
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11619
+    "Indent(1) is more compact than Indent(2)");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11620
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11621
+my $array = [ qw| foo 42 | ];
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11622
+$dumper = Data::Dumper->new([$array]);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11623
+$dumper->Indent(2);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11624
+$dumpstr{ar_indent_2} = _dumptostr($dumper);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11625
+# $VAR1 = [
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11626
+#           'foo',
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11627
+#           '42'
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11628
+#         ];
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11629
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11630
+$dumper = Data::Dumper->new([$array]);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11631
+$dumper->Indent(3);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11632
+$dumpstr{ar_indent_3} = _dumptostr($dumper);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11633
+# $VAR1 = [
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11634
+#           #0
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11635
+#           'foo',
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11636
+#           #1
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11637
+#           '42'
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11638
+#         ];
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11639
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11640
+isnt($dumpstr{ar_indent_2}, $dumpstr{ar_indent_3},
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11641
+    "On arrays, Indent(2) is different from Indent(3)");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11642
+like($dumpstr{ar_indent_3},
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11643
+    qr/\#0.+'foo'.+\#1.+42/s,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11644
+    "Indent(3) annotates array elements with their indices"
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11645
+);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11646
+{
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11647
+    no if $] < 5.011, warnings => 'deprecated';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11648
+    is(scalar(split("\n" => $dumpstr{ar_indent_2})) + 2,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11649
+        scalar(split("\n" => $dumpstr{ar_indent_3})),
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11650
+        "Indent(3) runs 2 lines longer than Indent(2)");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11651
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11652
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11653
+__END__
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11654
+is($dumpstr{noindent}, $dumpstr{indent_0},
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11655
+    "absence of Indent is same as Indent(0)");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11656
+isnt($dumpstr{noindent}, $dumpstr{indent_1},
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11657
+    "absence of Indent is different from Indent(1)");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11658
+print STDERR $dumpstr{indent_0};
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11659
+print STDERR $dumpstr{ar_indent_3};
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11660
diff -ur --new-file perl-5.12.5/dist/Data-Dumper/t/lib/Testing.pm perl-5.12.5_dumper/dist/Data-Dumper/t/lib/Testing.pm
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11661
--- perl-5.12.5/dist/Data-Dumper/t/lib/Testing.pm	1969-12-31 19:00:00.000000000 -0500
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11662
+++ perl-5.12.5_dumper/dist/Data-Dumper/t/lib/Testing.pm	2014-10-09 15:06:36.173740795 -0400
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11663
@@ -0,0 +1,15 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11664
+package Testing;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11665
+use 5.006_001;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11666
+use strict;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11667
+use warnings;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11668
+require Exporter;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11669
+our @ISA = qw(Exporter);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11670
+our @EXPORT_OK = qw(_dumptostr);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11671
+use Carp;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11672
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11673
+sub _dumptostr {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11674
+    my ($obj) = @_;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11675
+    return join '', $obj->Dump;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11676
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11677
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11678
+1;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11679
diff -ur --new-file perl-5.12.5/dist/Data-Dumper/t/misc.t perl-5.12.5_dumper/dist/Data-Dumper/t/misc.t
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11680
--- perl-5.12.5/dist/Data-Dumper/t/misc.t	1969-12-31 19:00:00.000000000 -0500
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11681
+++ perl-5.12.5_dumper/dist/Data-Dumper/t/misc.t	2014-10-09 15:06:36.174735741 -0400
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11682
@@ -0,0 +1,209 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11683
+#!./perl -w
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11684
+# t/misc.t - Test various functionality
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11685
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11686
+BEGIN {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11687
+    if ($ENV{PERL_CORE}){
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11688
+        require Config; import Config;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11689
+        no warnings 'once';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11690
+        if ($Config{'extensions'} !~ /\bData\/Dumper\b/) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11691
+            print "1..0 # Skip: Data::Dumper was not built\n";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11692
+            exit 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11693
+        }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11694
+    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11695
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11696
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11697
+use strict;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11698
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11699
+use Data::Dumper;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11700
+use Test::More tests => 20;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11701
+use lib qw( ./t/lib );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11702
+use Testing qw( _dumptostr );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11703
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11704
+my ($a, $b, @c, %d);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11705
+$a = 'alpha';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11706
+$b = 'beta';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11707
+@c = ( qw| gamma delta epsilon | );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11708
+%d = ( zeta => 'eta', theta => 'iota' );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11709
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11710
+note("Argument validation for new()");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11711
+{
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11712
+    local $@ = '';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11713
+    eval { my $obj = Data::Dumper->new(undef); };
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11714
+    like($@,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11715
+        qr/^Usage:\s+PACKAGE->new\(ARRAYREF,\s*\[ARRAYREF\]\)/,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11716
+        "Got error message: new() needs defined argument"
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11717
+    );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11718
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11719
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11720
+{
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11721
+    local $@ = '';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11722
+    eval { my $obj = Data::Dumper->new( { $a => $b } ); };
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11723
+    like($@,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11724
+        qr/^Usage:\s+PACKAGE->new\(ARRAYREF,\s*\[ARRAYREF\]\)/,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11725
+        "Got error message: new() needs array reference"
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11726
+    );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11727
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11728
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11729
+{
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11730
+    note("\$Data::Dumper::Useperl, Useqq, Deparse");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11731
+    my ($obj, %dumpstr);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11732
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11733
+    local $Data::Dumper::Useperl = 1;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11734
+    $obj = Data::Dumper->new( [ \@c, \%d ] );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11735
+    $dumpstr{useperl} = [ $obj->Values ];
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11736
+    local $Data::Dumper::Useperl = 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11737
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11738
+    local $Data::Dumper::Useqq = 1;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11739
+    $obj = Data::Dumper->new( [ \@c, \%d ] );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11740
+    $dumpstr{useqq} = [ $obj->Values ];
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11741
+    local $Data::Dumper::Useqq = 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11742
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11743
+    is_deeply($dumpstr{useperl}, $dumpstr{useqq},
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11744
+        "Useperl and Useqq return same");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11745
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11746
+    local $Data::Dumper::Deparse = 1;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11747
+    $obj = Data::Dumper->new( [ \@c, \%d ] );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11748
+    $dumpstr{deparse} = [ $obj->Values ];
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11749
+    local $Data::Dumper::Deparse = 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11750
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11751
+    is_deeply($dumpstr{useperl}, $dumpstr{deparse},
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11752
+        "Useperl and Deparse return same");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11753
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11754
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11755
+{
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11756
+    note("\$Data::Dumper::Pad and \$obj->Pad");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11757
+    my ($obj, %dumps, $pad);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11758
+    $obj = Data::Dumper->new([$a,$b]);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11759
+    $dumps{'noprev'} = _dumptostr($obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11760
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11761
+    $obj = Data::Dumper->new([$a,$b]);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11762
+    $obj->Pad(undef);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11763
+    $dumps{'undef'} = _dumptostr($obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11764
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11765
+    $obj = Data::Dumper->new([$a,$b]);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11766
+    $obj->Pad('');
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11767
+    $dumps{'emptystring'} = _dumptostr($obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11768
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11769
+    is($dumps{'noprev'}, $dumps{'undef'},
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11770
+        "No setting for \$Data::Dumper::Pad and Pad(undef) give same result");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11771
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11772
+    is($dumps{'noprev'}, $dumps{'emptystring'},
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11773
+        "No setting for \$Data::Dumper::Pad and Pad('') give same result");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11774
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11775
+    $pad = 'XXX: ';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11776
+    local $Data::Dumper::Pad = $pad;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11777
+    $obj = Data::Dumper->new([$a,$b]);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11778
+    $dumps{'ddp'} = _dumptostr($obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11779
+    local $Data::Dumper::Pad = '';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11780
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11781
+    $obj = Data::Dumper->new([$a,$b]);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11782
+    $obj->Pad($pad);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11783
+    $dumps{'obj'} = _dumptostr($obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11784
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11785
+    is($dumps{'ddp'}, $dumps{'obj'},
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11786
+        "\$Data::Dumper::Pad and \$obj->Pad() give same result");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11787
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11788
+    is( (grep {! /^$pad/} (split(/\n/, $dumps{'ddp'}))), 0,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11789
+        "Each line of dumped output padded as expected");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11790
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11791
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11792
+{
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11793
+    note("\$Data::Dumper::Varname and \$obj->Varname");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11794
+    my ($obj, %dumps, $varname);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11795
+    $obj = Data::Dumper->new([$a,$b]);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11796
+    $dumps{'noprev'} = _dumptostr($obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11797
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11798
+    $obj = Data::Dumper->new([$a,$b]);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11799
+    $obj->Varname(undef);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11800
+    $dumps{'undef'} = _dumptostr($obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11801
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11802
+    $obj = Data::Dumper->new([$a,$b]);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11803
+    $obj->Varname('');
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11804
+    $dumps{'emptystring'} = _dumptostr($obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11805
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11806
+    is($dumps{'noprev'}, $dumps{'undef'},
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11807
+        "No setting for \$Data::Dumper::Varname and Varname(undef) give same result");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11808
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11809
+    # Because Varname defaults to '$VAR', providing an empty argument to
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11810
+    # Varname produces a non-default result.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11811
+    isnt($dumps{'noprev'}, $dumps{'emptystring'},
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11812
+        "No setting for \$Data::Dumper::Varname and Varname('') give different results");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11813
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11814
+    $varname = 'MIMI';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11815
+    local $Data::Dumper::Varname = $varname;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11816
+    $obj = Data::Dumper->new([$a,$b]);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11817
+    $dumps{'ddv'} = _dumptostr($obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11818
+    local $Data::Dumper::Varname = undef;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11819
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11820
+    $obj = Data::Dumper->new([$a,$b]);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11821
+    $obj->Varname($varname);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11822
+    $dumps{'varname'} = _dumptostr($obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11823
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11824
+    is($dumps{'ddv'}, $dumps{'varname'},
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11825
+        "Setting for \$Data::Dumper::Varname and Varname() give same result");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11826
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11827
+    is( (grep { /^\$$varname/ } (split(/\n/, $dumps{'ddv'}))), 2,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11828
+        "All lines of dumped output use provided varname");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11829
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11830
+    is( (grep { /^\$VAR/ } (split(/\n/, $dumps{'ddv'}))), 0,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11831
+        "No lines of dumped output use default \$VAR");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11832
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11833
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11834
+{
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11835
+    note("\$Data::Dumper::Useqq and \$obj->Useqq");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11836
+    my ($obj, %dumps, $useqq);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11837
+    $obj = Data::Dumper->new([$a,$b]);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11838
+    $dumps{'noprev'} = _dumptostr($obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11839
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11840
+    $obj = Data::Dumper->new([$a,$b]);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11841
+    $obj->Useqq(undef);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11842
+    $dumps{'undef'} = _dumptostr($obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11843
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11844
+    $obj = Data::Dumper->new([$a,$b]);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11845
+    $obj->Useqq('');
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11846
+    $dumps{'emptystring'} = _dumptostr($obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11847
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11848
+    $obj = Data::Dumper->new([$a,$b]);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11849
+    $obj->Useqq(0);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11850
+    $dumps{'zero'} = _dumptostr($obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11851
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11852
+    my $current = $Data::Dumper::Useqq;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11853
+    local $Data::Dumper::Useqq = 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11854
+    $obj = Data::Dumper->new([$a,$b]);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11855
+    $dumps{'dduzero'} = _dumptostr($obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11856
+    local $Data::Dumper::Useqq = $current;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11857
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11858
+    is($dumps{'noprev'}, $dumps{'undef'},
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11859
+        "No setting for \$Data::Dumper::Useqq and Useqq(undef) give same result");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11860
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11861
+    is($dumps{'noprev'}, $dumps{'zero'},
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11862
+        "No setting for \$Data::Dumper::Useqq and Useqq(0) give same result");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11863
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11864
+    is($dumps{'noprev'}, $dumps{'emptystring'},
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11865
+        "No setting for \$Data::Dumper::Useqq and Useqq('') give same result");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11866
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11867
+    is($dumps{'noprev'}, $dumps{'dduzero'},
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11868
+        "No setting for \$Data::Dumper::Useqq and Useqq(undef) give same result");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11869
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11870
+    local $Data::Dumper::Useqq = 1;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11871
+    $obj = Data::Dumper->new([$a,$b]);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11872
+    $dumps{'ddu'} = _dumptostr($obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11873
+    local $Data::Dumper::Useqq = $current;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11874
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11875
+    $obj = Data::Dumper->new([$a,$b]);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11876
+    $obj->Useqq(1);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11877
+    $dumps{'obj'} = _dumptostr($obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11878
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11879
+    is($dumps{'ddu'}, $dumps{'obj'},
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11880
+        "\$Data::Dumper::Useqq=1 and Useqq(1) give same result");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11881
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11882
+    like($dumps{'ddu'},
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11883
+        qr/"$a".+?"$b"/s,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11884
+        "Double-quotes used around values"
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11885
+    );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11886
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11887
+    unlike($dumps{'ddu'},
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11888
+        qr/'$a'.+?'$b'/s,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11889
+        "Single-quotes not used around values"
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11890
+    );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11891
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11892
diff -ur --new-file perl-5.12.5/dist/Data-Dumper/t/names.t perl-5.12.5_dumper/dist/Data-Dumper/t/names.t
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11893
--- perl-5.12.5/dist/Data-Dumper/t/names.t	1969-12-31 19:00:00.000000000 -0500
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11894
+++ perl-5.12.5_dumper/dist/Data-Dumper/t/names.t	2014-10-09 15:06:36.178953190 -0400
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11895
@@ -0,0 +1,66 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11896
+#!./perl -w
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11897
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11898
+BEGIN {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11899
+    if ($ENV{PERL_CORE}){
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11900
+        require Config; import Config;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11901
+        no warnings 'once';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11902
+        if ($Config{'extensions'} !~ /\bData\/Dumper\b/) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11903
+            print "1..0 # Skip: Data::Dumper was not built\n";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11904
+            exit 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11905
+        }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11906
+    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11907
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11908
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11909
+use strict;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11910
+use Carp;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11911
+use Data::Dumper;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11912
+use Test::More tests => 15;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11913
+use lib qw( ./t/lib );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11914
+use Testing qw( _dumptostr );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11915
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11916
+my ($a, $b, $obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11917
+my (@names);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11918
+my (@newnames, $objagain, %newnames);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11919
+my $dumpstr;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11920
+$a = 'alpha';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11921
+$b = 'beta';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11922
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11923
+$obj = Data::Dumper->new([$a,$b], [qw(a b)]);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11924
+@names = $obj->Names;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11925
+is_deeply(\@names, [qw(a b)], "Names() returned expected list");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11926
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11927
+@newnames = ( qw| gamma delta | );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11928
+$objagain = $obj->Names(\@newnames);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11929
+is($objagain, $obj, "Names returned same object");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11930
+is_deeply($objagain->{names}, \@newnames,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11931
+    "Able to use Names() to set names to be dumped");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11932
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11933
+$obj = Data::Dumper->new([$a,$b], [qw(a b)]);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11934
+%newnames = ( gamma => 'delta', epsilon => 'zeta' );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11935
+eval { @names = $obj->Names(\%newnames); };
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11936
+like($@, qr/Argument to Names, if provided, must be array ref/,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11937
+    "Got expected error message: bad argument to Names()");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11938
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11939
+$obj = Data::Dumper->new([$a,$b], [qw(a b)]);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11940
+@newnames = ( qw| gamma delta epsilon | );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11941
+$objagain = $obj->Names(\@newnames);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11942
+is($objagain, $obj, "Names returned same object");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11943
+is_deeply($objagain->{names}, \@newnames,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11944
+    "Able to use Names() to set names to be dumped");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11945
+$dumpstr = _dumptostr($obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11946
+like($dumpstr, qr/gamma/s, "Got first name expected");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11947
+like($dumpstr, qr/delta/s, "Got first name expected");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11948
+unlike($dumpstr, qr/epsilon/s, "Did not get name which was not expected");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11949
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11950
+$obj = Data::Dumper->new([$a,$b], [qw(a b)]);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11951
+@newnames = ( qw| gamma | );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11952
+$objagain = $obj->Names(\@newnames);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11953
+is($objagain, $obj, "Names returned same object");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11954
+is_deeply($objagain->{names}, \@newnames,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11955
+    "Able to use Names() to set names to be dumped");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11956
+$dumpstr = _dumptostr($obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11957
+like($dumpstr, qr/gamma/s, "Got name expected");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11958
+unlike($dumpstr, qr/delta/s, "Did not get name which was not expected");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11959
+unlike($dumpstr, qr/epsilon/s, "Did not get name which was not expected");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11960
+like($dumpstr, qr/\$VAR2/s, "Got default name");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11961
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11962
diff -ur --new-file perl-5.12.5/dist/Data-Dumper/t/overload.t perl-5.12.5_dumper/dist/Data-Dumper/t/overload.t
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11963
--- perl-5.12.5/dist/Data-Dumper/t/overload.t	2012-11-03 19:25:59.000000000 -0400
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11964
+++ perl-5.12.5_dumper/dist/Data-Dumper/t/overload.t	2014-10-09 15:06:36.177778379 -0400
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11965
@@ -11,9 +11,10 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11966
     }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11967
 }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11968
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11969
+use strict;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11970
 use Data::Dumper;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11971
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11972
-print "1..1\n";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11973
+use Test::More tests => 4;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11974
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11975
 package Foo;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11976
 use overload '""' => 'as_string';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11977
@@ -25,12 +26,11 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11978
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11979
 my $f = Foo->new;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11980
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11981
-print "#\$f=$f\n";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11982
+isa_ok($f, 'Foo');
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11983
+is("$f", '%%%%', 'String overloading works');
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11984
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11985
-$_ = Dumper($f);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11986
-s/^/#/mg;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11987
-print $_;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11988
+my $d = Dumper($f);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11989
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11990
-print "not " unless /bar/ && /Foo/;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11991
-print "ok 1\n";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11992
+like($d, qr/bar/);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11993
+like($d, qr/Foo/);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11994
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11995
diff -ur --new-file perl-5.12.5/dist/Data-Dumper/t/perl-74170.t perl-5.12.5_dumper/dist/Data-Dumper/t/perl-74170.t
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11996
--- perl-5.12.5/dist/Data-Dumper/t/perl-74170.t	1969-12-31 19:00:00.000000000 -0500
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11997
+++ perl-5.12.5_dumper/dist/Data-Dumper/t/perl-74170.t	2014-10-09 15:06:36.177564131 -0400
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11998
@@ -0,0 +1,145 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 11999
+#!perl -X
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12000
+#
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12001
+# Regression test for [perl #74170] (missing SPAGAIN after DD_Dump(...)):
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12002
+# Since it’s so large, it gets its own file.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12003
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12004
+BEGIN {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12005
+    if ($ENV{PERL_CORE}){
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12006
+        require Config; import Config;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12007
+        no warnings 'once';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12008
+        if ($Config{'extensions'} !~ /\bData\/Dumper\b/) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12009
+            print "1..0 # Skip: Data::Dumper was not built\n";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12010
+            exit 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12011
+        }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12012
+    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12013
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12014
+use strict;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12015
+use Test::More tests => 1;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12016
+use Data::Dumper;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12017
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12018
+our %repos = real_life_setup();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12019
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12020
+$Data::Dumper::Indent = 1;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12021
+# A custom sort sub is necessary for reproducing the bug, as this is where
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12022
+# the stack gets reallocated.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12023
+$Data::Dumper::Sortkeys = sub { return [ reverse sort keys %{$_[0]} ]; }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12024
+    unless exists $ENV{NO_SORT_SUB};
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12025
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12026
+ok(Data::Dumper->Dump([\%repos], [qw(*repos)]), "RT 74170 test");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12027
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12028
+sub real_life_setup {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12029
+    # set up the %repos hash in a manner that reflects a real run of
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12030
+    # the gitolite "compiler" script:
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12031
+    # Yes, all this is necessary to get the stack in such a state that the
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12032
+    # custom sort sub will trigger a reallocation.
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12033
+    my %repos;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12034
+    push @{ $repos{''}{'@all'} }, ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12035
+    push @{ $repos{''}{'guser86'} }, ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12036
+    push @{ $repos{''}{'guser87'} }, ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12037
+    push @{ $repos{''}{'user88'} }, ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12038
+    push @{ $repos{''}{'grussell'} }, ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12039
+    push @{ $repos{''}{'guser0'} }, ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12040
+    push @{ $repos{''}{'guser1'} }, ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12041
+    push @{ $repos{''}{'guser10'} }, ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12042
+    push @{ $repos{''}{'guser11'} }, ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12043
+    push @{ $repos{''}{'guser12'} }, ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12044
+    push @{ $repos{''}{'guser13'} }, ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12045
+    push @{ $repos{''}{'guser14'} }, ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12046
+    push @{ $repos{''}{'guser15'} }, ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12047
+    push @{ $repos{''}{'guser16'} }, ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12048
+    push @{ $repos{''}{'guser17'} }, ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12049
+    push @{ $repos{''}{'guser18'} }, ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12050
+    push @{ $repos{''}{'guser19'} }, ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12051
+    push @{ $repos{''}{'guser2'} }, ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12052
+    push @{ $repos{''}{'guser20'} }, ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12053
+    push @{ $repos{''}{'guser21'} }, ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12054
+    push @{ $repos{''}{'guser22'} }, ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12055
+    push @{ $repos{''}{'guser23'} }, ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12056
+    push @{ $repos{''}{'guser24'} }, ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12057
+    push @{ $repos{''}{'guser25'} }, ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12058
+    push @{ $repos{''}{'guser26'} }, ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12059
+    push @{ $repos{''}{'guser27'} }, ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12060
+    push @{ $repos{''}{'guser28'} }, ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12061
+    push @{ $repos{''}{'guser29'} }, ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12062
+    push @{ $repos{''}{'guser3'} }, ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12063
+    push @{ $repos{''}{'guser30'} }, ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12064
+    push @{ $repos{''}{'guser31'} }, ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12065
+    push @{ $repos{''}{'guser32'} }, ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12066
+    push @{ $repos{''}{'guser33'} }, ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12067
+    push @{ $repos{''}{'guser34'} }, ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12068
+    push @{ $repos{''}{'guser35'} }, ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12069
+    push @{ $repos{''}{'guser36'} }, ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12070
+    push @{ $repos{''}{'guser37'} }, ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12071
+    push @{ $repos{''}{'guser38'} }, ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12072
+    push @{ $repos{''}{'guser39'} }, ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12073
+    push @{ $repos{''}{'guser4'} }, ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12074
+    push @{ $repos{''}{'guser40'} }, ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12075
+    push @{ $repos{''}{'guser41'} }, ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12076
+    push @{ $repos{''}{'guser42'} }, ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12077
+    push @{ $repos{''}{'guser43'} }, ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12078
+    push @{ $repos{''}{'guser44'} }, ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12079
+    push @{ $repos{''}{'guser45'} }, ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12080
+    push @{ $repos{''}{'guser46'} }, ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12081
+    push @{ $repos{''}{'guser47'} }, ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12082
+    push @{ $repos{''}{'guser48'} }, ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12083
+    push @{ $repos{''}{'guser49'} }, ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12084
+    push @{ $repos{''}{'guser5'} }, ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12085
+    push @{ $repos{''}{'guser50'} }, ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12086
+    push @{ $repos{''}{'guser51'} }, ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12087
+    push @{ $repos{''}{'guser52'} }, ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12088
+    push @{ $repos{''}{'guser53'} }, ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12089
+    push @{ $repos{''}{'guser54'} }, ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12090
+    push @{ $repos{''}{'guser55'} }, ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12091
+    push @{ $repos{''}{'guser56'} }, ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12092
+    push @{ $repos{''}{'guser57'} }, ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12093
+    push @{ $repos{''}{'guser58'} }, ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12094
+    push @{ $repos{''}{'guser59'} }, ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12095
+    push @{ $repos{''}{'guser6'} }, ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12096
+    push @{ $repos{''}{'guser60'} }, ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12097
+    push @{ $repos{''}{'guser61'} }, ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12098
+    push @{ $repos{''}{'guser62'} }, ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12099
+    push @{ $repos{''}{'guser63'} }, ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12100
+    push @{ $repos{''}{'guser64'} }, ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12101
+    push @{ $repos{''}{'guser65'} }, ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12102
+    push @{ $repos{''}{'guser66'} }, ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12103
+    push @{ $repos{''}{'guser67'} }, ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12104
+    push @{ $repos{''}{'guser68'} }, ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12105
+    push @{ $repos{''}{'guser69'} }, ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12106
+    push @{ $repos{''}{'guser7'} }, ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12107
+    push @{ $repos{''}{'guser70'} }, ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12108
+    push @{ $repos{''}{'guser71'} }, ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12109
+    push @{ $repos{''}{'guser72'} }, ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12110
+    push @{ $repos{''}{'guser73'} }, ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12111
+    push @{ $repos{''}{'guser74'} }, ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12112
+    push @{ $repos{''}{'guser75'} }, ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12113
+    push @{ $repos{''}{'guser76'} }, ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12114
+    push @{ $repos{''}{'guser77'} }, ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12115
+    push @{ $repos{''}{'guser78'} }, ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12116
+    push @{ $repos{''}{'guser79'} }, ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12117
+    push @{ $repos{''}{'guser8'} }, ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12118
+    push @{ $repos{''}{'guser80'} }, ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12119
+    push @{ $repos{''}{'guser81'} }, ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12120
+    push @{ $repos{''}{'guser82'} }, ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12121
+    push @{ $repos{''}{'guser83'} }, ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12122
+    push @{ $repos{''}{'guser84'} }, ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12123
+    push @{ $repos{''}{'guser85'} }, ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12124
+    push @{ $repos{''}{'guser9'} }, ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12125
+    push @{ $repos{''}{'user1'} }, ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12126
+    push @{ $repos{''}{'user10'} }, ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12127
+    push @{ $repos{''}{'user11'} }, ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12128
+    push @{ $repos{''}{'user12'} }, ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12129
+    push @{ $repos{''}{'user13'} }, ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12130
+    push @{ $repos{''}{'user14'} }, ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12131
+    push @{ $repos{''}{'user15'} }, ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12132
+    push @{ $repos{''}{'user16'} }, ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12133
+    push @{ $repos{''}{'user2'} }, ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12134
+    push @{ $repos{''}{'user3'} }, ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12135
+    push @{ $repos{''}{'user4'} }, ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12136
+    push @{ $repos{''}{'user5'} }, ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12137
+    push @{ $repos{''}{'user6'} }, ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12138
+    push @{ $repos{''}{'user7'} }, ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12139
+    $repos{''}{R}{'user8'} = 1;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12140
+    $repos{''}{W}{'user8'} = 1;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12141
+    push @{ $repos{''}{'user8'} }, ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12142
+    return %repos;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12143
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12144
diff -ur --new-file perl-5.12.5/dist/Data-Dumper/t/purity_deepcopy_maxdepth.t perl-5.12.5_dumper/dist/Data-Dumper/t/purity_deepcopy_maxdepth.t
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12145
--- perl-5.12.5/dist/Data-Dumper/t/purity_deepcopy_maxdepth.t	1969-12-31 19:00:00.000000000 -0500
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12146
+++ perl-5.12.5_dumper/dist/Data-Dumper/t/purity_deepcopy_maxdepth.t	2014-10-09 15:06:36.175174223 -0400
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12147
@@ -0,0 +1,418 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12148
+#!./perl -w
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12149
+# t/purity_deepcopy_maxdepth.t - Test Purity(), Deepcopy(),
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12150
+# Maxdepth() and recursive structures
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12151
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12152
+BEGIN {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12153
+    if ($ENV{PERL_CORE}){
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12154
+        require Config; import Config;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12155
+        no warnings 'once';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12156
+        if ($Config{'extensions'} !~ /\bData\/Dumper\b/) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12157
+            print "1..0 # Skip: Data::Dumper was not built\n";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12158
+            exit 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12159
+        }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12160
+    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12161
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12162
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12163
+use strict;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12164
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12165
+use Data::Dumper;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12166
+use Test::More tests => 24;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12167
+use lib qw( ./t/lib );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12168
+use Testing qw( _dumptostr );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12169
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12170
+my ($a, $b, $c, @d);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12171
+my ($d, $e, $f);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12172
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12173
+note("\$Data::Dumper::Purity and Purity()");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12174
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12175
+{
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12176
+    my ($obj, %dumps, $purity);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12177
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12178
+    # Adapted from example in Dumper.pm POD:
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12179
+    @d = ('c');
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12180
+    $c = \@d;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12181
+    $b = {};
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12182
+    $a = [1, $b, $c];
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12183
+    $b->{a} = $a;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12184
+    $b->{b} = $a->[1];
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12185
+    $b->{c} = $a->[2];
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12186
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12187
+    $obj = Data::Dumper->new([$a,$b,$c], [qw(a b c)]);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12188
+    $dumps{'noprev'} = _dumptostr($obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12189
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12190
+    note("Discrepancy between Dumpxs() and Dumpperl() behavior with respect to \$Data::Dumper::Purity = undef");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12191
+    local $Data::Dumper::Useperl = 1;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12192
+    $purity = undef;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12193
+    local $Data::Dumper::Purity = $purity;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12194
+    $obj = Data::Dumper->new([$a,$b,$c], [qw(a b c)]);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12195
+    $dumps{'ddpundef'} = _dumptostr($obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12196
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12197
+    $purity = 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12198
+    local $Data::Dumper::Purity = $purity;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12199
+    $obj = Data::Dumper->new([$a,$b,$c], [qw(a b c)]);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12200
+    $dumps{'ddpzero'} = _dumptostr($obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12201
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12202
+    is($dumps{'noprev'}, $dumps{'ddpundef'},
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12203
+        "No previous Purity setting equivalent to \$Data::Dumper::Purity = undef");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12204
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12205
+    is($dumps{'noprev'}, $dumps{'ddpzero'},
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12206
+        "No previous Purity setting equivalent to \$Data::Dumper::Purity = 0");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12207
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12208
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12209
+{
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12210
+    my ($obj, %dumps, $purity);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12211
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12212
+    @d = ('c');
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12213
+    $c = \@d;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12214
+    $b = {};
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12215
+    $a = [1, $b, $c];
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12216
+    $b->{a} = $a;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12217
+    $b->{b} = $a->[1];
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12218
+    $b->{c} = $a->[2];
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12219
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12220
+    $obj = Data::Dumper->new([$a,$b,$c], [qw(a b c)]);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12221
+    $dumps{'noprev'} = _dumptostr($obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12222
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12223
+    $purity = 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12224
+    $obj = Data::Dumper->new([$a,$b,$c], [qw(a b c)]);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12225
+    $obj->Purity($purity);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12226
+    $dumps{'objzero'} = _dumptostr($obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12227
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12228
+    is($dumps{'noprev'}, $dumps{'objzero'},
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12229
+        "No previous Purity setting equivalent to Purity(0)");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12230
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12231
+    $purity = undef;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12232
+    $obj = Data::Dumper->new([$a,$b,$c], [qw(a b c)]);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12233
+    $obj->Purity($purity);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12234
+   $dumps{'objundef'} = _dumptostr($obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12235
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12236
+    is($dumps{'noprev'}, $dumps{'objundef'},
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12237
+        "No previous Purity setting equivalent to Purity(undef)");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12238
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12239
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12240
+{
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12241
+    my ($obj, %dumps, $purity);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12242
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12243
+    @d = ('c');
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12244
+    $c = \@d;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12245
+    $b = {};
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12246
+    $a = [1, $b, $c];
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12247
+    $b->{a} = $a;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12248
+    $b->{b} = $a->[1];
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12249
+    $b->{c} = $a->[2];
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12250
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12251
+    $obj = Data::Dumper->new([$a,$b,$c], [qw(a b c)]);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12252
+    $dumps{'noprev'} = _dumptostr($obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12253
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12254
+    $purity = 1;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12255
+    local $Data::Dumper::Purity = $purity;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12256
+    $obj = Data::Dumper->new([$a,$b,$c], [qw(a b c)]);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12257
+    $dumps{'ddpone'} = _dumptostr($obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12258
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12259
+    isnt($dumps{'noprev'}, $dumps{'ddpone'},
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12260
+        "No previous Purity setting different from \$Data::Dumper::Purity = 1");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12261
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12262
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12263
+{
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12264
+    my ($obj, %dumps, $purity);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12265
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12266
+    @d = ('c');
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12267
+    $c = \@d;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12268
+    $b = {};
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12269
+    $a = [1, $b, $c];
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12270
+    $b->{a} = $a;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12271
+    $b->{b} = $a->[1];
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12272
+    $b->{c} = $a->[2];
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12273
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12274
+    $obj = Data::Dumper->new([$a,$b,$c], [qw(a b c)]);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12275
+    $dumps{'noprev'} = _dumptostr($obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12276
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12277
+    $purity = 1;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12278
+    $obj = Data::Dumper->new([$a,$b,$c], [qw(a b c)]);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12279
+    $obj->Purity(1);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12280
+    $dumps{'objone'} = _dumptostr($obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12281
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12282
+    isnt($dumps{'noprev'}, $dumps{'objone'},
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12283
+        "No previous Purity setting different from Purity(0)");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12284
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12285
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12286
+{
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12287
+    my ($obj, %dumps, $purity);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12288
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12289
+    @d = ('c');
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12290
+    $c = \@d;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12291
+    $b = {};
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12292
+    $a = [1, $b, $c];
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12293
+    $b->{a} = $a;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12294
+    $b->{b} = $a->[1];
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12295
+    $b->{c} = $a->[2];
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12296
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12297
+    $purity = 1;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12298
+    local $Data::Dumper::Purity = $purity;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12299
+    $obj = Data::Dumper->new([$a,$b,$c], [qw(a b c)]);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12300
+    $dumps{'ddpone'} = _dumptostr($obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12301
+    local $Data::Dumper::Purity = undef;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12302
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12303
+    $obj = Data::Dumper->new([$a,$b,$c], [qw(a b c)]);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12304
+    $obj->Purity(1);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12305
+    $dumps{'objone'} = _dumptostr($obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12306
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12307
+    is($dumps{'ddpone'}, $dumps{'objone'},
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12308
+        "\$Data::Dumper::Purity = 1 and Purity(1) are equivalent");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12309
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12310
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12311
+note("\$Data::Dumper::Deepcopy and Deepcopy()");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12312
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12313
+{
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12314
+    my ($obj, %dumps, $deepcopy);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12315
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12316
+    # Adapted from example in Dumper.pm POD:
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12317
+    @d = ('c');
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12318
+    $c = \@d;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12319
+    $b = {};
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12320
+    $a = [1, $b, $c];
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12321
+    $b->{a} = $a;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12322
+    $b->{b} = $a->[1];
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12323
+    $b->{c} = $a->[2];
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12324
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12325
+    $obj = Data::Dumper->new([$a,$b,$c], [qw(a b c)]);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12326
+    $dumps{'noprev'} = _dumptostr($obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12327
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12328
+    $deepcopy = undef;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12329
+    local $Data::Dumper::Deepcopy = $deepcopy;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12330
+    $obj = Data::Dumper->new([$a,$b,$c], [qw(a b c)]);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12331
+    $dumps{'dddundef'} = _dumptostr($obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12332
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12333
+    $deepcopy = 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12334
+    local $Data::Dumper::Deepcopy = $deepcopy;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12335
+    $obj = Data::Dumper->new([$a,$b,$c], [qw(a b c)]);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12336
+    $dumps{'dddzero'} = _dumptostr($obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12337
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12338
+    is($dumps{'noprev'}, $dumps{'dddundef'},
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12339
+        "No previous Deepcopy setting equivalent to \$Data::Dumper::Deepcopy = undef");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12340
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12341
+    is($dumps{'noprev'}, $dumps{'dddzero'},
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12342
+        "No previous Deepcopy setting equivalent to \$Data::Dumper::Deepcopy = 0");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12343
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12344
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12345
+{
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12346
+    my ($obj, %dumps, $deepcopy);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12347
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12348
+    @d = ('c');
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12349
+    $c = \@d;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12350
+    $b = {};
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12351
+    $a = [1, $b, $c];
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12352
+    $b->{a} = $a;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12353
+    $b->{b} = $a->[1];
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12354
+    $b->{c} = $a->[2];
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12355
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12356
+    $obj = Data::Dumper->new([$a,$b,$c], [qw(a b c)]);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12357
+    $dumps{'noprev'} = _dumptostr($obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12358
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12359
+    $deepcopy = 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12360
+    $obj = Data::Dumper->new([$a,$b,$c], [qw(a b c)]);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12361
+    $obj->Deepcopy($deepcopy);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12362
+    $dumps{'objzero'} = _dumptostr($obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12363
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12364
+    is($dumps{'noprev'}, $dumps{'objzero'},
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12365
+        "No previous Deepcopy setting equivalent to Deepcopy(0)");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12366
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12367
+    $deepcopy = undef;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12368
+    $obj = Data::Dumper->new([$a,$b,$c], [qw(a b c)]);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12369
+    $obj->Deepcopy($deepcopy);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12370
+    $dumps{'objundef'} = _dumptostr($obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12371
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12372
+    is($dumps{'noprev'}, $dumps{'objundef'},
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12373
+        "No previous Deepcopy setting equivalent to Deepcopy(undef)");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12374
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12375
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12376
+{
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12377
+    my ($obj, %dumps, $deepcopy);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12378
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12379
+    @d = ('c');
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12380
+    $c = \@d;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12381
+    $b = {};
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12382
+    $a = [1, $b, $c];
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12383
+    $b->{a} = $a;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12384
+    $b->{b} = $a->[1];
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12385
+    $b->{c} = $a->[2];
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12386
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12387
+    $obj = Data::Dumper->new([$a,$b,$c], [qw(a b c)]);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12388
+    $dumps{'noprev'} = _dumptostr($obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12389
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12390
+    $deepcopy = 1;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12391
+    local $Data::Dumper::Deepcopy = $deepcopy;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12392
+    $obj = Data::Dumper->new([$a,$b,$c], [qw(a b c)]);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12393
+    $dumps{'dddone'} = _dumptostr($obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12394
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12395
+    isnt($dumps{'noprev'}, $dumps{'dddone'},
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12396
+        "No previous Deepcopy setting different from \$Data::Dumper::Deepcopy = 1");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12397
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12398
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12399
+{
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12400
+    my ($obj, %dumps, $deepcopy);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12401
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12402
+    @d = ('c');
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12403
+    $c = \@d;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12404
+    $b = {};
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12405
+    $a = [1, $b, $c];
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12406
+    $b->{a} = $a;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12407
+    $b->{b} = $a->[1];
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12408
+    $b->{c} = $a->[2];
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12409
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12410
+    $obj = Data::Dumper->new([$a,$b,$c], [qw(a b c)]);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12411
+    $dumps{'noprev'} = _dumptostr($obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12412
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12413
+    $deepcopy = 1;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12414
+    $obj = Data::Dumper->new([$a,$b,$c], [qw(a b c)]);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12415
+    $obj->Deepcopy(1);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12416
+    $dumps{'objone'} = _dumptostr($obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12417
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12418
+    isnt($dumps{'noprev'}, $dumps{'objone'},
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12419
+        "No previous Deepcopy setting different from Deepcopy(0)");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12420
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12421
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12422
+{
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12423
+    my ($obj, %dumps, $deepcopy);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12424
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12425
+    @d = ('c');
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12426
+    $c = \@d;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12427
+    $b = {};
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12428
+    $a = [1, $b, $c];
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12429
+    $b->{a} = $a;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12430
+    $b->{b} = $a->[1];
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12431
+    $b->{c} = $a->[2];
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12432
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12433
+    $deepcopy = 1;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12434
+    local $Data::Dumper::Deepcopy = $deepcopy;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12435
+    $obj = Data::Dumper->new([$a,$b,$c], [qw(a b c)]);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12436
+    $dumps{'dddone'} = _dumptostr($obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12437
+    local $Data::Dumper::Deepcopy = undef;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12438
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12439
+    $obj = Data::Dumper->new([$a,$b,$c], [qw(a b c)]);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12440
+    $obj->Deepcopy(1);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12441
+    $dumps{'objone'} = _dumptostr($obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12442
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12443
+    is($dumps{'dddone'}, $dumps{'objone'},
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12444
+        "\$Data::Dumper::Deepcopy = 1 and Deepcopy(1) are equivalent");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12445
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12446
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12447
+note("\$Data::Dumper::Maxdepth and Maxdepth()");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12448
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12449
+{
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12450
+    # Adapted from Dumper.pm POD
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12451
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12452
+    my ($obj, %dumps, $maxdepth);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12453
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12454
+    $a = "pearl";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12455
+    $b = [ $a ];
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12456
+    $c = { 'b' => $b };
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12457
+    $d = [ $c ];
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12458
+    $e = { 'd' => $d };
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12459
+    $f = { 'e' => $e };
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12460
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12461
+    note("Discrepancy between Dumpxs() and Dumpperl() behavior with respect to \$Data::Dumper::Maxdepth = undef");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12462
+    local $Data::Dumper::Useperl = 1;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12463
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12464
+    $obj = Data::Dumper->new([$f], [qw(f)]);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12465
+    $dumps{'noprev'} = _dumptostr($obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12466
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12467
+    $Data::Dumper::Maxdepth = undef;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12468
+    $obj = Data::Dumper->new([$f], [qw(f)]);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12469
+    $dumps{'ddmundef'} = _dumptostr($obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12470
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12471
+    $maxdepth = 3;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12472
+    local $Data::Dumper::Maxdepth = $maxdepth;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12473
+    $obj = Data::Dumper->new([$f], [qw(f)]);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12474
+    $dumps{'ddm'} = _dumptostr($obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12475
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12476
+    is($dumps{'noprev'}, $dumps{'ddmundef'},
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12477
+        "No previous Maxdepth setting equivalent to \$Data::Dumper::Maxdepth = undef");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12478
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12479
+    like($dumps{'noprev'}, qr/$a/s,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12480
+        "Without Maxdepth, got output from deepest level");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12481
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12482
+    isnt($dumps{'noprev'}, $dumps{'ddm'},
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12483
+        "No previous Maxdepth setting differs from setting a shallow Maxdepth");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12484
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12485
+    unlike($dumps{'ddm'}, qr/$a/s,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12486
+        "With Maxdepth, did not get output from deepest level");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12487
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12488
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12489
+{
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12490
+    # Adapted from Dumper.pm POD
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12491
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12492
+    my ($obj, %dumps, $maxdepth);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12493
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12494
+    $a = "pearl";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12495
+    $b = [ $a ];
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12496
+    $c = { 'b' => $b };
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12497
+    $d = [ $c ];
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12498
+    $e = { 'd' => $d };
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12499
+    $f = { 'e' => $e };
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12500
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12501
+    note("Discrepancy between Dumpxs() and Dumpperl() behavior with respect to \$Data::Dumper::Maxdepth = undef");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12502
+    local $Data::Dumper::Useperl = 1;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12503
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12504
+    $obj = Data::Dumper->new([$f], [qw(f)]);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12505
+    $dumps{'noprev'} = _dumptostr($obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12506
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12507
+    $obj = Data::Dumper->new([$f], [qw(f)]);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12508
+    $obj->Maxdepth();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12509
+    $dumps{'maxdepthempty'} = _dumptostr($obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12510
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12511
+    is($dumps{'noprev'}, $dumps{'maxdepthempty'},
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12512
+        "No previous Maxdepth setting equivalent to Maxdepth() with no argument");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12513
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12514
+    $obj = Data::Dumper->new([$f], [qw(f)]);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12515
+    $obj->Maxdepth(undef);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12516
+    $dumps{'maxdepthundef'} = _dumptostr($obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12517
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12518
+    is($dumps{'noprev'}, $dumps{'maxdepthundef'},
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12519
+        "No previous Maxdepth setting equivalent to Maxdepth(undef)");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12520
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12521
+    $maxdepth = 3;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12522
+    $obj = Data::Dumper->new([$f], [qw(f)]);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12523
+    $obj->Maxdepth($maxdepth);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12524
+    $dumps{'maxdepthset'} = _dumptostr($obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12525
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12526
+    isnt($dumps{'noprev'}, $dumps{'maxdepthset'},
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12527
+        "No previous Maxdepth setting differs from Maxdepth() with shallow depth");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12528
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12529
+    local $Data::Dumper::Maxdepth = 3;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12530
+    $obj = Data::Dumper->new([$f], [qw(f)]);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12531
+    $dumps{'ddmset'} = _dumptostr($obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12532
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12533
+    is($dumps{'maxdepthset'}, $dumps{'ddmset'},
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12534
+        "Maxdepth set and \$Data::Dumper::Maxdepth are equivalent");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12535
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12536
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12537
+{
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12538
+    my ($obj, %dumps);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12539
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12540
+    my $warning = '';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12541
+    local $SIG{__WARN__} = sub { $warning = $_[0] };
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12542
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12543
+    local $Data::Dumper::Deparse = 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12544
+    local $Data::Dumper::Purity  = 1;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12545
+    local $Data::Dumper::Useperl = 1;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12546
+    sub hello { print "Hello world\n"; }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12547
+    $obj = Data::Dumper->new( [ \&hello ] );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12548
+    $dumps{'ddsksub'} = _dumptostr($obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12549
+    like($warning, qr/^Encountered CODE ref, using dummy placeholder/,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12550
+        "Got expected warning: dummy placeholder under Purity = 1");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12551
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12552
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12553
+{
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12554
+    my ($obj, %dumps);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12555
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12556
+    my $warning = '';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12557
+    local $SIG{__WARN__} = sub { $warning = $_[0] };
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12558
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12559
+    local $Data::Dumper::Deparse = 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12560
+    local $Data::Dumper::Useperl = 1;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12561
+    sub jello { print "Jello world\n"; }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12562
+    $obj = Data::Dumper->new( [ \&hello ] );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12563
+    $dumps{'ddsksub'} = _dumptostr($obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12564
+    ok(! $warning, "Encountered CODE ref, but no Purity, hence no warning");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12565
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12566
diff -ur --new-file perl-5.12.5/dist/Data-Dumper/t/qr.t perl-5.12.5_dumper/dist/Data-Dumper/t/qr.t
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12567
--- perl-5.12.5/dist/Data-Dumper/t/qr.t	1969-12-31 19:00:00.000000000 -0500
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12568
+++ perl-5.12.5_dumper/dist/Data-Dumper/t/qr.t	2014-10-09 15:06:36.179661797 -0400
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12569
@@ -0,0 +1,24 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12570
+#!perl -X
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12571
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12572
+BEGIN {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12573
+    require Config; import Config;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12574
+    no warnings 'once';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12575
+    if ($Config{'extensions'} !~ /\bData\/Dumper\b/) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12576
+	print "1..0 # Skip: Data::Dumper was not built\n";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12577
+	exit 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12578
+    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12579
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12580
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12581
+use Test::More tests => 2;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12582
+use Data::Dumper;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12583
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12584
+{
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12585
+    my $q = q| \/ |;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12586
+    use Data::Dumper;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12587
+    my $qr = qr{$q};
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12588
+    eval Dumper $qr;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12589
+    ok(!$@, "Dumping $qr with XS") or diag $@, Dumper $qr;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12590
+    local $Data::Dumper::Useperl = 1;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12591
+    eval Dumper $qr;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12592
+    ok(!$@, "Dumping $qr with PP") or diag $@, Dumper $qr;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12593
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12594
diff -ur --new-file perl-5.12.5/dist/Data-Dumper/t/quotekeys.t perl-5.12.5_dumper/dist/Data-Dumper/t/quotekeys.t
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12595
--- perl-5.12.5/dist/Data-Dumper/t/quotekeys.t	1969-12-31 19:00:00.000000000 -0500
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12596
+++ perl-5.12.5_dumper/dist/Data-Dumper/t/quotekeys.t	2014-10-09 15:06:36.178495322 -0400
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12597
@@ -0,0 +1,135 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12598
+#!./perl -w
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12599
+# t/quotekeys.t - Test Quotekeys()
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12600
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12601
+BEGIN {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12602
+    if ($ENV{PERL_CORE}){
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12603
+        require Config; import Config;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12604
+        no warnings 'once';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12605
+        if ($Config{'extensions'} !~ /\bData\/Dumper\b/) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12606
+            print "1..0 # Skip: Data::Dumper was not built\n";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12607
+            exit 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12608
+        }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12609
+    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12610
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12611
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12612
+use strict;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12613
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12614
+use Data::Dumper;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12615
+use Test::More tests => 18;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12616
+use lib qw( ./t/lib );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12617
+use Testing qw( _dumptostr );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12618
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12619
+my %d = (
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12620
+    delta   => 'd',
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12621
+    beta    => 'b',
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12622
+    gamma   => 'c',
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12623
+    alpha   => 'a',
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12624
+);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12625
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12626
+run_tests_for_quotekeys();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12627
+SKIP: {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12628
+    skip "XS version was unavailable, so we already ran with pure Perl", 5
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12629
+        if $Data::Dumper::Useperl;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12630
+    local $Data::Dumper::Useperl = 1;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12631
+    run_tests_for_quotekeys();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12632
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12633
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12634
+sub run_tests_for_quotekeys {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12635
+    note("\$Data::Dumper::Useperl = $Data::Dumper::Useperl");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12636
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12637
+    my ($obj, %dumps, $quotekeys, $starting);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12638
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12639
+    note("\$Data::Dumper::Quotekeys and Quotekeys() set to true value");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12640
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12641
+    $obj = Data::Dumper->new( [ \%d ] );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12642
+    $dumps{'ddqkdefault'} = _dumptostr($obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12643
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12644
+    $starting = $Data::Dumper::Quotekeys;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12645
+    $quotekeys = 1;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12646
+    local $Data::Dumper::Quotekeys = $quotekeys;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12647
+    $obj = Data::Dumper->new( [ \%d ] );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12648
+    $dumps{'ddqkone'} = _dumptostr($obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12649
+    local $Data::Dumper::Quotekeys = $starting;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12650
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12651
+    $obj = Data::Dumper->new( [ \%d ] );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12652
+    $obj->Quotekeys($quotekeys);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12653
+    $dumps{'objqkone'} = _dumptostr($obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12654
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12655
+    is($dumps{'ddqkdefault'}, $dumps{'ddqkone'},
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12656
+        "\$Data::Dumper::Quotekeys = 1 is default");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12657
+    is($dumps{'ddqkone'}, $dumps{'objqkone'},
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12658
+        "\$Data::Dumper::Quotekeys = 1 and Quotekeys(1) are equivalent");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12659
+    %dumps = ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12660
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12661
+    $quotekeys = 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12662
+    local $Data::Dumper::Quotekeys = $quotekeys;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12663
+    $obj = Data::Dumper->new( [ \%d ] );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12664
+    $dumps{'ddqkzero'} = _dumptostr($obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12665
+    local $Data::Dumper::Quotekeys = $starting;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12666
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12667
+    $obj = Data::Dumper->new( [ \%d ] );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12668
+    $obj->Quotekeys($quotekeys);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12669
+    $dumps{'objqkzero'} = _dumptostr($obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12670
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12671
+    is($dumps{'ddqkzero'}, $dumps{'objqkzero'},
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12672
+        "\$Data::Dumper::Quotekeys = 0 and Quotekeys(0) are equivalent");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12673
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12674
+    $quotekeys = undef;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12675
+    local $Data::Dumper::Quotekeys = $quotekeys;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12676
+    $obj = Data::Dumper->new( [ \%d ] );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12677
+    $dumps{'ddqkundef'} = _dumptostr($obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12678
+    local $Data::Dumper::Quotekeys = $starting;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12679
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12680
+    $obj = Data::Dumper->new( [ \%d ] );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12681
+    $obj->Quotekeys($quotekeys);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12682
+    $dumps{'objqkundef'} = _dumptostr($obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12683
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12684
+    note("Quotekeys(undef) will fall back to the default value\nfor \$Data::Dumper::Quotekeys, which is a true value.");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12685
+    isnt($dumps{'ddqkundef'}, $dumps{'objqkundef'},
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12686
+        "\$Data::Dumper::Quotekeys = undef and Quotekeys(undef) are equivalent");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12687
+    isnt($dumps{'ddqkzero'}, $dumps{'objqkundef'},
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12688
+        "\$Data::Dumper::Quotekeys = undef and = 0 are equivalent");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12689
+    %dumps = ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12690
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12691
+    local $Data::Dumper::Quotekeys = 1;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12692
+    local $Data::Dumper::Sortkeys = 1;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12693
+    local $Data::Dumper::Indent = 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12694
+    local $Data::Dumper::Useqq = 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12695
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12696
+    my %qkdata =
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12697
+      (
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12698
+       0 => 1,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12699
+       '012345' => 1,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12700
+       12 => 1,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12701
+       123456789 => 1,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12702
+       1234567890 => 1,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12703
+       '::de::fg' => 1,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12704
+       ab => 1,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12705
+       'hi::12' => 1,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12706
+       "1\x{660}" => 1,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12707
+      );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12708
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12709
+    is(Dumper(\%qkdata),
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12710
+       q($VAR1 = {'0' => 1,'012345' => 1,'12' => 1,'123456789' => 1,'1234567890' => 1,"1\x{660}" => 1,'::de::fg' => 1,'ab' => 1,'hi::12' => 1};),
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12711
+       "always quote when quotekeys true");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12712
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12713
+    {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12714
+        local $Data::Dumper::Useqq = 1;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12715
+        is(Dumper(\%qkdata),
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12716
+	   q($VAR1 = {"0" => 1,"012345" => 1,"12" => 1,"123456789" => 1,"1234567890" => 1,"1\x{660}" => 1,"::de::fg" => 1,"ab" => 1,"hi::12" => 1};),
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12717
+	   "always quote when quotekeys true (useqq)");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12718
+    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12719
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12720
+    local $Data::Dumper::Quotekeys = 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12721
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12722
+    is(Dumper(\%qkdata),
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12723
+       q($VAR1 = {0 => 1,'012345' => 1,12 => 1,123456789 => 1,'1234567890' => 1,"1\x{660}" => 1,'::de::fg' => 1,ab => 1,'hi::12' => 1};),
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12724
+	      "avoid quotes when quotekeys false");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12725
+    {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12726
+        local $Data::Dumper::Useqq = 1;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12727
+	is(Dumper(\%qkdata),
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12728
+	   q($VAR1 = {0 => 1,"012345" => 1,12 => 1,123456789 => 1,"1234567890" => 1,"1\x{660}" => 1,"::de::fg" => 1,ab => 1,"hi::12" => 1};),
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12729
+	      "avoid quotes when quotekeys false (useqq)");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12730
+    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12731
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12732
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12733
diff -ur --new-file perl-5.12.5/dist/Data-Dumper/t/recurse.t perl-5.12.5_dumper/dist/Data-Dumper/t/recurse.t
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12734
--- perl-5.12.5/dist/Data-Dumper/t/recurse.t	1969-12-31 19:00:00.000000000 -0500
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12735
+++ perl-5.12.5_dumper/dist/Data-Dumper/t/recurse.t	2014-10-09 15:06:36.172817083 -0400
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12736
@@ -0,0 +1,45 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12737
+#!perl
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12738
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12739
+# Test the Maxrecurse option
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12740
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12741
+use strict;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12742
+use Test::More tests => 32;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12743
+use Data::Dumper;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12744
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12745
+SKIP: {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12746
+    skip "no XS available", 16
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12747
+      if $Data::Dumper::Useperl;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12748
+    local $Data::Dumper::Useperl = 1;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12749
+    test_recursion();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12750
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12751
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12752
+test_recursion();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12753
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12754
+sub test_recursion {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12755
+    my $pp = $Data::Dumper::Useperl ? "pure perl" : "XS";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12756
+    $Data::Dumper::Purity = 1; # make sure this has no effect
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12757
+    $Data::Dumper::Indent = 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12758
+    $Data::Dumper::Maxrecurse = 1;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12759
+    is(eval { Dumper([]) }, '$VAR1 = [];', "$pp: maxrecurse 1, []");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12760
+    is(eval { Dumper([[]]) }, undef, "$pp: maxrecurse 1, [[]]");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12761
+    ok($@, "exception thrown");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12762
+    is(eval { Dumper({}) }, '$VAR1 = {};', "$pp: maxrecurse 1, {}");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12763
+    is(eval { Dumper({ a => 1 }) }, q($VAR1 = {'a' => 1};),
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12764
+       "$pp: maxrecurse 1, { a => 1 }");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12765
+    is(eval { Dumper({ a => {} }) }, undef, "$pp: maxrecurse 1, { a => {} }");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12766
+    ok($@, "exception thrown");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12767
+    is(eval { Dumper(\1) }, "\$VAR1 = \\1;", "$pp: maxrecurse 1, \\1");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12768
+    is(eval { Dumper(\\1) }, undef, "$pp: maxrecurse 1, \\1");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12769
+    ok($@, "exception thrown");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12770
+    $Data::Dumper::Maxrecurse = 3;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12771
+    is(eval { Dumper(\1) }, "\$VAR1 = \\1;", "$pp: maxrecurse 3, \\1");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12772
+    is(eval { Dumper(\(my $s = {})) }, "\$VAR1 = \\{};", "$pp: maxrecurse 3, \\{}");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12773
+    is(eval { Dumper(\(my $s = { a => [] })) }, "\$VAR1 = \\{'a' => []};",
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12774
+       "$pp: maxrecurse 3, \\{ a => [] }");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12775
+    is(eval { Dumper(\(my $s = { a => [{}] })) }, undef,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12776
+       "$pp: maxrecurse 3, \\{ a => [{}] }");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12777
+    ok($@, "exception thrown");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12778
+    $Data::Dumper::Maxrecurse = 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12779
+    is(eval { Dumper([[[[[]]]]]) }, q($VAR1 = [[[[[]]]]];),
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12780
+       "$pp: check Maxrecurse doesn't set limit to 0 recursion");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12781
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12782
diff -ur --new-file perl-5.12.5/dist/Data-Dumper/t/seen.t perl-5.12.5_dumper/dist/Data-Dumper/t/seen.t
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12783
--- perl-5.12.5/dist/Data-Dumper/t/seen.t	1969-12-31 19:00:00.000000000 -0500
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12784
+++ perl-5.12.5_dumper/dist/Data-Dumper/t/seen.t	2014-10-09 15:06:36.179175807 -0400
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12785
@@ -0,0 +1,103 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12786
+#!./perl -w
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12787
+# t/seen.t - Test Seen()
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12788
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12789
+BEGIN {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12790
+    if ($ENV{PERL_CORE}){
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12791
+        require Config; import Config;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12792
+        no warnings 'once';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12793
+        if ($Config{'extensions'} !~ /\bData\/Dumper\b/) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12794
+            print "1..0 # Skip: Data::Dumper was not built\n";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12795
+            exit 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12796
+        }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12797
+    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12798
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12799
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12800
+use strict;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12801
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12802
+use Data::Dumper;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12803
+use Test::More tests => 10;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12804
+use lib qw( ./t/lib );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12805
+use Testing qw( _dumptostr );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12806
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12807
+my ($obj, %dumps);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12808
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12809
+my (@e, %f, @rv, @g, %h, $k);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12810
+@e = ( qw| alpha beta gamma | );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12811
+%f = ( epsilon => 'zeta', eta => 'theta' );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12812
+@g = ( qw| iota kappa lambda | );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12813
+%h = ( mu => 'nu', omicron => 'pi' );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12814
+sub j { print "Hello world\n"; }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12815
+$k = 'just another scalar';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12816
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12817
+{
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12818
+    my $warning = '';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12819
+    local $SIG{__WARN__} = sub { $warning = $_[0] };
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12820
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12821
+    $obj = Data::Dumper->new( [ \@e, \%f ]);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12822
+    @rv = $obj->Seen( { mark => 'snark' } );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12823
+    like($warning,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12824
+        qr/^Only refs supported, ignoring non-ref item \$mark/,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12825
+        "Got expected warning for non-ref item");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12826
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12827
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12828
+{
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12829
+    my $warning = '';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12830
+    local $SIG{__WARN__} = sub { $warning = $_[0] };
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12831
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12832
+    $obj = Data::Dumper->new( [ \@e, \%f ]);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12833
+    @rv = $obj->Seen( { mark => undef } );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12834
+    like($warning,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12835
+        qr/^Value of ref must be defined; ignoring undefined item \$mark/,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12836
+        "Got expected warning for undefined value of item");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12837
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12838
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12839
+{
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12840
+    $obj = Data::Dumper->new( [ \@e, \%f ]);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12841
+    @rv = $obj->Seen( undef );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12842
+    is(@rv, 0, "Seen(undef) returned empty array");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12843
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12844
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12845
+{
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12846
+    $obj = Data::Dumper->new( [ \@e, \%f ]);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12847
+    @rv = $obj->Seen( [ qw| mark snark | ] );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12848
+    is(@rv, 0, "Seen(ref other than hashref) returned empty array");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12849
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12850
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12851
+{
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12852
+    $obj = Data::Dumper->new( [ \@e, \%f ]);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12853
+    @rv = $obj->Seen( { '*samba' => \@g } );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12854
+    is_deeply($rv[0], $obj, "Got the object back: value array ref");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12855
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12856
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12857
+{
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12858
+    $obj = Data::Dumper->new( [ \@e, \%f ]);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12859
+    @rv = $obj->Seen( { '*canasta' => \%h } );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12860
+    is_deeply($rv[0], $obj, "Got the object back: value hash ref");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12861
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12862
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12863
+{
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12864
+    $obj = Data::Dumper->new( [ \@e, \%f ]);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12865
+    @rv = $obj->Seen( { '*pinochle' => \&j } );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12866
+    is_deeply($rv[0], $obj, "Got the object back: value code ref");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12867
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12868
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12869
+{
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12870
+    $obj = Data::Dumper->new( [ \@e, \%f ]);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12871
+    @rv = $obj->Seen( { '*poker' => \$k } );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12872
+    is_deeply($rv[0], $obj, "Got the object back: value ref to scalar");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12873
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12874
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12875
+{
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12876
+    my $l = 'loo';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12877
+    $obj = Data::Dumper->new( [ \@e, \%f ]);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12878
+    @rv = $obj->Seen( { $l => \$k } );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12879
+    is_deeply($rv[0], $obj, "Got the object back: value ref to scalar");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12880
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12881
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12882
+{
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12883
+    my $l = '$loo';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12884
+    $obj = Data::Dumper->new( [ \@e, \%f ]);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12885
+    @rv = $obj->Seen( { $l => \$k } );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12886
+    is_deeply($rv[0], $obj, "Got the object back: value ref to scalar");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12887
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12888
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12889
diff -ur --new-file perl-5.12.5/dist/Data-Dumper/t/sortkeys.t perl-5.12.5_dumper/dist/Data-Dumper/t/sortkeys.t
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12890
--- perl-5.12.5/dist/Data-Dumper/t/sortkeys.t	1969-12-31 19:00:00.000000000 -0500
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12891
+++ perl-5.12.5_dumper/dist/Data-Dumper/t/sortkeys.t	2014-10-09 15:06:36.174321223 -0400
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12892
@@ -0,0 +1,190 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12893
+#!./perl -w
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12894
+# t/sortkeys.t - Test Sortkeys()
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12895
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12896
+BEGIN {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12897
+    if ($ENV{PERL_CORE}){
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12898
+        require Config; import Config;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12899
+        no warnings 'once';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12900
+        if ($Config{'extensions'} !~ /\bData\/Dumper\b/) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12901
+            print "1..0 # Skip: Data::Dumper was not built\n";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12902
+            exit 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12903
+        }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12904
+    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12905
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12906
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12907
+use strict;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12908
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12909
+use Data::Dumper;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12910
+use Test::More tests => 26;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12911
+use lib qw( ./t/lib );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12912
+use Testing qw( _dumptostr );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12913
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12914
+run_tests_for_sortkeys();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12915
+SKIP: {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12916
+    skip "XS version was unavailable, so we already ran with pure Perl", 13 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12917
+        if $Data::Dumper::Useperl;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12918
+    local $Data::Dumper::Useperl = 1;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12919
+    run_tests_for_sortkeys();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12920
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12921
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12922
+sub run_tests_for_sortkeys {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12923
+    note("\$Data::Dumper::Useperl = $Data::Dumper::Useperl");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12924
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12925
+    my %d = (
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12926
+        delta   => 'd',
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12927
+        beta    => 'b',
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12928
+        gamma   => 'c',
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12929
+        alpha   => 'a',
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12930
+    );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12931
+    
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12932
+    {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12933
+        my ($obj, %dumps, $sortkeys, $starting);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12934
+    
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12935
+        note("\$Data::Dumper::Sortkeys and Sortkeys() set to true value");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12936
+    
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12937
+        $starting = $Data::Dumper::Sortkeys;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12938
+        $sortkeys = 1;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12939
+        local $Data::Dumper::Sortkeys = $sortkeys;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12940
+        $obj = Data::Dumper->new( [ \%d ] );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12941
+        $dumps{'ddskone'} = _dumptostr($obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12942
+        local $Data::Dumper::Sortkeys = $starting;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12943
+    
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12944
+        $obj = Data::Dumper->new( [ \%d ] );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12945
+        $obj->Sortkeys($sortkeys);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12946
+        $dumps{'objskone'} = _dumptostr($obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12947
+    
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12948
+        is($dumps{'ddskone'}, $dumps{'objskone'},
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12949
+            "\$Data::Dumper::Sortkeys = 1 and Sortkeys(1) are equivalent");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12950
+        like($dumps{'ddskone'},
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12951
+            qr/alpha.*?beta.*?delta.*?gamma/s,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12952
+            "Sortkeys returned hash keys in Perl's default sort order");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12953
+        %dumps = ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12954
+    
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12955
+    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12956
+    
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12957
+    {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12958
+        my ($obj, %dumps, $starting);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12959
+    
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12960
+        note("\$Data::Dumper::Sortkeys and Sortkeys() set to coderef");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12961
+    
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12962
+        $starting = $Data::Dumper::Sortkeys;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12963
+        local $Data::Dumper::Sortkeys = \&reversekeys;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12964
+        $obj = Data::Dumper->new( [ \%d ] );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12965
+        $dumps{'ddsksub'} = _dumptostr($obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12966
+        local $Data::Dumper::Sortkeys = $starting;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12967
+    
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12968
+        $obj = Data::Dumper->new( [ \%d ] );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12969
+        $obj->Sortkeys(\&reversekeys);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12970
+        $dumps{'objsksub'} = _dumptostr($obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12971
+    
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12972
+        is($dumps{'ddsksub'}, $dumps{'objsksub'},
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12973
+            "\$Data::Dumper::Sortkeys = CODEREF and Sortkeys(CODEREF) are equivalent");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12974
+        like($dumps{'ddsksub'},
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12975
+            qr/gamma.*?delta.*?beta.*?alpha/s,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12976
+            "Sortkeys returned hash keys per sorting subroutine");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12977
+        %dumps = ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12978
+    
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12979
+    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12980
+    
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12981
+    {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12982
+        my ($obj, %dumps, $starting);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12983
+    
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12984
+        note("\$Data::Dumper::Sortkeys and Sortkeys() set to coderef with filter");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12985
+        $starting = $Data::Dumper::Sortkeys;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12986
+        local $Data::Dumper::Sortkeys = \&reversekeystrim;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12987
+        $obj = Data::Dumper->new( [ \%d ] );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12988
+        $dumps{'ddsksub'} = _dumptostr($obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12989
+        local $Data::Dumper::Sortkeys = $starting;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12990
+    
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12991
+        $obj = Data::Dumper->new( [ \%d ] );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12992
+        $obj->Sortkeys(\&reversekeystrim);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12993
+        $dumps{'objsksub'} = _dumptostr($obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12994
+    
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12995
+        is($dumps{'ddsksub'}, $dumps{'objsksub'},
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12996
+            "\$Data::Dumper::Sortkeys = CODEREF and Sortkeys(CODEREF) select same keys");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12997
+        like($dumps{'ddsksub'},
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12998
+            qr/gamma.*?delta.*?beta/s,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 12999
+            "Sortkeys returned hash keys per sorting subroutine");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13000
+        unlike($dumps{'ddsksub'},
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13001
+            qr/alpha/s,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13002
+            "Sortkeys filtered out one key per request");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13003
+        %dumps = ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13004
+    
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13005
+    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13006
+    
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13007
+    {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13008
+        my ($obj, %dumps, $sortkeys, $starting);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13009
+    
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13010
+        note("\$Data::Dumper::Sortkeys(undef) and Sortkeys(undef)");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13011
+    
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13012
+        $starting = $Data::Dumper::Sortkeys;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13013
+        $sortkeys = 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13014
+        local $Data::Dumper::Sortkeys = $sortkeys;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13015
+        $obj = Data::Dumper->new( [ \%d ] );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13016
+        $dumps{'ddskzero'} = _dumptostr($obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13017
+        local $Data::Dumper::Sortkeys = $starting;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13018
+    
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13019
+        $obj = Data::Dumper->new( [ \%d ] );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13020
+        $obj->Sortkeys($sortkeys);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13021
+        $dumps{'objskzero'} = _dumptostr($obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13022
+    
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13023
+        $sortkeys = undef;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13024
+        local $Data::Dumper::Sortkeys = $sortkeys;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13025
+        $obj = Data::Dumper->new( [ \%d ] );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13026
+        $dumps{'ddskundef'} = _dumptostr($obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13027
+        local $Data::Dumper::Sortkeys = $starting;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13028
+    
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13029
+        $obj = Data::Dumper->new( [ \%d ] );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13030
+        $obj->Sortkeys($sortkeys);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13031
+        $dumps{'objskundef'} = _dumptostr($obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13032
+    
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13033
+        is($dumps{'ddskzero'}, $dumps{'objskzero'},
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13034
+            "\$Data::Dumper::Sortkeys = 0 and Sortkeys(0) are equivalent");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13035
+        is($dumps{'ddskzero'}, $dumps{'ddskundef'},
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13036
+            "\$Data::Dumper::Sortkeys = 0 and = undef equivalent");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13037
+        is($dumps{'objkzero'}, $dumps{'objkundef'},
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13038
+            "Sortkeys(0) and Sortkeys(undef) are equivalent");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13039
+        %dumps = ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13040
+    
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13041
+    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13042
+    
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13043
+    note("Internal subroutine _sortkeys");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13044
+    my %e = (
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13045
+        nu      => 'n',
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13046
+        lambda  => 'l',
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13047
+        kappa   => 'k',
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13048
+        mu      => 'm',
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13049
+        omicron => 'o',
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13050
+    );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13051
+    my $rv = Data::Dumper::_sortkeys(\%e);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13052
+    is(ref($rv), 'ARRAY', "Data::Dumper::_sortkeys returned an array ref");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13053
+    is_deeply($rv, [ qw( kappa lambda mu nu omicron ) ],
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13054
+        "Got keys in Perl default order");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13055
+    {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13056
+        my $warning = '';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13057
+        local $SIG{__WARN__} = sub { $warning = $_[0] };
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13058
+    
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13059
+        my ($obj, %dumps, $starting);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13060
+    
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13061
+        note("\$Data::Dumper::Sortkeys and Sortkeys() set to coderef");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13062
+    
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13063
+        $starting = $Data::Dumper::Sortkeys;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13064
+        local $Data::Dumper::Sortkeys = \&badreturnvalue;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13065
+        $obj = Data::Dumper->new( [ \%d ] );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13066
+        $dumps{'ddsksub'} = _dumptostr($obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13067
+        like($warning, qr/^Sortkeys subroutine did not return ARRAYREF/,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13068
+            "Got expected warning: sorting routine did not return array ref");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13069
+    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13070
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13071
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13072
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13073
+sub reversekeys { return [ reverse sort keys %{+shift} ]; }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13074
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13075
+sub reversekeystrim {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13076
+    my $hr = shift;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13077
+    my @keys = sort keys %{$hr};
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13078
+    shift(@keys);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13079
+    return [ reverse @keys ];
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13080
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13081
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13082
+sub badreturnvalue { return { %{+shift} }; }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13083
diff -ur --new-file perl-5.12.5/dist/Data-Dumper/t/sparseseen.t perl-5.12.5_dumper/dist/Data-Dumper/t/sparseseen.t
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13084
--- perl-5.12.5/dist/Data-Dumper/t/sparseseen.t	1969-12-31 19:00:00.000000000 -0500
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13085
+++ perl-5.12.5_dumper/dist/Data-Dumper/t/sparseseen.t	2014-10-09 15:06:36.176307692 -0400
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13086
@@ -0,0 +1,88 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13087
+#!./perl -w
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13088
+# t/sparseseen.t - Test Sparseseen()
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13089
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13090
+BEGIN {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13091
+    if ($ENV{PERL_CORE}){
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13092
+        require Config; import Config;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13093
+        no warnings 'once';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13094
+        if ($Config{'extensions'} !~ /\bData\/Dumper\b/) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13095
+            print "1..0 # Skip: Data::Dumper was not built\n";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13096
+            exit 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13097
+        }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13098
+    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13099
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13100
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13101
+use strict;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13102
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13103
+use Data::Dumper;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13104
+use Test::More tests =>  8;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13105
+use lib qw( ./t/lib );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13106
+use Testing qw( _dumptostr );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13107
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13108
+my %d = (
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13109
+    delta   => 'd',
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13110
+    beta    => 'b',
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13111
+    gamma   => 'c',
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13112
+    alpha   => 'a',
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13113
+);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13114
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13115
+run_tests_for_sparseseen();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13116
+SKIP: {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13117
+    skip "XS version was unavailable, so we already ran with pure Perl", 4
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13118
+        if $Data::Dumper::Useperl;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13119
+    local $Data::Dumper::Useperl = 1;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13120
+    run_tests_for_sparseseen();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13121
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13122
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13123
+sub run_tests_for_sparseseen {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13124
+    note("\$Data::Dumper::Useperl = $Data::Dumper::Useperl");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13125
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13126
+    my ($obj, %dumps, $sparseseen, $starting);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13127
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13128
+    note("\$Data::Dumper::Sparseseen and Sparseseen() set to true value");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13129
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13130
+    $starting = $Data::Dumper::Sparseseen;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13131
+    $sparseseen = 1;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13132
+    local $Data::Dumper::Sparseseen = $sparseseen;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13133
+    $obj = Data::Dumper->new( [ \%d ] );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13134
+    $dumps{'ddssone'} = _dumptostr($obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13135
+    local $Data::Dumper::Sparseseen = $starting;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13136
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13137
+    $obj = Data::Dumper->new( [ \%d ] );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13138
+    $obj->Sparseseen($sparseseen);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13139
+    $dumps{'objssone'} = _dumptostr($obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13140
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13141
+    is($dumps{'ddssone'}, $dumps{'objssone'},
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13142
+        "\$Data::Dumper::Sparseseen = 1 and Sparseseen(1) are equivalent");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13143
+    %dumps = ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13144
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13145
+    $sparseseen = 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13146
+    local $Data::Dumper::Sparseseen = $sparseseen;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13147
+    $obj = Data::Dumper->new( [ \%d ] );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13148
+    $dumps{'ddsszero'} = _dumptostr($obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13149
+    local $Data::Dumper::Sparseseen = $starting;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13150
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13151
+    $obj = Data::Dumper->new( [ \%d ] );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13152
+    $obj->Sparseseen($sparseseen);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13153
+    $dumps{'objsszero'} = _dumptostr($obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13154
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13155
+    is($dumps{'ddsszero'}, $dumps{'objsszero'},
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13156
+        "\$Data::Dumper::Sparseseen = 0 and Sparseseen(0) are equivalent");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13157
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13158
+    $sparseseen = undef;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13159
+    local $Data::Dumper::Sparseseen = $sparseseen;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13160
+    $obj = Data::Dumper->new( [ \%d ] );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13161
+    $dumps{'ddssundef'} = _dumptostr($obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13162
+    local $Data::Dumper::Sparseseen = $starting;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13163
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13164
+    $obj = Data::Dumper->new( [ \%d ] );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13165
+    $obj->Sparseseen($sparseseen);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13166
+    $dumps{'objssundef'} = _dumptostr($obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13167
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13168
+    is($dumps{'ddssundef'}, $dumps{'objssundef'},
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13169
+        "\$Data::Dumper::Sparseseen = undef and Sparseseen(undef) are equivalent");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13170
+    is($dumps{'ddsszero'}, $dumps{'objssundef'},
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13171
+        "\$Data::Dumper::Sparseseen = undef and = 0 are equivalent");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13172
+    %dumps = ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13173
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13174
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13175
diff -ur --new-file perl-5.12.5/dist/Data-Dumper/t/terse.t perl-5.12.5_dumper/dist/Data-Dumper/t/terse.t
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13176
--- perl-5.12.5/dist/Data-Dumper/t/terse.t	1969-12-31 19:00:00.000000000 -0500
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13177
+++ perl-5.12.5_dumper/dist/Data-Dumper/t/terse.t	2014-10-09 15:06:36.177303482 -0400
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13178
@@ -0,0 +1,61 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13179
+#!perl
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13180
+use strict;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13181
+use warnings;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13182
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13183
+use Data::Dumper;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13184
+use Test::More tests => 6;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13185
+use lib qw( ./t/lib );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13186
+use Testing qw( _dumptostr );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13187
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13188
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13189
+my $hash = { foo => 42 };
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13190
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13191
+for my $useperl (0..1) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13192
+    my $dumper = Data::Dumper->new([$hash]);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13193
+    $dumper->Terse(1);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13194
+    $dumper->Indent(2);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13195
+    $dumper->Useperl($useperl);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13196
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13197
+    is $dumper->Dump, <<'WANT', "Terse(1), Indent(2), Useperl($useperl)";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13198
+{
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13199
+  'foo' => 42
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13200
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13201
+WANT
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13202
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13203
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13204
+my (%dumpstr);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13205
+my $dumper;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13206
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13207
+$dumper = Data::Dumper->new([$hash]);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13208
+$dumpstr{noterse} = _dumptostr($dumper);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13209
+# $VAR1 = {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13210
+#           'foo' => 42
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13211
+#         };
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13212
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13213
+$dumper = Data::Dumper->new([$hash]);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13214
+$dumper->Terse();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13215
+$dumpstr{terse_no_arg} = _dumptostr($dumper);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13216
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13217
+$dumper = Data::Dumper->new([$hash]);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13218
+$dumper->Terse(0);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13219
+$dumpstr{terse_0} = _dumptostr($dumper);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13220
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13221
+$dumper = Data::Dumper->new([$hash]);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13222
+$dumper->Terse(1);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13223
+$dumpstr{terse_1} = _dumptostr($dumper);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13224
+# {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13225
+#   'foo' => 42
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13226
+# }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13227
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13228
+$dumper = Data::Dumper->new([$hash]);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13229
+$dumper->Terse(undef);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13230
+$dumpstr{terse_undef} = _dumptostr($dumper);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13231
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13232
+is($dumpstr{noterse}, $dumpstr{terse_no_arg},
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13233
+    "absence of Terse is same as Terse()");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13234
+is($dumpstr{noterse}, $dumpstr{terse_0},
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13235
+    "absence of Terse is same as Terse(0)");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13236
+isnt($dumpstr{noterse}, $dumpstr{terse_1},
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13237
+    "absence of Terse is different from Terse(1)");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13238
+is($dumpstr{noterse}, $dumpstr{terse_undef},
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13239
+    "absence of Terse is same as Terse(undef)");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13240
diff -ur --new-file perl-5.12.5/dist/Data-Dumper/t/toaster.t perl-5.12.5_dumper/dist/Data-Dumper/t/toaster.t
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13241
--- perl-5.12.5/dist/Data-Dumper/t/toaster.t	1969-12-31 19:00:00.000000000 -0500
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13242
+++ perl-5.12.5_dumper/dist/Data-Dumper/t/toaster.t	2014-10-09 15:06:36.180160759 -0400
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13243
@@ -0,0 +1,88 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13244
+#!./perl -w
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13245
+# t/toaster.t - Test Toaster()
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13246
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13247
+BEGIN {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13248
+    if ($ENV{PERL_CORE}){
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13249
+        require Config; import Config;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13250
+        no warnings 'once';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13251
+        if ($Config{'extensions'} !~ /\bData\/Dumper\b/) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13252
+            print "1..0 # Skip: Data::Dumper was not built\n";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13253
+            exit 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13254
+        }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13255
+    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13256
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13257
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13258
+use strict;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13259
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13260
+use Data::Dumper;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13261
+use Test::More tests =>  8;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13262
+use lib qw( ./t/lib );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13263
+use Testing qw( _dumptostr );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13264
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13265
+my %d = (
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13266
+    delta   => 'd',
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13267
+    beta    => 'b',
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13268
+    gamma   => 'c',
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13269
+    alpha   => 'a',
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13270
+);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13271
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13272
+run_tests_for_toaster();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13273
+SKIP: {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13274
+    skip "XS version was unavailable, so we already ran with pure Perl", 4
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13275
+        if $Data::Dumper::Useperl;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13276
+    local $Data::Dumper::Useperl = 1;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13277
+    run_tests_for_toaster();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13278
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13279
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13280
+sub run_tests_for_toaster {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13281
+    note("\$Data::Dumper::Useperl = $Data::Dumper::Useperl");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13282
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13283
+    my ($obj, %dumps, $toaster, $starting);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13284
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13285
+    note("\$Data::Dumper::Toaster and Toaster() set to true value");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13286
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13287
+    $starting = $Data::Dumper::Toaster;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13288
+    $toaster = 1;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13289
+    local $Data::Dumper::Toaster = $toaster;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13290
+    $obj = Data::Dumper->new( [ \%d ] );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13291
+    $dumps{'ddtoasterone'} = _dumptostr($obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13292
+    local $Data::Dumper::Toaster = $starting;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13293
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13294
+    $obj = Data::Dumper->new( [ \%d ] );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13295
+    $obj->Toaster($toaster);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13296
+    $dumps{'objtoasterone'} = _dumptostr($obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13297
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13298
+    is($dumps{'ddtoasterone'}, $dumps{'objtoasterone'},
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13299
+        "\$Data::Dumper::Toaster = 1 and Toaster(1) are equivalent");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13300
+    %dumps = ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13301
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13302
+    $toaster = 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13303
+    local $Data::Dumper::Toaster = $toaster;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13304
+    $obj = Data::Dumper->new( [ \%d ] );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13305
+    $dumps{'ddtoasterzero'} = _dumptostr($obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13306
+    local $Data::Dumper::Toaster = $starting;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13307
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13308
+    $obj = Data::Dumper->new( [ \%d ] );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13309
+    $obj->Toaster($toaster);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13310
+    $dumps{'objtoasterzero'} = _dumptostr($obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13311
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13312
+    is($dumps{'ddtoasterzero'}, $dumps{'objtoasterzero'},
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13313
+        "\$Data::Dumper::Toaster = 0 and Toaster(0) are equivalent");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13314
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13315
+    $toaster = undef;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13316
+    local $Data::Dumper::Toaster = $toaster;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13317
+    $obj = Data::Dumper->new( [ \%d ] );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13318
+    $dumps{'ddtoasterundef'} = _dumptostr($obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13319
+    local $Data::Dumper::Toaster = $starting;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13320
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13321
+    $obj = Data::Dumper->new( [ \%d ] );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13322
+    $obj->Toaster($toaster);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13323
+    $dumps{'objtoasterundef'} = _dumptostr($obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13324
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13325
+    is($dumps{'ddtoasterundef'}, $dumps{'objtoasterundef'},
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13326
+        "\$Data::Dumper::Toaster = undef and Toaster(undef) are equivalent");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13327
+    is($dumps{'ddtoasterzero'}, $dumps{'objtoasterundef'},
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13328
+        "\$Data::Dumper::Toaster = undef and = 0 are equivalent");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13329
+    %dumps = ();
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13330
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13331
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13332
diff -ur --new-file perl-5.12.5/dist/Data-Dumper/t/values.t perl-5.12.5_dumper/dist/Data-Dumper/t/values.t
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13333
--- perl-5.12.5/dist/Data-Dumper/t/values.t	1969-12-31 19:00:00.000000000 -0500
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13334
+++ perl-5.12.5_dumper/dist/Data-Dumper/t/values.t	2014-10-09 15:06:36.178013829 -0400
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13335
@@ -0,0 +1,40 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13336
+#!./perl -w
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13337
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13338
+BEGIN {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13339
+    if ($ENV{PERL_CORE}){
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13340
+        require Config; import Config;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13341
+        no warnings 'once';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13342
+        if ($Config{'extensions'} !~ /\bData\/Dumper\b/) {
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13343
+            print "1..0 # Skip: Data::Dumper was not built\n";
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13344
+            exit 0;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13345
+        }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13346
+    }
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13347
+}
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13348
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13349
+use strict;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13350
+use Data::Dumper;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13351
+use Test::More tests => 4;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13352
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13353
+my ($a, $b, $obj);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13354
+my (@values, @names);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13355
+my (@newvalues, $objagain, %newvalues);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13356
+$a = 'alpha';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13357
+$b = 'beta';
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13358
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13359
+$obj = Data::Dumper->new([$a,$b], [qw(a b)]);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13360
+@values = $obj->Values;
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13361
+is_deeply(\@values, [$a,$b], "Values() returned expected list");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13362
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13363
+@newvalues = ( qw| gamma delta epsilon | );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13364
+$objagain = $obj->Values(\@newvalues);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13365
+is($objagain, $obj, "Values returned same object");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13366
+is_deeply($objagain->{todump}, \@newvalues,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13367
+    "Able to use Values() to set values to be dumped");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13368
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13369
+$obj = Data::Dumper->new([$a,$b], [qw(a b)]);
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13370
+%newvalues = ( gamma => 'delta', epsilon => 'zeta' );
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13371
+eval { @values = $obj->Values(\%newvalues); };
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13372
+like($@, qr/Argument to Values, if provided, must be array ref/,
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13373
+    "Got expected error message: bad argument to Values()");
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13374
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13375
+
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13376
diff -ur --new-file perl-5.12.5/ext/B/t/concise-xs.t perl-5.12.5_dumper/ext/B/t/concise-xs.t
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13377
--- perl-5.12.5/ext/B/t/concise-xs.t	2012-11-03 19:26:00.000000000 -0400
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13378
+++ perl-5.12.5_dumper/ext/B/t/concise-xs.t	2014-10-09 14:41:00.586972981 -0400
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13379
@@ -127,7 +127,8 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13380
     Digest::MD5 => { perl => [qw/ import /],
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13381
 		     dflt => 'XS' },
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13382
 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13383
-    Data::Dumper => { XS => [qw/ bootstrap Dumpxs /],
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13384
+    Data::Dumper => { XS => [qw/ bootstrap Dumpxs _vstring /],
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13385
+		      constant => ['_bad_vsmg'],
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13386
 		      dflt => 'perl' },
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13387
     B => { 
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13388
 	dflt => 'constant',		# all but 47/297
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13389
diff -ur --new-file perl-5.12.5/MANIFEST perl-5.12.5_dumper/MANIFEST
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13390
--- perl-5.12.5/MANIFEST	2012-11-03 19:25:58.000000000 -0400
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13391
+++ perl-5.12.5_dumper/MANIFEST	2014-10-09 14:42:04.829633708 -0400
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13392
@@ -2602,13 +2602,37 @@
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13393
 dist/Data-Dumper/Changes	Data pretty printer, changelog
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13394
 dist/Data-Dumper/Dumper.pm	Data pretty printer, module
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13395
 dist/Data-Dumper/Dumper.xs	Data pretty printer, externals
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13396
+dist/Data-Dumper/Makefile.PL
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13397
+dist/Data-Dumper/MANIFEST	This list of files
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13398
+dist/Data-Dumper/MANIFEST.SKIP
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13399
+dist/Data-Dumper/META.yml	Module meta-data (added by MakeMaker)
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13400
+dist/Data-Dumper/ppport.h
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13401
 dist/Data-Dumper/t/bless.t	See if Data::Dumper works
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13402
+dist/Data-Dumper/t/bless_var_method.t
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13403
 dist/Data-Dumper/t/bugs.t	See if Data::Dumper works
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13404
+dist/Data-Dumper/t/deparse.t
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13405
 dist/Data-Dumper/t/dumper.t	See if Data::Dumper works
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13406
+dist/Data-Dumper/t/dumpperl.t
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13407
 dist/Data-Dumper/t/freezer.t	See if $Data::Dumper::Freezer works
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13408
+dist/Data-Dumper/t/freezer_useperl.t
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13409
+dist/Data-Dumper/t/indent.t
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13410
+dist/Data-Dumper/t/lib/Testing.pm
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13411
+dist/Data-Dumper/t/misc.t
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13412
+dist/Data-Dumper/t/names.t
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13413
 dist/Data-Dumper/Todo		Data pretty printer, futures
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13414
 dist/Data-Dumper/t/overload.t	See if Data::Dumper works for overloaded data
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13415
 dist/Data-Dumper/t/pair.t	See if Data::Dumper pair separator works
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13416
+dist/Data-Dumper/t/perl-74170.t
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13417
+dist/Data-Dumper/t/purity_deepcopy_maxdepth.t
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13418
+dist/Data-Dumper/t/qr.t
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13419
+dist/Data-Dumper/t/quotekeys.t
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13420
+dist/Data-Dumper/t/recurse.t
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13421
+dist/Data-Dumper/t/seen.t
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13422
+dist/Data-Dumper/t/sortkeys.t
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13423
+dist/Data-Dumper/t/sparseseen.t
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13424
+dist/Data-Dumper/t/terse.t
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13425
+dist/Data-Dumper/t/toaster.t
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13426
+dist/Data-Dumper/t/values.t
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13427
 dist/ExtUtils-Install/Changes				ExtUtils-Install change log
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13428
 dist/ExtUtils-Install/lib/ExtUtils/Installed.pm		Information on installed extensions
d5b710c8edde 19768631 problem in UTILITY/PERL
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
 13429
 dist/ExtUtils-Install/lib/ExtUtils/Install.pm		Handles 'make install' on extensions