summaryrefslogtreecommitdiff
path: root/Build/source/texk/kpathsea/getopt1.c
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2010-04-10 22:13:05 +0000
committerKarl Berry <karl@freefriends.org>2010-04-10 22:13:05 +0000
commitd0877a918f55402aa46eec91b3309e26a909b67f (patch)
treec8aad5ab870f3565c2d2f21ecf79402ddd650d5b /Build/source/texk/kpathsea/getopt1.c
parent963b665a04c33ddcfe04234426c8bca1942589bf (diff)
ansify all fns
git-svn-id: svn://tug.org/texlive/trunk@17795 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/kpathsea/getopt1.c')
-rw-r--r--Build/source/texk/kpathsea/getopt1.c35
1 files changed, 16 insertions, 19 deletions
diff --git a/Build/source/texk/kpathsea/getopt1.c b/Build/source/texk/kpathsea/getopt1.c
index f5db79b19c3..30cdf9a3506 100644
--- a/Build/source/texk/kpathsea/getopt1.c
+++ b/Build/source/texk/kpathsea/getopt1.c
@@ -53,18 +53,17 @@
#include <stdlib.h>
#endif
-#ifndef NULL
+#ifndef NULL
#define NULL 0
#endif
-int
-getopt_long (argc, argv, options, long_options, opt_index)
- int argc;
- char *const *argv;
- const char *options;
- const struct option *long_options;
- int *opt_index;
-{
+int getopt_long(
+ int argc,
+ char *const *argv,
+ const char *options,
+ const struct option *long_options,
+ int *opt_index
+){
return _getopt_internal (argc, argv, options, long_options, opt_index, 0);
}
@@ -73,14 +72,13 @@ getopt_long (argc, argv, options, long_options, opt_index)
but does match a short option, it is parsed as a short option
instead. */
-int
-getopt_long_only (argc, argv, options, long_options, opt_index)
- int argc;
- char *const *argv;
- const char *options;
- const struct option *long_options;
- int *opt_index;
-{
+int getopt_long_only(
+ int argc,
+ char *const *argv,
+ const char *options,
+ const struct option *long_options,
+ int *opt_index
+){
return _getopt_internal (argc, argv, options, long_options, opt_index, 1);
}
@@ -91,8 +89,7 @@ getopt_long_only (argc, argv, options, long_options, opt_index)
#include <stdio.h>
-int
-main (int argc, char **argv)
+int main(int argc, char **argv)
{
int c;
int digit_optind = 0;