leafnode  1.12.0
About: Leafnode is a store & forward NNTP proxy for small (dialup) sites.
  Fossies Dox: leafnode-1.12.0.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

wildmat.c File Reference
#include "leafnode.h"
Include dependency graph for wildmat.c:

Go to the source code of this file.

Macros

#define ABORT   -1
 
#define NEGATE_CLASS   '^'
 
#define OPTIMIZE_JUST_STAR
 

Functions

static int DoMatch (const char *text, const char *p)
 
int wildmat (const char *text, const char *p)
 

Macro Definition Documentation

◆ ABORT

#define ABORT   -1

Definition at line 52 of file wildmat.c.

◆ NEGATE_CLASS

#define NEGATE_CLASS   '^'

Definition at line 54 of file wildmat.c.

◆ OPTIMIZE_JUST_STAR

#define OPTIMIZE_JUST_STAR

Definition at line 56 of file wildmat.c.

Function Documentation

◆ DoMatch()

static int DoMatch ( const char *  text,
const char *  p 
)
static

Definition at line 63 of file wildmat.c.

References ABORT, DoMatch(), FALSE, NEGATE_CLASS, and TRUE.

Referenced by DoMatch(), and wildmat().

◆ wildmat()

int wildmat ( const char *  text,
const char *  p 
)

Definition at line 126 of file wildmat.c.

References DoMatch(), FALSE, and TRUE.

Referenced by getgroup(), and ngmatch().