|
Packit Service |
fdd496 |
/* Print --version and bug-reporting information in a consistent format.
|
|
Packit Service |
fdd496 |
Copyright (C) 1999, 2003, 2005, 2009-2017 Free Software Foundation, Inc.
|
|
Packit Service |
fdd496 |
|
|
Packit Service |
fdd496 |
This program is free software: you can redistribute it and/or modify
|
|
Packit Service |
fdd496 |
it under the terms of the GNU General Public License as published by
|
|
Packit Service |
fdd496 |
the Free Software Foundation; either version 3 of the License, or
|
|
Packit Service |
fdd496 |
(at your option) any later version.
|
|
Packit Service |
fdd496 |
|
|
Packit Service |
fdd496 |
This program is distributed in the hope that it will be useful,
|
|
Packit Service |
fdd496 |
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit Service |
fdd496 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
Packit Service |
fdd496 |
GNU General Public License for more details.
|
|
Packit Service |
fdd496 |
|
|
Packit Service |
fdd496 |
You should have received a copy of the GNU General Public License
|
|
Packit Service |
fdd496 |
along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
|
Packit Service |
fdd496 |
|
|
Packit Service |
fdd496 |
/* Written by Jim Meyering. */
|
|
Packit Service |
fdd496 |
|
|
Packit Service |
fdd496 |
#ifndef VERSION_ETC_H
|
|
Packit Service |
fdd496 |
# define VERSION_ETC_H 1
|
|
Packit Service |
fdd496 |
|
|
Packit Service |
fdd496 |
# include <stdarg.h>
|
|
Packit Service |
fdd496 |
# include <stdio.h>
|
|
Packit Service |
fdd496 |
|
|
Packit Service |
fdd496 |
/* The 'sentinel' attribute was added in gcc 4.0. */
|
|
Packit Service |
fdd496 |
#ifndef _GL_ATTRIBUTE_SENTINEL
|
|
Packit Service |
fdd496 |
# if 4 <= __GNUC__
|
|
Packit Service |
fdd496 |
# define _GL_ATTRIBUTE_SENTINEL __attribute__ ((__sentinel__))
|
|
Packit Service |
fdd496 |
# else
|
|
Packit Service |
fdd496 |
# define _GL_ATTRIBUTE_SENTINEL /* empty */
|
|
Packit Service |
fdd496 |
# endif
|
|
Packit Service |
fdd496 |
#endif
|
|
Packit Service |
fdd496 |
|
|
Packit Service |
fdd496 |
extern const char version_etc_copyright[];
|
|
Packit Service |
fdd496 |
|
|
Packit Service |
fdd496 |
/* The three functions below display the --version information in the
|
|
Packit Service |
fdd496 |
standard way: command and package names, package version, followed
|
|
Packit Service |
fdd496 |
by a short GPLv3+ notice and a list of up to 10 author names.
|
|
Packit Service |
fdd496 |
|
|
Packit Service |
fdd496 |
If COMMAND_NAME is NULL, the PACKAGE is assumed to be the name of
|
|
Packit Service |
fdd496 |
the program. The formats are therefore:
|
|
Packit Service |
fdd496 |
|
|
Packit Service |
fdd496 |
PACKAGE VERSION
|
|
Packit Service |
fdd496 |
|
|
Packit Service |
fdd496 |
or
|
|
Packit Service |
fdd496 |
|
|
Packit Service |
fdd496 |
COMMAND_NAME (PACKAGE) VERSION.
|
|
Packit Service |
fdd496 |
|
|
Packit Service |
fdd496 |
The functions differ in the way they are passed author names: */
|
|
Packit Service |
fdd496 |
|
|
Packit Service |
fdd496 |
/* N_AUTHORS names are supplied in array AUTHORS. */
|
|
Packit Service |
fdd496 |
extern void version_etc_arn (FILE *stream,
|
|
Packit Service |
fdd496 |
const char *command_name, const char *package,
|
|
Packit Service |
fdd496 |
const char *version,
|
|
Packit Service |
fdd496 |
const char * const * authors, size_t n_authors);
|
|
Packit Service |
fdd496 |
|
|
Packit Service |
fdd496 |
/* Names are passed in the NULL-terminated array AUTHORS. */
|
|
Packit Service |
fdd496 |
extern void version_etc_ar (FILE *stream,
|
|
Packit Service |
fdd496 |
const char *command_name, const char *package,
|
|
Packit Service |
fdd496 |
const char *version, const char * const * authors);
|
|
Packit Service |
fdd496 |
|
|
Packit Service |
fdd496 |
/* Names are passed in the NULL-terminated va_list. */
|
|
Packit Service |
fdd496 |
extern void version_etc_va (FILE *stream,
|
|
Packit Service |
fdd496 |
const char *command_name, const char *package,
|
|
Packit Service |
fdd496 |
const char *version, va_list authors);
|
|
Packit Service |
fdd496 |
|
|
Packit Service |
fdd496 |
/* Names are passed as separate arguments, with an additional
|
|
Packit Service |
fdd496 |
NULL argument at the end. */
|
|
Packit Service |
fdd496 |
extern void version_etc (FILE *stream,
|
|
Packit Service |
fdd496 |
const char *command_name, const char *package,
|
|
Packit Service |
fdd496 |
const char *version,
|
|
Packit Service |
fdd496 |
/* const char *author1, ..., NULL */ ...)
|
|
Packit Service |
fdd496 |
_GL_ATTRIBUTE_SENTINEL;
|
|
Packit Service |
fdd496 |
|
|
Packit Service |
fdd496 |
/* Display the usual "Report bugs to" stanza. */
|
|
Packit Service |
fdd496 |
extern void emit_bug_reporting_address (void);
|
|
Packit Service |
fdd496 |
|
|
Packit Service |
fdd496 |
#endif /* VERSION_ETC_H */
|