1 /* -*- buffer-read-only: t -*- vi: set ro: */
2 /* DO NOT EDIT! GENERATED AUTOMATICALLY! */
3 /* Print --version and bug-reporting information in a consistent format.
4 Copyright (C) 1999, 2003, 2005, 2009-2013 Free Software Foundation, Inc.
6 This program is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 3 of the License, or
9 (at your option) any later version.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program. If not, see <http://www.gnu.org/licenses/>. */
19 /* Written by Jim Meyering. */
22 # define VERSION_ETC_H 1
27 /* The 'sentinel' attribute was added in gcc 4.0. */
28 #ifndef _GL_ATTRIBUTE_SENTINEL
30 # define _GL_ATTRIBUTE_SENTINEL __attribute__ ((__sentinel__))
32 # define _GL_ATTRIBUTE_SENTINEL /* empty */
36 extern const char version_etc_copyright[];
38 /* The three functions below display the --version information in the
39 standard way: command and package names, package version, followed
40 by a short GPLv3+ notice and a list of up to 10 author names.
42 If COMMAND_NAME is NULL, the PACKAGE is assumed to be the name of
43 the program. The formats are therefore:
49 COMMAND_NAME (PACKAGE) VERSION.
51 The functions differ in the way they are passed author names: */
53 /* N_AUTHORS names are supplied in array AUTHORS. */
54 extern void version_etc_arn (FILE *stream,
55 const char *command_name, const char *package,
57 const char * const * authors, size_t n_authors);
59 /* Names are passed in the NULL-terminated array AUTHORS. */
60 extern void version_etc_ar (FILE *stream,
61 const char *command_name, const char *package,
62 const char *version, const char * const * authors);
64 /* Names are passed in the NULL-terminated va_list. */
65 extern void version_etc_va (FILE *stream,
66 const char *command_name, const char *package,
67 const char *version, va_list authors);
69 /* Names are passed as separate arguments, with an additional
70 NULL argument at the end. */
71 extern void version_etc (FILE *stream,
72 const char *command_name, const char *package,
74 /* const char *author1, ..., NULL */ ...)
75 _GL_ATTRIBUTE_SENTINEL;
77 /* Display the usual "Report bugs to" stanza. */
78 extern void emit_bug_reporting_address (void);
80 #endif /* VERSION_ETC_H */