diff options
Diffstat (limited to 'gl/getopt_int.h')
| -rw-r--r-- | gl/getopt_int.h | 38 |
1 files changed, 20 insertions, 18 deletions
diff --git a/gl/getopt_int.h b/gl/getopt_int.h index 3c6628bb..169def5b 100644 --- a/gl/getopt_int.h +++ b/gl/getopt_int.h | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | /* Internal declarations for getopt. | 1 | /* Internal declarations for getopt. |
| 2 | Copyright (C) 1989-1994,1996-1999,2001,2003,2004 | 2 | Copyright (C) 1989-1994, 1996-1999, 2001, 2003-2004, 2009-2010 Free Software |
| 3 | Free Software Foundation, Inc. | 3 | Foundation, Inc. |
| 4 | This file is part of the GNU C Library. | 4 | This file is part of the GNU C Library. |
| 5 | 5 | ||
| 6 | This program is free software: you can redistribute it and/or modify | 6 | This program is free software: you can redistribute it and/or modify |
| @@ -17,12 +17,14 @@ | |||
| 17 | along with this program. If not, see <http://www.gnu.org/licenses/>. */ | 17 | along with this program. If not, see <http://www.gnu.org/licenses/>. */ |
| 18 | 18 | ||
| 19 | #ifndef _GETOPT_INT_H | 19 | #ifndef _GETOPT_INT_H |
| 20 | #define _GETOPT_INT_H 1 | 20 | #define _GETOPT_INT_H 1 |
| 21 | |||
| 22 | #include <getopt.h> | ||
| 21 | 23 | ||
| 22 | extern int _getopt_internal (int ___argc, char **___argv, | 24 | extern int _getopt_internal (int ___argc, char **___argv, |
| 23 | const char *__shortopts, | 25 | const char *__shortopts, |
| 24 | const struct option *__longopts, int *__longind, | 26 | const struct option *__longopts, int *__longind, |
| 25 | int __long_only, int __posixly_correct); | 27 | int __long_only, int __posixly_correct); |
| 26 | 28 | ||
| 27 | 29 | ||
| 28 | /* Reentrant versions which can handle parsing multiple argument | 30 | /* Reentrant versions which can handle parsing multiple argument |
| @@ -108,23 +110,23 @@ struct _getopt_data | |||
| 108 | 110 | ||
| 109 | /* The initializer is necessary to set OPTIND and OPTERR to their | 111 | /* The initializer is necessary to set OPTIND and OPTERR to their |
| 110 | default values and to clear the initialization flag. */ | 112 | default values and to clear the initialization flag. */ |
| 111 | #define _GETOPT_DATA_INITIALIZER { 1, 1 } | 113 | #define _GETOPT_DATA_INITIALIZER { 1, 1 } |
| 112 | 114 | ||
| 113 | extern int _getopt_internal_r (int ___argc, char **___argv, | 115 | extern int _getopt_internal_r (int ___argc, char **___argv, |
| 114 | const char *__shortopts, | 116 | const char *__shortopts, |
| 115 | const struct option *__longopts, int *__longind, | 117 | const struct option *__longopts, int *__longind, |
| 116 | int __long_only, int __posixly_correct, | 118 | int __long_only, struct _getopt_data *__data, |
| 117 | struct _getopt_data *__data); | 119 | int __posixly_correct); |
| 118 | 120 | ||
| 119 | extern int _getopt_long_r (int ___argc, char **___argv, | 121 | extern int _getopt_long_r (int ___argc, char **___argv, |
| 120 | const char *__shortopts, | 122 | const char *__shortopts, |
| 121 | const struct option *__longopts, int *__longind, | 123 | const struct option *__longopts, int *__longind, |
| 122 | struct _getopt_data *__data); | 124 | struct _getopt_data *__data); |
| 123 | 125 | ||
| 124 | extern int _getopt_long_only_r (int ___argc, char **___argv, | 126 | extern int _getopt_long_only_r (int ___argc, char **___argv, |
| 125 | const char *__shortopts, | 127 | const char *__shortopts, |
| 126 | const struct option *__longopts, | 128 | const struct option *__longopts, |
| 127 | int *__longind, | 129 | int *__longind, |
| 128 | struct _getopt_data *__data); | 130 | struct _getopt_data *__data); |
| 129 | 131 | ||
| 130 | #endif /* getopt_int.h */ | 132 | #endif /* getopt_int.h */ |
