diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 1999-02-25 06:39:12 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 1999-02-25 06:39:12 +0000 |
commit | 1727010a3abf84fd06f0e44d44b1b8ef6cde588e (patch) | |
tree | 098dc615cb65069b1d3f714cd959d3d3927c2aeb /missing | |
parent | 3976feed73bf4ec27183824870ee077c2b5b00b1 (diff) |
990225
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_3@407 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'missing')
-rw-r--r-- | missing/fnmatch.c | 15 | ||||
-rw-r--r-- | missing/fnmatch.h | 2 |
2 files changed, 12 insertions, 5 deletions
diff --git a/missing/fnmatch.c b/missing/fnmatch.c index 5bc8d7d402..09f474b0ec 100644 --- a/missing/fnmatch.c +++ b/missing/fnmatch.c @@ -48,11 +48,15 @@ static char sccsid[] = "@(#)fnmatch.c 8.2 (Berkeley) 4/16/94"; #define EOS '\0' -static const char *rangematch(const char *, int, int); +static char *rangematch(const char *, int, int); -int fnmatch(const char *pattern, const char *string, int flags) +int +fnmatch(pattern, string, flags) + char *pattern; + char *string; + int flags; { - const char *stringstart; + char *stringstart; char c, test; for (stringstart = string;;) { @@ -149,7 +153,10 @@ int fnmatch(const char *pattern, const char *string, int flags) } } -static const char *rangematch(const char *pattern, int test, int flags) +static char* +rangematch(pattern, test, flags) + char *pattern; + int test, flags; { int negate, ok; char c, c2; diff --git a/missing/fnmatch.h b/missing/fnmatch.h index 66f36a1537..773851625a 100644 --- a/missing/fnmatch.h +++ b/missing/fnmatch.h @@ -48,7 +48,7 @@ extern "C" { #define FNM_PATHNAME 0x02 /* Slash must be matched by slash. */ #define FNM_PERIOD 0x04 /* Period must be matched by period. */ -int fnmatch(const char *, const char *, int); +int fnmatch(); #ifdef __cplusplus } |