projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
arc: Don't generate dynamic relocation for non SEC_ALLOC sections
[deliverable/binutils-gdb.git]
/
libiberty
/
getopt1.c
diff --git
a/libiberty/getopt1.c
b/libiberty/getopt1.c
index ff257374c335af5847a1a611e1e2cda2ff3caaca..87242472e86eae1246e3fe67fca4060049eaa67a 100644
(file)
--- a/
libiberty/getopt1.c
+++ b/
libiberty/getopt1.c
@@
-1,9
+1,8
@@
/* getopt_long and getopt_long_only entry points for GNU getopt.
/* getopt_long and getopt_long_only entry points for GNU getopt.
- Copyright (C) 1987,88,89,90,91,92,93,94,96,97,98
- Free Software Foundation, Inc.
+ Copyright (C) 1987-2020 Free Software Foundation, Inc.
- NOTE: Th
e canonical source of this file is maintained with the GNU C Library.
-
Bugs can be reported to bug-glibc@gnu.org
.
+ NOTE: Th
is source is derived from an old version taken from the GNU C
+
Library (glibc)
.
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
@@
-17,15
+16,13
@@
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
- Foundation, Inc., 5
9 Temple Place - Suite 330, Boston, MA 02111-1307
,
+ Foundation, Inc., 5
1 Franklin Street - Fifth Floor, Boston, MA 02110-1301
,
USA. */
\f
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
USA. */
\f
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
-#include "getopt.h"
-
#if !defined __STDC__ || !__STDC__
/* This is a separate conditional since some stdc systems
reject `defined (const)'. */
#if !defined __STDC__ || !__STDC__
/* This is a separate conditional since some stdc systems
reject `defined (const)'. */
@@
-36,6
+33,8
@@
#include <stdio.h>
#include <stdio.h>
+#include "getopt.h"
+
/* Comment out all this code if we are using the GNU C Library, and are not
actually compiling the library itself. This code is part of the GNU C
Library, but also included in many other GNU distributions. Compiling
/* Comment out all this code if we are using the GNU C Library, and are not
actually compiling the library itself. This code is part of the GNU C
Library, but also included in many other GNU distributions. Compiling
@@
-66,12
+65,8
@@
#endif
int
#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;
+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);
}
{
return _getopt_internal (argc, argv, options, long_options, opt_index, 0);
}
@@
-82,12
+77,8
@@
getopt_long (argc, argv, options, long_options, opt_index)
instead. */
int
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;
+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);
}
{
return _getopt_internal (argc, argv, options, long_options, opt_index, 1);
}
@@
-100,9
+91,7
@@
getopt_long_only (argc, argv, options, long_options, opt_index)
#include <stdio.h>
int
#include <stdio.h>
int
-main (argc, argv)
- int argc;
- char **argv;
+main (int argc, char **argv)
{
int c;
int digit_optind = 0;
{
int c;
int digit_optind = 0;
This page took
0.02399 seconds
and
4
git commands to generate.