bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: argmatch: accept perfect matches in documented arglists


From: Akim Demaille
Subject: Re: argmatch: accept perfect matches in documented arglists
Date: Tue, 25 Jun 2019 08:21:41 +0200

Hi Bruno,

I pushed this.

commit 47405621b3066c035b4b98d2db934d550aaed1ad
Author: Akim Demaille <address@hidden>
Date:   Tue Jun 25 08:11:34 2019 +0200

    argmatch: remove duplicate const qualifier
    
    * lib/argmatch.h (ARGMATCH_DEFINE_GROUP): Here.

diff --git a/ChangeLog b/ChangeLog
index 1ce1c16b2..09358766c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2019-06-25  Akim Demaille  <address@hidden>
+
+       argmatch: remove duplicate const qualifier
+       * lib/argmatch.h (ARGMATCH_DEFINE_GROUP): Here.
+
 2019-06-24  Paul Eggert  <address@hidden>
 
        unistd: stddef.h and sys/types.h namespace cleanup
diff --git a/lib/argmatch.h b/lib/argmatch.h
index 427d7179f..46a452cda 100644
--- a/lib/argmatch.h
+++ b/lib/argmatch.h
@@ -126,7 +126,7 @@ char const *argmatch_to_argument (void const *value,
   typedef struct                                                        \
   {                                                                     \
     /* Argument (e.g., "simple").  */                                   \
-    const char const *arg;                                              \
+    const char *arg;                                                    \
     /* Value (e.g., simple_backups).  */                                \
     const argmatch_##Name##_type val;                                   \
   } argmatch_##Name##_arg;                                              \
@@ -135,9 +135,9 @@ char const *argmatch_to_argument (void const *value,
   typedef struct                                                        \
   {                                                                     \
     /* Argument (e.g., "simple").  */                                   \
-    const char const *arg;                                              \
+    const char *arg;                                                    \
     /* Documentation (e.g., N_("always make simple backups")).  */      \
-    const char const *doc;                                              \
+    const char *doc;                                                    \
   } argmatch_##Name##_doc;                                              \
                                                                         \
   /* All the features of an argmatch group.  */                         \




reply via email to

[Prev in Thread] Current Thread [Next in Thread]