ports/93122: [PATCH] www/p5-HTML-Parser: [fix build on 4.x]

Anton Berezin tobez at FreeBSD.org
Fri Feb 10 01:00:41 PST 2006


On Fri, Feb 10, 2006 at 05:53:47PM +0900, Tod McQuillin wrote:
> On Fri, 10 Feb 2006, Anton Berezin wrote:
> 
> >Synopsis: [PATCH] www/p5-HTML-Parser: [fix build on 4.x]
> >
> >State-Changed-From-To: open->closed
> >State-Changed-By: tobez
> >State-Changed-When: Fri Feb 10 09:42:46 CET 2006
> >State-Changed-Why:
> >Whoops, I fixed it independently with a slightly different patch before
> >seeing your PR. Thanks anyway.
> 
> I thought about doing it your way but I wasn't sure if accessing ->offset, 
> ->line, ->column would be valid if ->eof was true.  But comparing with 
> version 3.48 I see it used to access them without checking so I guess it's 
> okay.

Since there is no deep magic going on, and the code assumes that p_state
can be accessed, I see no harm in those assignments.

But I do not claim that my patch is in any way better than yours, I
would have committed your version if I were to see the PR before I fixed
the compilation.  :-)

Cheers,
\Anton.
-- 
An undefined problem has an infinite number of solutions.
-- Robert A. Humphrey


More information about the freebsd-perl mailing list