develooper Front page | perl.libwww | Postings from February 2001

HTML-Parser-3.16

From:
Gisle Aas
Date:
February 23, 2001 10:09
Subject:
HTML-Parser-3.16
Message ID:
lr4rxlff04.fsf@caliper.ActiveState.com
HTML-Parser-3.16 should now be on CPAN.  Changes since 3.15 are:

     The unbroken_text option now works across ignored tags.

     Fix casting of pointers on some 64 bit platforms.

     Fix decoding of Unicode entities.  Only optionally available for
     perl-5.7.0 or better.

Unfortunately I just discovered that HTML-Parser will not build on
some configurations of perl unless you apply this patch.  Expect 3.17
to go out real soon :-(

Regards,
Gisle



--- util.c.dist	Fri Feb 23 09:59:27 2001
+++ util.c	Fri Feb 23 10:01:13 2001
@@ -40,7 +40,7 @@
 }
 
 static void
-grow_gap(SV* sv, STRLEN grow, char** t, char** s, char** e)
+grow_gap(pTHX_ SV* sv, STRLEN grow, char** t, char** s, char** e)
 {
     /*
      SvPVX ---> AAAAAA...BBBBBB
@@ -181,7 +181,7 @@
 			/* XXX It might already be enough gap, so we don't need this,
 			   but it should not hurt either.
 			*/
-			grow_gap(sv, grow, &t, &s, &end);
+			grow_gap(aTHX_ sv, grow, &t, &s, &end);
 			Copy(ustr, SvPVX(sv), len, char);
 			t = SvPVX(sv) + len;
 		    }
@@ -197,7 +197,7 @@
 
 	    if (t + repl_len > s) {
 		/* need to grow the string */
-		grow_gap(sv, repl_len - (s - t), &t, &s, &end);
+		grow_gap(aTHX_ sv, repl_len - (s - t), &t, &s, &end);
 	    }
 
 	    /* copy replacement string into string */



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About