Subject: | 1.58 doesn't compile with gcc 2.95.3 |
perl-libxml-mm.c doesn't compile with gcc 2.95.3; the attached patch fixes this.
*** perl-libxml-mm.c.orig Wed Mar 31 20:32:08 2004
--- perl-libxml-mm.c Thu Feb 3 11:18:00 2005
***************
*** 953,958 ****
--- 953,959 ----
{
/* this is a little helper function to avoid to much redundand
code in LibXML.xs */
+ xmlChar * decoded;
SV* retval = &PL_sv_undef;
STRLEN len = 0;
***************
*** 965,971 ****
if ( PmmNodeEncoding(real_doc) == XML_CHAR_ENCODING_NONE ) {
PmmNodeEncoding(real_doc) = XML_CHAR_ENCODING_UTF8;
}
! xmlChar * decoded = PmmFastDecodeString( PmmNodeEncoding(real_doc) ,
(const xmlChar *)string,
(const xmlChar*)real_doc->encoding);
xs_warn( "push decoded string into SV" );
--- 966,972 ----
if ( PmmNodeEncoding(real_doc) == XML_CHAR_ENCODING_NONE ) {
PmmNodeEncoding(real_doc) = XML_CHAR_ENCODING_UTF8;
}
! decoded = PmmFastDecodeString( PmmNodeEncoding(real_doc) ,
(const xmlChar *)string,
(const xmlChar*)real_doc->encoding);
xs_warn( "push decoded string into SV" );