diff options
Diffstat (limited to 'lib-src/getopt.c')
| -rw-r--r-- | lib-src/getopt.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lib-src/getopt.c b/lib-src/getopt.c index fc87ce67d69..df61ee5cf7e 100644 --- a/lib-src/getopt.c +++ b/lib-src/getopt.c | |||
| @@ -1,9 +1,9 @@ | |||
| 1 | /* Getopt for GNU. | 1 | /* Getopt for GNU. |
| 2 | NOTE: getopt is now part of the C library, so if you don't know what | 2 | NOTE: getopt is now part of the C library, so if you don't know what |
| 3 | "Keep this file name-space clean" means, talk to roland@gnu.ai.mit.edu | 3 | "Keep this file name-space clean" means, talk to drepper@gnu.org |
| 4 | before changing it! | 4 | before changing it! |
| 5 | 5 | ||
| 6 | Copyright (C) 1987, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97 | 6 | Copyright (C) 1987, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98 |
| 7 | Free Software Foundation, Inc. | 7 | Free Software Foundation, Inc. |
| 8 | 8 | ||
| 9 | NOTE: The canonical source of this file is maintained with the GNU C Library. | 9 | NOTE: The canonical source of this file is maintained with the GNU C Library. |
| @@ -34,7 +34,7 @@ | |||
| 34 | #include <config.h> | 34 | #include <config.h> |
| 35 | #endif | 35 | #endif |
| 36 | 36 | ||
| 37 | #if !defined (__STDC__) || !__STDC__ | 37 | #if !defined __STDC__ || !__STDC__ |
| 38 | /* This is a separate conditional since some stdc systems | 38 | /* This is a separate conditional since some stdc systems |
| 39 | reject `defined (const)'. */ | 39 | reject `defined (const)'. */ |
| 40 | #ifndef const | 40 | #ifndef const |
| @@ -53,7 +53,7 @@ | |||
| 53 | it is simpler to just do this in the source for each such file. */ | 53 | it is simpler to just do this in the source for each such file. */ |
| 54 | 54 | ||
| 55 | #define GETOPT_INTERFACE_VERSION 2 | 55 | #define GETOPT_INTERFACE_VERSION 2 |
| 56 | #if !defined (_LIBC) && defined (__GLIBC__) && __GLIBC__ >= 2 | 56 | #if !defined _LIBC && defined __GLIBC__ && __GLIBC__ >= 2 |
| 57 | #include <gnu-versions.h> | 57 | #include <gnu-versions.h> |
| 58 | #if _GNU_GETOPT_INTERFACE_VERSION == GETOPT_INTERFACE_VERSION | 58 | #if _GNU_GETOPT_INTERFACE_VERSION == GETOPT_INTERFACE_VERSION |
| 59 | #define ELIDE_CODE | 59 | #define ELIDE_CODE |
| @@ -225,7 +225,7 @@ my_index (str, chr) | |||
| 225 | #ifdef __GNUC__ | 225 | #ifdef __GNUC__ |
| 226 | /* Note that Motorola Delta 68k R3V7 comes with GCC but not stddef.h. | 226 | /* Note that Motorola Delta 68k R3V7 comes with GCC but not stddef.h. |
| 227 | That was relevant to code that was here before. */ | 227 | That was relevant to code that was here before. */ |
| 228 | #if !defined (__STDC__) || !__STDC__ | 228 | #if !defined __STDC__ || !__STDC__ |
| 229 | /* gcc with -traditional declares the built-in strlen to return int, | 229 | /* gcc with -traditional declares the built-in strlen to return int, |
| 230 | and has done so at least since version 2.4.5. -- rms. */ | 230 | and has done so at least since version 2.4.5. -- rms. */ |
| 231 | extern int strlen (const char *); | 231 | extern int strlen (const char *); |
| @@ -292,7 +292,7 @@ text_set_element (__libc_subinit, store_args_and_env); | |||
| 292 | `first_nonopt' and `last_nonopt' are relocated so that they describe | 292 | `first_nonopt' and `last_nonopt' are relocated so that they describe |
| 293 | the new indices of the non-options in ARGV after they are moved. */ | 293 | the new indices of the non-options in ARGV after they are moved. */ |
| 294 | 294 | ||
| 295 | #if defined (__STDC__) && __STDC__ | 295 | #if defined __STDC__ && __STDC__ |
| 296 | static void exchange (char **); | 296 | static void exchange (char **); |
| 297 | #endif | 297 | #endif |
| 298 | 298 | ||
| @@ -378,7 +378,7 @@ exchange (argv) | |||
| 378 | 378 | ||
| 379 | /* Initialize the internal data when the first call is made. */ | 379 | /* Initialize the internal data when the first call is made. */ |
| 380 | 380 | ||
| 381 | #if defined (__STDC__) && __STDC__ | 381 | #if defined __STDC__ && __STDC__ |
| 382 | static const char *_getopt_initialize (int, char *const *, const char *); | 382 | static const char *_getopt_initialize (int, char *const *, const char *); |
| 383 | #endif | 383 | #endif |
| 384 | static const char * | 384 | static const char * |