[commit] Deprecate remaining STREQ uses

David Carlton carlton@kealia.com
Tue Nov 25 17:59:00 GMT 2003


On Tue, 25 Nov 2003 12:57:22 -0500, Daniel Jacobowitz <drow@mvista.com> said:
> On Tue, Nov 25, 2003 at 12:54:15PM -0500, Andrew Cagney wrote:

>> 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)

> If you want to do this mechanically, you can just change the
> definition of STREQ first, of course.

Good point!

David Carlton
carlton@kealia.com



More information about the Gdb-patches mailing list