mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03:00
(GETOPT_HELP_CHAR): Define.
(GETOPT_VERSION_CHAR): Define. (GETOPT_HELP_OPTION_DECL): Define. (GETOPT_VERSION_OPTION_DECL): Define. (case_GETOPT_HELP_CHAR): Define. (case_GETOPT_VERSION_CHAR): Define.
This commit is contained in:
1 parent
06303195c0
commit
eff1cee6e1
1 file changed
+22
+22
@@ -249,3 +249,25 @@ off_t lseek ();
|
||||
#endif
|
||||
|
||||
char *base_name PARAMS ((char const *));
|
||||
|
||||
/* Factor out some of the common --help and --version processing code. */
|
||||
|
||||
#define GETOPT_HELP_CHAR 250
|
||||
#define GETOPT_VERSION_CHAR 251
|
||||
|
||||
#define GETOPT_HELP_OPTION_DECL \
|
||||
"help", no_argument, 0, GETOPT_HELP_CHAR
|
||||
#define GETOPT_VERSION_OPTION_DECL \
|
||||
"version", no_argument, 0, GETOPT_VERSION_CHAR
|
||||
|
||||
#define case_GETOPT_HELP_CHAR \
|
||||
case GETOPT_HELP_CHAR: \
|
||||
usage (EXIT_SUCCESS); \
|
||||
break;
|
||||
|
||||
#define case_GETOPT_VERSION_CHAR(Program_name, Authors) \
|
||||
case GETOPT_VERSION_CHAR: \
|
||||
version_etc (stdout, Program_name, GNU_PACKAGE, VERSION, Authors); \
|
||||
close_stdout (); \
|
||||
exit (EXIT_SUCCESS); \
|
||||
break;
|
||||
Reference in new issue
Block a user