regexec.c File Reference

#include "regguts.h"
#include "rege_dfa.c"

Go to the source code of this file.

Data Structures

struct  arcp
struct  sset
struct  dfa
struct  smalldfa
struct  vars

Defines

#define HASH(bv, nw)   (((nw) == 1) ? *(bv) : hash(bv, nw))
#define HIT(h, bv, ss, nw)
#define STARTER   01
#define POSTSTATE   02
#define LOCKED   04
#define NOPROGRESS   010
#define WORK   1
#define FEWSTATES   20
#define FEWCOLORS   15
#define DOMALLOC   ((struct smalldfa *)NULL)
#define VISERR(vv)   ((vv)->err != 0)
#define ISERR()   VISERR(v)
#define VERR(vv, e)   (((vv)->err) ? (vv)->err : ((vv)->err = (e)))
#define ERR(e)   VERR(v, e)
#define NOERR()   {if (ISERR()) return v->err;}
#define OFF(p)   ((p) - v->start)
#define LOFF(p)   ((long)OFF(p))
#define LOCALMAT   20
#define LOCALMEM   40
#define UNTRIED   0
#define TRYING   1
#define TRIED   2

Functions

int exec (regex_t *, CONST chr *, size_t, rm_detail_t *, size_t, regmatch_t[], int)


Define Documentation

#define DOMALLOC   ((struct smalldfa *)NULL)

Definition at line 94 of file regexec.c.

#define ERR (  )     VERR(v, e)

Definition at line 117 of file regexec.c.

#define FEWCOLORS   15

Definition at line 86 of file regexec.c.

#define FEWSTATES   20

Definition at line 85 of file regexec.c.

#define HASH ( bv,
nw   )     (((nw) == 1) ? *(bv) : hash(bv, nw))

Definition at line 45 of file regexec.c.

#define HIT ( h,
bv,
ss,
nw   ) 

Value:

((ss)->hash == (h) && ((nw) == 1 || \
        memcmp(VS(bv), VS((ss)->states), (nw)*sizeof(unsigned)) == 0))

Definition at line 46 of file regexec.c.

 
#define ISERR (  )     VISERR(v)

Definition at line 115 of file regexec.c.

#define LOCALMAT   20

Referenced by exec().

#define LOCALMEM   40

Referenced by exec().

#define LOCKED   04

Definition at line 51 of file regexec.c.

#define LOFF (  )     ((long)OFF(p))

Definition at line 120 of file regexec.c.

 
#define NOERR (  )     {if (ISERR()) return v->err;}

Definition at line 118 of file regexec.c.

#define NOPROGRESS   010

Definition at line 52 of file regexec.c.

#define OFF (  )     ((p) - v->start)

Definition at line 119 of file regexec.c.

#define POSTSTATE   02

Definition at line 50 of file regexec.c.

#define STARTER   01

Definition at line 49 of file regexec.c.

#define TRIED   2

#define TRYING   1

#define UNTRIED   0

#define VERR ( vv,
 )     (((vv)->err) ? (vv)->err : ((vv)->err = (e)))

Definition at line 116 of file regexec.c.

#define VISERR ( vv   )     ((vv)->err != 0)

Definition at line 114 of file regexec.c.

#define WORK   1

Definition at line 79 of file regexec.c.


Function Documentation

int exec ( regex_t ,
CONST chr ,
size_t  ,
rm_detail_t ,
size_t  ,
regmatch_t  [],
int   
)



Generated on Wed Mar 12 12:18:27 2008 by  doxygen 1.5.1