GNU bug report logs - #39764
[PATCH] IBM Z DFLTCC: add STREQ definition

Previous Next

Package: gzip;

Reported by: Ilya Leoshkevich <iii <at> linux.ibm.com>

Date: Mon, 24 Feb 2020 09:38:02 UTC

Severity: normal

Tags: patch

Done: Jim Meyering <jim <at> meyering.net>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 39764 in the body.
You can then email your comments to 39764 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gzip <at> gnu.org:
bug#39764; Package gzip. (Mon, 24 Feb 2020 09:38:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Ilya Leoshkevich <iii <at> linux.ibm.com>:
New bug report received and forwarded. Copy sent to bug-gzip <at> gnu.org. (Mon, 24 Feb 2020 09:38:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Ilya Leoshkevich <iii <at> linux.ibm.com>
To: bug-gzip <at> gnu.org
Cc: Ilya Leoshkevich <iii <at> linux.ibm.com>
Subject: [PATCH] IBM Z DFLTCC: add STREQ definition
Date: Mon, 24 Feb 2020 10:36:50 +0100
Commit 81c9fe4d0986 replaced !strcmp with STREQ in order to be compliant
with the gnulib linter, however, gnulib does not provide STREQ!

Quite a few gnulib .c files contain private definitions of STREQ. This
patch just goes with the flow and does the same in dfltcc.c.
---
 dfltcc.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/dfltcc.c b/dfltcc.c
index 1d6d74c..432c68c 100644
--- a/dfltcc.c
+++ b/dfltcc.c
@@ -72,6 +72,8 @@ typedef enum
 
 #define MAX(a, b) ((a) > (b) ? (a) : (b))
 
+#define STREQ(a, b) (strcmp (a, b) == 0)
+
 struct dfltcc_qaf_param
 {
   char fns[16];
-- 
2.23.0





Information forwarded to bug-gzip <at> gnu.org:
bug#39764; Package gzip. (Fri, 29 May 2020 10:23:02 GMT) Full text and rfc822 format available.

Message #8 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Ilya Leoshkevich <iii <at> linux.ibm.com>
To: bug-gzip <at> gnu.org
Cc: Jim Meyering <meyering <at> fb.com>
Subject: Re: [PATCH] IBM Z DFLTCC: add STREQ definition
Date: Fri, 29 May 2020 12:22:39 +0200
On Mon, 2020-02-24 at 10:36 +0100, Ilya Leoshkevich wrote:
> Commit 81c9fe4d0986 replaced !strcmp with STREQ in order to be
> compliant
> with the gnulib linter, however, gnulib does not provide STREQ!
> 
> Quite a few gnulib .c files contain private definitions of STREQ.
> This
> patch just goes with the flow and does the same in dfltcc.c.
> ---
>  dfltcc.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/dfltcc.c b/dfltcc.c
> index 1d6d74c..432c68c 100644
> --- a/dfltcc.c
> +++ b/dfltcc.c
> @@ -72,6 +72,8 @@ typedef enum
>  
>  #define MAX(a, b) ((a) > (b) ? (a) : (b))
>  
> +#define STREQ(a, b) (strcmp (a, b) == 0)
> +
>  struct dfltcc_qaf_param
>  {
>    char fns[16];

Gentle ping.





Reply sent to Jim Meyering <jim <at> meyering.net>:
You have taken responsibility. (Fri, 29 May 2020 15:52:02 GMT) Full text and rfc822 format available.

Notification sent to Ilya Leoshkevich <iii <at> linux.ibm.com>:
bug acknowledged by developer. (Fri, 29 May 2020 15:52:02 GMT) Full text and rfc822 format available.

Message #13 received at 39764-done <at> debbugs.gnu.org (full text, mbox):

From: Jim Meyering <jim <at> meyering.net>
To: Ilya Leoshkevich <iii <at> linux.ibm.com>
Cc: Jim Meyering <meyering <at> fb.com>, 39764-done <at> debbugs.gnu.org
Subject: Re: bug#39764: [PATCH] IBM Z DFLTCC: add STREQ definition
Date: Fri, 29 May 2020 08:51:11 -0700
On Fri, May 29, 2020 at 3:23 AM Ilya Leoshkevich <iii <at> linux.ibm.com> wrote:
>
> On Mon, 2020-02-24 at 10:36 +0100, Ilya Leoshkevich wrote:
> > Commit 81c9fe4d0986 replaced !strcmp with STREQ in order to be
> > compliant
> > with the gnulib linter, however, gnulib does not provide STREQ!
> >
> > Quite a few gnulib .c files contain private definitions of STREQ.
> > This
> > patch just goes with the flow and does the same in dfltcc.c.
> > ---
> >  dfltcc.c | 2 ++
> >  1 file changed, 2 insertions(+)
> >
> > diff --git a/dfltcc.c b/dfltcc.c
> > index 1d6d74c..432c68c 100644
> > --- a/dfltcc.c
> > +++ b/dfltcc.c
> > @@ -72,6 +72,8 @@ typedef enum
> >
> >  #define MAX(a, b) ((a) > (b) ? (a) : (b))
> >
> > +#define STREQ(a, b) (strcmp (a, b) == 0)
> > +
> >  struct dfltcc_qaf_param
> >  {
> >    char fns[16];
>
> Gentle ping.

Thank you. Strangely, it seems I never received your original email.
I got a copy from https://bugs.gnu.org/39764 and pushed it.
I note that there *is* an identical definition of strequ in gzip.c,
but I prefer the STREQ spelling and don't want to change gzip.c to
address this problem.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 27 Jun 2020 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 301 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.