diff options
Diffstat (limited to 'converter/other/fiasco/getopt.c')
-rw-r--r-- | converter/other/fiasco/getopt.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/converter/other/fiasco/getopt.c b/converter/other/fiasco/getopt.c index 44fd03e6..65c206c3 100644 --- a/converter/other/fiasco/getopt.c +++ b/converter/other/fiasco/getopt.c @@ -219,6 +219,8 @@ my_index (str, chr) return 0; } + + /* If using GCC, we can safely declare strlen this way. If not using GCC, it is ok not to declare it. */ #ifdef __GNUC__ @@ -300,7 +302,7 @@ exchange (argv) { /* Bottom segment is the short one. */ int len = middle - bottom; - register int i; + int i; /* Swap it with the top part of the top segment. */ for (i = 0; i < len; i++) @@ -316,7 +318,7 @@ exchange (argv) { /* Top segment is the short one. */ int len = top - middle; - register int i; + int i; /* Swap it with the bottom part of the bottom segment. */ for (i = 0; i < len; i++) @@ -336,6 +338,8 @@ exchange (argv) last_nonopt = optind; } + + /* Initialize the internal data when the first call is made. */ #if defined (__STDC__) && __STDC__ @@ -907,6 +911,8 @@ _getopt_internal (argc, argv, optstring, longopts, longind, long_only) } } + + int getopt (argc, argv, optstring) int argc; @@ -919,6 +925,8 @@ getopt (argc, argv, optstring) 0); } + + #endif /* Not ELIDE_CODE. */ #ifdef TEST @@ -991,4 +999,6 @@ main (argc, argv) exit (0); } + + #endif /* TEST */ |