This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [commit] Deprecate remaining STREQ uses
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