Apparently, this has never been tried with a .0 release...

I've just tried this with a number of Win32 perl-5.10.0 installations, and can't reproduce the problem, as the offending code is not executed (because has_cc() is true).

Incidentally, if using a Microsoft compiler you may need this patch to Bare.xs:
--- Bare.xs_orig Mon Apr 27 12:34:29 2009 +++ Bare.xs Mon Apr 27 13:00:50 2009 @@ -97,13 +97,13 @@ if( SvTYPE( SvRV(*cur) ) == SVt_PVHV ) { AV *newarray = newAV(); SV *newarrayref = newRV_noinc( (SV *) newarray ); - + + SV *ob = cxml2obj(); SV *newref = newRV( (SV *) SvRV( *cur ) ); - + hv_delete( output, curnode->name, curnode->namelen, 0 ); hv_store( output, curnode->name, curnode->namelen, newarray +ref, 0 ); av_push( newarray, newref ); - SV *ob = cxml2obj(); av_push( newarray, ob ); } else { @@ -141,7 +141,9 @@ int numatts = curnode->numatt; SV *attval; SV *attatt; - + HV *output = newHV(); + SV *outputref = newRV( (SV *) output ); + int length = curnode->numchildren; if( ( length + numatts ) == 0 ) { if( curnode->vallen ) { @@ -151,9 +153,6 @@ return newSViv( 1 ); //&PL_sv_undef; } - HV *output = newHV(); - SV *outputref = newRV( (SV *) output ); - if( length ) { curnode = curnode->firstchild; for( i = 0; i < length; i++ ) { @@ -273,6 +272,9 @@ c_parsefile(filename) char * filename CODE: + char *data; + unsigned long len; + FILE *handle; PERL_HASH(vhash, "value", 5); PERL_HASH(ahash, "_att", 4); PERL_HASH(chash, "comment", 7); @@ -280,9 +282,6 @@ PERL_HASH(ihash, "_i", 2 ); PERL_HASH(zhash, "_z", 2 ); PERL_HASH(cdhash, "_cdata", 6 ); - char *data; - unsigned long len; - FILE *handle; handle = fopen(filename,"r"); fseek( handle, 0, SEEK_END );
(I'll report that, too - if I don't forget.)

Cheers,
Rob

In reply to Re^4: Fastest XML parser that can run under ActivePerl on Windows? by syphilis
in thread Fastest XML parser that can run under ActivePerl on Windows? by Xenofur

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.