summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1996-07-06 21:13:26 +0000
committerMiles Bader <miles@gnu.org>1996-07-06 21:13:26 +0000
commit0c061be50f8d6cb54a9c3aae14e75aafcc4c0288 (patch)
treee5f4252bbbe414c98583c9cf0a47734fd1186d3e
parenta47c1da01e4062ccd4afb70aeb326b8c167e5796 (diff)
(argp_program_version_hook): Type & doc updated.
"argp.h": New include.
-rw-r--r--libshouldbeinlibc/argp-pvh.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/libshouldbeinlibc/argp-pvh.c b/libshouldbeinlibc/argp-pvh.c
index e9e176fa..a58c1923 100644
--- a/libshouldbeinlibc/argp-pvh.c
+++ b/libshouldbeinlibc/argp-pvh.c
@@ -20,8 +20,11 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
+#include "argp.h"
+
/* If 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. */
-void (*argp_program_version_hook) () = 0;
+ 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. */
+void (*argp_program_version_hook) (FILE *stream, struct argp_state *state) = 0;