|
@@ -52,28 +52,12 @@ extern int _getopt_internal (int argc, char *const *argv,
|
|
|
|
|
|
#ifdef L__gnu_getopt_internal
|
|
|
|
|
|
-
|
|
|
- When `getopt' finds an option that takes an argument,
|
|
|
- the argument value is returned here.
|
|
|
- Also, when `ordering' is RETURN_IN_ORDER,
|
|
|
- each non-option ARGV-element is returned here. */
|
|
|
+
|
|
|
|
|
|
-char *optarg = NULL;
|
|
|
-
|
|
|
-
|
|
|
- This is used for communication to and from the caller
|
|
|
- and for communication between successive calls to `getopt'.
|
|
|
-
|
|
|
- On entry to `getopt', zero means this is the first call; initialize.
|
|
|
-
|
|
|
- When `getopt' returns EOF, this is the index of the first of the
|
|
|
- non-option elements that the caller should itself scan.
|
|
|
-
|
|
|
- Otherwise, `optind' communicates from one call to the next
|
|
|
- how much of ARGV has been scanned so far. */
|
|
|
-
|
|
|
-
|
|
|
-int optind = 0;
|
|
|
+extern int optind;
|
|
|
+extern int opterr;
|
|
|
+extern int optopt;
|
|
|
+extern char *optarg;
|
|
|
|
|
|
|
|
|
in which the last option character we returned was found.
|
|
@@ -84,17 +68,6 @@ int optind = 0;
|
|
|
|
|
|
static char *nextchar;
|
|
|
|
|
|
-
|
|
|
- for unrecognized options. */
|
|
|
-
|
|
|
-int opterr = 1;
|
|
|
-
|
|
|
-
|
|
|
- This must be initialized on some systems to avoid linking in the
|
|
|
- system's own getopt implementation. */
|
|
|
-
|
|
|
-int optopt = '?';
|
|
|
-
|
|
|
|
|
|
|
|
|
If the caller did not specify anything,
|