[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-inetutils] Argpifying ping.
From: |
Sergey Poznyakoff |
Subject: |
Re: [bug-inetutils] Argpifying ping. |
Date: |
Fri, 30 Mar 2007 11:44:11 +0300 |
Alfred M. Szmidt <address@hidden> wrote:
> -char *program_name;
> +const char *argp_program_bug_address = "<" PACKAGE_BUGREPORT ">";
>
> Maybe this should be a macro, or define in one place?
Looks reasonable. I'd propose this:
#define ARGP_PROGRAM_DATA(name) \
const char *argp_program_bug_address = "<" PACKAGE_BUGREPORT ">"; \
const char *argp_program_version = \
#name " (" PACKAGE_NAME ") " PACKAGE_VERSION \
"\nThis is free software. You may redistribute copies of it under the terms
of\" \
"\nthe GNU General Public License <http://www.gnu.org/licenses/gpl.html>." \
"\nThere is NO WARRANTY, to the extent permitted by law."
Then the appropriate initailization for ping would be:
ARGP_PROGRAM_DATA(ping);
Regards,
Sergey
- [bug-inetutils] Argpifying ping., Debarshi 'Rishi' Ray, 2007/03/27
- Re: [bug-inetutils] Argpifying ping., Barry deFreese, 2007/03/27
- Re: [bug-inetutils] Argpifying ping., Sergey Poznyakoff, 2007/03/28
- Re: [bug-inetutils] Argpifying ping., Debarshi 'Rishi' Ray, 2007/03/29
- Re: [bug-inetutils] Argpifying ping., Alfred M. Szmidt, 2007/03/29
- Re: [bug-inetutils] Argpifying ping., Alfred M. Szmidt, 2007/03/29
- Re: [bug-inetutils] Argpifying ping.,
Sergey Poznyakoff <=
- Re: [bug-inetutils] Argpifying ping., Alfred M. Szmidt, 2007/03/30
- Re: [bug-inetutils] Argpifying ping., Sergey Poznyakoff, 2007/03/30
- Re: [bug-inetutils] Argpifying ping., Debarshi 'Rishi' Ray, 2007/03/30
- Re: [bug-inetutils] Argpifying ping., Sergey Poznyakoff, 2007/03/31
- Re: [bug-inetutils] Argpifying ping., Alfred M. Szmidt, 2007/03/31
- Re: [bug-inetutils] Argpifying ping., Debarshi 'Rishi' Ray, 2007/03/31
- Re: [bug-inetutils] Argpifying ping., Sergey Poznyakoff, 2007/03/31
- Re: [bug-inetutils] Argpifying ping., Debarshi 'Rishi' Ray, 2007/03/31
- Re: [bug-inetutils] Argpifying ping., Sergey Poznyakoff, 2007/03/31
- Re: [bug-inetutils] Argpifying ping., Alfred M. Szmidt, 2007/03/31