This is the mail archive of the
elfutils-devel@sourceware.org
mailing list for the elfutils project.
Re: [PATCH] stack: Add basic argp version and bug definitions.
- From: Mark Wielaard <mjw at redhat dot com>
- To: elfutils-devel at lists dot fedorahosted dot org
- Date: Mon, 11 Nov 2013 15:38:37 +0100
- Subject: Re: [PATCH] stack: Add basic argp version and bug definitions.
On Sun, 2013-11-10 at 22:27 +0100, Jan Kratochvil wrote:
> On Sun, 10 Nov 2013 22:17:39 +0100, Mark Wielaard wrote:
> > +2013-11-10 Mark Wielaard <mjw@redhat.com>
> > +
> > + * stack.c: Use ARGP_PROGRAM_VERSION_HOOK_DEF and
> > + ARGP_PROGRAM_BUG_ADDRESS_DEF.
>
> Some wrong spacing here.
Fixed.
> > + (print_version): New function.
>
> It really works. I have no idea how :-) but sure OK for check-in.
It works by argp magic :)
These globals
https://www.gnu.org/software/libc/manual/html_node/Argp-Global-Variables.html
are wrapped in some more magic macros by lib/system.h which are then
used in the src programs.
Cheers,
Mark