This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: C++ PATCH: strcmp and strncmp usage cleanup (Re: C++ PATCH to fix thinko)
On May 20, 2000, Gabriel Dos Reis <Gabriel.Dos-Reis@cmla.ens-cachan.fr> wrote:
> The following replaces every usage of strcmp and strncmp with that of
> the macro match_string.
I'm afraid this is not right. Sometimes, we want to match just a
prefix of a given string; other times, we really want to match full
strings. We use strncmp for the former, and strcmp for the latter.
With your patch, it seems to me that we'd accept -fno-new-abi-snafu as
a synonym for -fno-new-abi.
--
Alexandre Oliva Enjoy Guaranį, see http://www.ic.unicamp.br/~oliva/
Cygnus Solutions, a Red Hat company aoliva@{redhat, cygnus}.com
Free Software Developer and Evangelist CS PhD student at IC-Unicamp
oliva@{lsd.ic.unicamp.br, gnu.org} Write to mailing lists, not to me