You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Howard Fear <hs...@pooh.pageplus.com> on 1997/07/06 18:39:31 UTC

Re: mod_include loops

Marc Slemko writes:
> There are two loops in mod_include similar to:
>  [code snipped]
> 
> They cause Sun's SC4.2 to complain about end of loop code not
> being reached.  For some reason, when I looked at the loop
> before, the loop looked fine.
> 
> Obviously, it isn't.  The while() does absolutely nothing, and could be 
> taken out, ie. simply leave the body in.  
> 
> The reason the loop is that way is presumably so it is in the same
> form as a bunch of other ones where it does matter.  Is it worth
> bothering with?

I really should've commented this since it comes up every so often.
And, yes the reason is simply to maintain form.  And the real answer
is to table-drive the parsing instead of using case statements.
And, its hell to keep being reminded just how ugly your code is -
but good motivation to fix it.

--
Howard Fear      I'm just a country perl hacker Jim.        hsf@pageplus.com
                    http://www.pageplus.com/~hsf/           hsf@redcape.com