httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexei Kosut <ako...@nueva.pvt.k12.ca.us>
Subject Re: Useless code in next_token
Date Sun, 13 Oct 1996 18:58:47 GMT
On Sun, 13 Oct 1996, Ben Laurie wrote:

> next_token() in util.c contains the following fragment:
> 
>     while (*cp && (iscntrl (*cp) || strchr (tspecials, *cp))) {
>         if (*cp == '"')
> 	  while (*cp && (*cp != '"')) ++cp;
> 	else
> 	  ++cp;
>     }
> 
> It is not possible for *cp to be '"' in the body of the loop. What say I
> eliminate this misleading code?

Hmm... Maybe. I know that RST's original code for next_token() had "
in tspecials, but I removed it and did some other things to it,
in order for the etag code to work. What you say sounds right... But I
dunno :)

-- 
________________________________________________________________________
Alexei Kosut <akosut@nueva.pvt.k12.ca.us>      The Apache HTTP Server
URL: http://www.nueva.pvt.k12.ca.us/~akosut/   http://www.apache.org/


Mime
View raw message