bug-inetutils
[Top][All Lists]
Advanced

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

[bug-inetutils] Re: Argpifying ping.


From: Simon Josefsson
Subject: [bug-inetutils] Re: Argpifying ping.
Date: Sat, 31 Mar 2007 16:41:25 +0200
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.95 (gnu/linux)

"Sergey Poznyakoff" <address@hidden> writes:

> 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);

There is a gnulib module 'version-etc' and 'version-etc-fsf' which
provides this text, maybe it could be enhanced to be usable for argp
too?  If it is not already usable, that is.  I suspect it will change
whenever the GNU coding standards changes.

/Simon




reply via email to

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