This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Update on bugzilla stuff


On Tue, 1 Jan 2002, Richard Henderson wrote:

> On Tue, Jan 01, 2002 at 07:21:08PM -0500, Daniel Berlin wrote:
> > for (p = str; *p != ';' && *p; *p++);
> > if (!*p)
> > 	return 0;
> 
> Perhaps
> 
>   if (strchr (str, ';') == NULL)
>     return 0;
> 

To give you some idea how ugly the links code is, doing it this way would 
look *very* weird in the context, because the entire function, and in 
fact, all of links, is written  with this type of crap (WHITECHARS should 
have been isspace, instead it checks for char == 9 || char == 10 || etc).

--Dan


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]