Re: [commit] Deprecate remaining STREQ uses

David Carlton
2003-11-25T17:58:35Z

On Tue, 25 Nov 2003 12:54:15 -0500, Andrew Cagney <cagney@gnu.org> said:

> So, should the transformation be the strictly mechanical inline expansion:

> STREQ(a,b) => (*(a) == *(b) ? !strcmp ((a), (b)) : 0)

> or also include a simplification leading to:

> STREQ(a,b) => (strcmp ((a), (b)) == 0)

I would vote for the latter. It should be easy to do mechanically via
keyboard macros, and it's how we would prefer the code to look.

David Carlton
carlton@kealia.com