diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2024-09-14 01:38:51 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2024-09-14 01:38:51 +0000 |
commit | 360dbe6199c8607a19f8b3848826d9f721ac2a11 (patch) | |
tree | a03581b6f1dcf04599b23491658b3200b3edd61d /converter | |
parent | f92fc5fd74d7df568f65bcbf85ae22aa0dbfb9fd (diff) | |
download | netpbm-mirror-360dbe6199c8607a19f8b3848826d9f721ac2a11.tar.gz netpbm-mirror-360dbe6199c8607a19f8b3848826d9f721ac2a11.tar.xz netpbm-mirror-360dbe6199c8607a19f8b3848826d9f721ac2a11.zip |
cleanup
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@4943 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'converter')
-rw-r--r-- | converter/other/fiasco/fiascotopnm.c | 3 | ||||
-rw-r--r-- | converter/other/fiasco/getopt.c | 14 | ||||
-rw-r--r-- | converter/other/fiasco/getopt1.c | 5 |
3 files changed, 20 insertions, 2 deletions
diff --git a/converter/other/fiasco/fiascotopnm.c b/converter/other/fiasco/fiascotopnm.c index 340f9d4e..9e819b38 100644 --- a/converter/other/fiasco/fiascotopnm.c +++ b/converter/other/fiasco/fiascotopnm.c @@ -238,6 +238,8 @@ video_decoder(const char * const wfa_name, } while (panel); } + + int main(int argc, const char **argv) { @@ -262,3 +264,4 @@ main(int argc, const char **argv) { } + 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 */ diff --git a/converter/other/fiasco/getopt1.c b/converter/other/fiasco/getopt1.c index 4ed64b8b..5ffdd565 100644 --- a/converter/other/fiasco/getopt1.c +++ b/converter/other/fiasco/getopt1.c @@ -75,6 +75,8 @@ getopt_long (argc, argv, options, long_options, opt_index) return _getopt_internal (argc, argv, options, long_options, opt_index, 0); } + + /* Like getopt_long, but '-' as well as '--' can indicate a long option. If an option that starts with '-' (not '--') doesn't match a long option, but does match a short option, it is parsed as a short option @@ -92,6 +94,7 @@ getopt_long_only (argc, argv, options, long_options, opt_index) } + #endif /* Not ELIDE_CODE. */ #ifdef TEST @@ -186,4 +189,6 @@ main (argc, argv) exit (0); } + + #endif /* TEST */ |