Re: [PATCH] stringops: add new module

2014-05-25 Thread Paul Eggert
Kieran Colford wrote: +/* Test if the strings X and Y are equal. */ +#define STREQ(X, Y) (strcmp (X, Y) == 0) + +/* Test if the strings a and b are equal. */ +static inline bool +streq (const char *a, const char *b) I think the latest idea was to have just one name, STREQ, and to have it be an

[PATCH] stringops: add new module

2014-05-25 Thread Kieran Colford
maint.mk has long had a syntax-check rule that requests that users use STREQ (a, b) instead of open-coding (strcmp (a, b) == 0); but nothing in gnulib actually provided that macro. This adds a new module to provide it, and an inline function streq. --- ChangeLog |8 lib/strin

[PATCH] stringops: add new module

2014-05-21 Thread Kieran Colford
maint.mk has long had a syntax-check rule that requests that users use STREQ (a, b) instead of open-coding (strcmp (a, b) == 0); but nothing in gnulib actually provided that macro. This adds a new module to provide it, and a counterpart STRNEQ. --- ChangeLog |7 +++ lib/stringops.