projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
gdb: Convert language la_get_symbol_name_matcher field to a method
[deliverable/binutils-gdb.git]
/
libiberty
/
fnmatch.c
diff --git
a/libiberty/fnmatch.c
b/libiberty/fnmatch.c
index eb898ee14d82de7402697e4fadfdb0d7757b628a..7be51aed03b150260ec283c1a08be8b51a463569 100644
(file)
--- a/
libiberty/fnmatch.c
+++ b/
libiberty/fnmatch.c
@@
-1,4
+1,4
@@
-/* Copyright (C) 1991
, 1992, 1993
Free Software Foundation, Inc.
+/* Copyright (C) 1991
-2020
Free Software Foundation, Inc.
NOTE: This source is derived from an old version taken from the GNU C
Library (glibc).
NOTE: This source is derived from an old version taken from the GNU C
Library (glibc).
@@
-15,8
+15,8
@@
GNU General Public License for more details.
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, 5
9 Temple Place - Suite 330
,
-Boston, MA 0211
1-1307
, USA. */
+Foundation, 5
1 Franklin Street - Fifth Floor
,
+Boston, MA 0211
0-1301
, USA. */
#ifdef HAVE_CONFIG_H
#if defined (CONFIG_BROKETS)
#ifdef HAVE_CONFIG_H
#if defined (CONFIG_BROKETS)
@@
-65,10
+65,7
@@
extern int errno;
/* Match STRING against the filename pattern PATTERN, returning zero if
it matches, nonzero if not. */
int
/* Match STRING against the filename pattern PATTERN, returning zero if
it matches, nonzero if not. */
int
-fnmatch (pattern, string, flags)
- const char *pattern;
- const char *string;
- int flags;
+fnmatch (const char *pattern, const char *string, int flags)
{
register const char *p = pattern, *n = string;
register unsigned char c;
{
register const char *p = pattern, *n = string;
register unsigned char c;
@@
-127,7
+124,7
@@
fnmatch (pattern, string, flags)
case '[':
{
/* Nonzero if the sense of the character class is inverted. */
case '[':
{
/* Nonzero if the sense of the character class is inverted. */
- register int n
ot
;
+ register int n
egate
;
if (*n == '\0')
return FNM_NOMATCH;
if (*n == '\0')
return FNM_NOMATCH;
@@
-136,8
+133,8
@@
fnmatch (pattern, string, flags)
(n == string || ((flags & FNM_FILE_NAME) && n[-1] == '/')))
return FNM_NOMATCH;
(n == string || ((flags & FNM_FILE_NAME) && n[-1] == '/')))
return FNM_NOMATCH;
- n
ot
= (*p == '!' || *p == '^');
- if (n
ot
)
+ n
egate
= (*p == '!' || *p == '^');
+ if (n
egate
)
++p;
c = *p++;
++p;
c = *p++;
@@
-180,7
+177,7
@@
fnmatch (pattern, string, flags)
if (c == ']')
break;
}
if (c == ']')
break;
}
- if (!n
ot
)
+ if (!n
egate
)
return FNM_NOMATCH;
break;
return FNM_NOMATCH;
break;
@@
-197,7
+194,7
@@
fnmatch (pattern, string, flags)
/* XXX 1003.2d11 is unclear if this is right. */
++p;
}
/* XXX 1003.2d11 is unclear if this is right. */
++p;
}
- if (n
ot
)
+ if (n
egate
)
return FNM_NOMATCH;
}
break;
return FNM_NOMATCH;
}
break;
This page took
0.025737 seconds
and
4
git commands to generate.