Front page | perl.perl5.porters |
Postings from May 2008
Re: Data::Dumper patch
Thread Previous
|
Thread Next
From:
Dave Mitchell
Date:
May 30, 2008 15:02
Subject:
Re: Data::Dumper patch
Message ID:
20080530220222.GK10614@iabyn.com
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
+#else
r = r + my_sprintf(r, "\\x{%"UVxf"}", k);
+#endif
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