summaryrefslogtreecommitdiff
path: root/libshouldbeinlibc
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1996-07-06 21:12:56 +0000
committerMiles Bader <miles@gnu.org>1996-07-06 21:12:56 +0000
commitd2e08915a6168c3f66f1cf659226f957b4121398 (patch)
treebb0d7a75da42efe31154c906c8617d77abb8fc9f /libshouldbeinlibc
parent5ec631163c7e36d10278b4bc69aaf1822287715e (diff)
(argp_program_version_hook): Add argument types.
Diffstat (limited to 'libshouldbeinlibc')
-rw-r--r--libshouldbeinlibc/argp.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/libshouldbeinlibc/argp.h b/libshouldbeinlibc/argp.h
index 1c6a80eb..9c59c407 100644
--- a/libshouldbeinlibc/argp.h
+++ b/libshouldbeinlibc/argp.h
@@ -261,15 +261,17 @@ error_t argp_parse (const struct argp *argp,
/* If defined or set by the user program to a non-zero value, then a default
option --version is added (unless the ARGP_NO_HELP flag is used), which
- will print this this string and exit (unless the ARGP_NO_EXIT flag is
- used). Overridden by ARGP_PROGRAM_VERSION_HOOK. */
+ will print this this string followed by a newline and exit (unless the
+ ARGP_NO_EXIT flag is used). Overridden by ARGP_PROGRAM_VERSION_HOOK. */
extern char *argp_program_version;
/* If defined or set by the user program to a non-zero value, then a default
option --version is added (unless the ARGP_NO_HELP flag is used), which
- calls this function and exits (unless the ARGP_NO_EXIT flag is used).
- This variable takes precedent over ARGP_PROGRAM_VERSION. */
-extern void (*argp_program_version_hook) ();
+ calls this function with a stream to print the version to and a pointer to
+ the current parsing state, and then exits (unless the ARGP_NO_EXIT flag is
+ used). This variable takes precedent over ARGP_PROGRAM_VERSION. */
+extern void (*argp_program_version_hook) (FILE *stream,
+ struct argp_state *state);
/* Flags for argp_help. */
#define ARGP_HELP_USAGE 0x01 /* Print a Usage: message. */