On 05/21/2014 10:14 PM, Paul Eggert wrote: > Kieran Colford wrote: >> +#define STRNEQ(X, Y) (strcmp (X, Y) != 0) > > 1. This name is poorly chosen (it looks too much like "strncmp", which > means something quite different) and it's not needed (people can just > use "!STREQ"). > > 2. STREQ should be an inline function, not a macro. There's little > point to making it a macro. > > 3. STREQ's name should be lower case.
If it is made an inline function rather than a macro, then yes it should be lower case. But if we do this, then we need to update the syntax-check rule that was created to force the use of STREQ in the first place, which has a ripple effect on a number of projects already using STREQ as a macro. -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature