search for: negate_class

Displaying 1 result from an estimated 1 matches for "negate_class".

2002 May 07
0
Fixing exclude/exclude wildcard handling
...he character-class code. +*/ + +#ifndef NO_CONFIG_H /* for some tests */ +#include "config.h" +#endif + +#ifdef HAVE_STRING_H +#include <string.h> +#endif + +#ifdef HAVE_STRINGS_H +#include <strings.h> +#endif + +/* What character marks an inverted character class? */ +#define NEGATE_CLASS '!' + +#define FALSE 0 +#define TRUE 1 + +int +wildmat(const char *text, const char *p) +{ + int last, matched, special; + + for ( ; *p; text++, p++) { + if (*text == '\0' && *p != '*') + return FALSE; + switch (*p) { + case '\\': + /* Literal m...