X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ngircd-alex.git;a=blobdiff_plain;f=src%2Fngircd%2Fmatch.c;h=88872f0d9102353b83e79cc6274be451acc58f45;hp=bc26e75588d05c19e12ae719e8ae4179f35eb4ca;hb=43fb18f2f5a506c4d78967e4b6e961b7339c98dc;hpb=a4ed90ba9af1dce4df3f57f6a7c84097000c7256 diff --git a/src/ngircd/match.c b/src/ngircd/match.c index bc26e755..88872f0d 100644 --- a/src/ngircd/match.c +++ b/src/ngircd/match.c @@ -25,18 +25,15 @@ #include "defines.h" #include "tool.h" - /* * The pattern matching functions [Matche(), Matche_After_Star()] are based * on code of J. Kercheval. Version 1.1 has been released on 1991-03-12 as * "public domain": */ - static int Matche PARAMS(( const char *p, const char *t )); static int Matche_After_Star PARAMS(( const char *p, const char *t )); - #define MATCH_PATTERN 6 /**< bad pattern */ #define MATCH_LITERAL 5 /**< match failure on literal match */ #define MATCH_RANGE 4 /**< match failure on [..] construct */ @@ -44,7 +41,6 @@ static int Matche_After_Star PARAMS(( const char *p, const char *t )); #define MATCH_END 2 /**< premature end of pattern string */ #define MATCH_VALID 1 /**< valid match */ - /** * Match string with pattern. * @@ -59,7 +55,6 @@ Match( const char *Pattern, const char *String ) else return false; } /* Match */ - /** * Match string with pattern case-insensitive. * @@ -76,7 +71,6 @@ MatchCaseInsensitive(const char *Pattern, const char *String) return Match(Pattern, ngt_LowerStr(haystack)); } /* MatchCaseInsensitive */ - /** * Match string with pattern case-insensitive. * @@ -105,7 +99,6 @@ MatchCaseInsensitiveList(const char *Pattern, const char *String, return false; } /* MatchCaseInsensitive */ - static int Matche( const char *p, const char *t ) { @@ -136,7 +129,6 @@ Matche( const char *p, const char *t ) else return MATCH_VALID; } /* Matche */ - static int Matche_After_Star( const char *p, const char *t ) { @@ -186,5 +178,4 @@ Matche_After_Star( const char *p, const char *t ) return match; } /* Matche_After_Star */ - /* -eof- */