This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [commit] Deprecate remaining STREQ uses


On Nov 25, 12:54pm, 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)

The latter.  If you still want to do the former, you might as well
keep the macro.

Kevin


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]