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) |
#define ERR |
( |
e |
|
) |
VERR(v, e) |
#define HASH |
( |
bv, |
|
|
nw |
|
) |
(((nw) == 1) ? *(bv) : hash(bv, nw)) |
#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) |
#define LOFF |
( |
p |
|
) |
((long)OFF(p)) |
#define NOERR |
( |
|
) |
{if (ISERR()) return v->err;} |
#define OFF |
( |
p |
|
) |
((p) - v->start) |
#define VERR |
( |
vv, |
|
|
e |
|
) |
(((vv)->err) ? (vv)->err : ((vv)->err = (e))) |
#define VISERR |
( |
vv |
|
) |
((vv)->err != 0) |
Function Documentation
Definition at line 164 of file regexec.c.
References AllocVars, FREE, FreeVars, LOCALMAT, LOCALMEM, MALLOC, regex_t::re_csize, regex_t::re_guts, regex_t::re_magic, REG_ESPACE, REG_EXPECT, REG_INVARG, REG_MIXED, REG_NOMATCH, REG_NOSUB, REG_OKAY, REG_UBACKREF, REG_UIMPOSSIBLE, REMAGIC, and VS.
Generated on Wed Mar 12 12:18:27 2008 by
1.5.1
|