develooper Front page | perl.perl5.porters | Postings from May 2008

Re: Data::Dumper patch

Thread Previous | Thread Next
Dave Mitchell
May 30, 2008 15:02
Re: Data::Dumper patch
Message ID:
On Thu, May 08, 2008 at 04:35:42PM +0300, Alexandr Ciornii wrote:
> Patch to make Data::Dumper compile on older Perl's.
> my_sprintf is available only on 5.10 and cannot be supported by
> ppport.h (requires probe). Also added
> #define NEED_my_snprintf

+#if PERL_VERSION < 10
+                sprintf(r, "\\x{%"UVxf"}", k);
+                r += strlen(r);
+                #my_sprintf is not supported by ppport.h
                 r = r + my_sprintf(r, "\\x{%"UVxf"}", k);

Did you really indent to have a perl-style comment before my_sprintf?

You never really learn to swear until you learn to drive.

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About