bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: strstr speedup


From: Bruno Haible
Subject: Re: strstr speedup
Date: Sat, 12 Jan 2008 16:55:11 +0100
User-agent: KMail/1.5.4

Eric Blake wrote:
> Are there still broken platforms out there where tolower() disobeys
> the POSIX requirement that it leave the argument unchanged if it was not
> already an upper-case letter?

This portability problem is very old. I don't think it's still relevant,
but I don't know for sure.

> so we can directly use tolower() here without expanding the
> argument multiple times?

I would not put side effects into the argument of tolower(): Some platforms
may expand it into a macro which evaluates the argument more than once.

Bruno





reply via email to

[Prev in Thread] Current Thread [Next in Thread]