#include "regcustom.h"
#include <assert.h>
#include <limits.h>
Go to the source code of this file.
Data Structures | |
struct | colors |
struct | ptrs |
union | tree |
struct | colordesc |
struct | colormap |
struct | cvec |
struct | arc |
struct | arcbatch |
struct | state |
struct | nfa |
struct | carc |
struct | cnfa |
struct | subre |
struct | fns |
struct | guts |
Defines | |
#define | NDEBUG |
#define | DISCARD void |
#define | VS(x) ((void *)(x)) |
#define | _POSIX2_RE_DUP_MAX 255 |
#define | NOTREACHED 0 |
#define | xxx 1 |
#define | DUPMAX _POSIX2_RE_DUP_MAX |
#define | INFINITY (DUPMAX+1) |
#define | REMAGIC 0xfed7 |
#define | FDEBUG(arglist) {} |
#define | MDEBUG(arglist) {} |
#define | UBITS (CHAR_BIT * sizeof(unsigned)) |
#define | BSET(uv, sn) ((uv)[(sn)/UBITS] |= (unsigned)1 << ((sn)%UBITS)) |
#define | ISBSET(uv, sn) ((uv)[(sn)/UBITS] & ((unsigned)1 << ((sn)%UBITS))) |
#define | BYTBITS 8 |
#define | BYTTAB (1<<BYTBITS) |
#define | BYTMASK (BYTTAB-1) |
#define | NBYTS ((CHRBITS+BYTBITS-1)/BYTBITS) |
#define | MAX_COLOR 32767 |
#define | COLORLESS (-1) |
#define | WHITE 0 |
#define | tcolor colors.ccolor |
#define | tptr ptrs.pptr |
#define | NOSUB COLORLESS |
#define | FREECOL 01 |
#define | PSEUDO 02 |
#define | UNUSEDCOLOR(cd) ((cd)->flags & FREECOL) |
#define | CMMAGIC 0x876 |
#define | CDEND(cm) (&(cm)->cd[(cm)->max + 1]) |
#define | NINLINECDS ((size_t)10) |
#define | B0(c) ((c) & BYTMASK) |
#define | B1(c) (((c)>>BYTBITS) & BYTMASK) |
#define | B2(c) (((c)>>(2*BYTBITS)) & BYTMASK) |
#define | B3(c) (((c)>>(3*BYTBITS)) & BYTMASK) |
#define | freechain outchain |
#define | ABSIZE 10 |
#define | FREESTATE (-1) |
#define | HASLACONS 01 |
#define | CNFA_NOPROGRESS 01 |
#define | ZAPCNFA(cnfa) ((cnfa).nstates = 0) |
#define | NULLCNFA(cnfa) ((cnfa).nstates == 0) |
#define | LONGER 01 |
#define | SHORTER 02 |
#define | MIXED 04 |
#define | CAP 010 |
#define | BACKR 020 |
#define | INUSE 0100 |
#define | LOCAL 03 |
#define | LMIX(f) ((f)<<2) |
#define | SMIX(f) ((f)<<1) |
#define | UP(f) (((f)&~LOCAL) | (LMIX(f) & SMIX(f) & MIXED)) |
#define | MESSY(f) ((f)&(MIXED|CAP|BACKR)) |
#define | PREF(f) ((f)&LOCAL) |
#define | PREF2(f1, f2) ((PREF(f1) != 0) ? PREF(f1) : PREF(f2)) |
#define | COMBINE(f1, f2) (UP((f1)|(f2)) | PREF2(f1, f2)) |
#define | GUTSMAGIC 0xfed9 |
Typedefs | |
typedef short | color |
typedef int | pcolor |
#define ABSIZE 10 |
Definition at line 299 of file regguts.h.
Referenced by allocarc().
#define BACKR 020 |
Definition at line 418 of file regguts.h.
Referenced by cdissect(), and parseqatom().
#define BSET | ( | uv, | ||
sn | ||||
) | ((uv)[(sn)/UBITS] |= (unsigned)1 << ((sn)%UBITS)) |
Definition at line 123 of file regguts.h.
Referenced by initialize(), and miss().
#define BYTBITS 8 |
Definition at line 135 of file regguts.h.
Referenced by scancolormap(), setcolor(), and subblock().
#define BYTMASK (BYTTAB-1) |
Definition at line 138 of file regguts.h.
Referenced by setcolor(), subblock(), and subrange().
#define BYTTAB (1<<BYTBITS) |
Definition at line 137 of file regguts.h.
Referenced by cmtreefree(), initcm(), setcolor(), subblock(), and subrange().
#define CAP 010 |
Definition at line 417 of file regguts.h.
Referenced by parseqatom().
#define CDEND | ( | cm | ) | (&(cm)->cd[(cm)->max + 1]) |
Definition at line 228 of file regguts.h.
Referenced by colorcomplement(), okcolors(), and rainbow().
#define CMMAGIC 0x876 |
Definition at line 222 of file regguts.h.
Referenced by setcolor().
#define COLORLESS (-1) |
Definition at line 152 of file regguts.h.
Referenced by dumpnfa(), findprefix(), makesearch(), miss(), newnfa(), newsub(), parseqatom(), pg_reg_getnumoutarcs(), pg_reg_getoutarcs(), pg_regcomp(), setcolor(), specialcolors(), and subcolor().
#define COMBINE | ( | f1, | ||
f2 | ||||
) | (UP((f1)|(f2)) | PREF2(f1, f2)) |
Definition at line 427 of file regguts.h.
Referenced by parseqatom().
#define FDEBUG | ( | arglist | ) | {} |
Definition at line 113 of file regguts.h.
Referenced by getvacant(), lacon(), longest(), miss(), pickss(), and shortest().
#define FREESTATE (-1) |
Definition at line 306 of file regguts.h.
Referenced by delsub(), deltraverse(), destroystate(), pullback(), and pushfwd().
#define INFINITY (DUPMAX+1) |
Definition at line 98 of file regguts.h.
Referenced by cbrdissect(), citerdissect(), creviterdissect(), and parseqatom().
#define ISBSET | ( | uv, | ||
sn | ||||
) | ((uv)[(sn)/UBITS] & ((unsigned)1 << ((sn)%UBITS))) |
#define LONGER 01 |
Definition at line 414 of file regguts.h.
Referenced by parse(), and parseqatom().
#define MAX_COLOR 32767 |
Definition at line 151 of file regguts.h.
Referenced by newcolor().
#define MDEBUG | ( | arglist | ) | {} |
Definition at line 114 of file regguts.h.
Referenced by caltdissect(), cbrdissect(), ccondissect(), cdissect(), cfindloop(), citerdissect(), crevcondissect(), creviterdissect(), find(), and subset().
#define MESSY | ( | f | ) | ((f)&(MIXED|CAP|BACKR)) |
Definition at line 424 of file regguts.h.
Referenced by parse(), and parseqatom().
#define NBYTS ((CHRBITS+BYTBITS-1)/BYTBITS) |
Definition at line 139 of file regguts.h.
Referenced by cmtreefree(), freecm(), initcm(), scancolormap(), setcolor(), and subblock().
#define NOSUB COLORLESS |
Definition at line 201 of file regguts.h.
Referenced by freecolor(), newsub(), and okcolors().
#define NOTREACHED 0 |
Definition at line 380 of file regguts.h.
Referenced by freelacons(), freesrnode(), and rfree().
#define PREF | ( | f | ) | ((f)&LOCAL) |
Definition at line 425 of file regguts.h.
Referenced by parseqatom().
#define PREF2 | ( | f1, | ||
f2 | ||||
) | ((PREF(f1) != 0) ? PREF(f1) : PREF(f2)) |
#define PSEUDO 02 |
Definition at line 206 of file regguts.h.
Referenced by colorcomplement(), pg_reg_getcharacters(), pg_reg_getnumcharacters(), and rainbow().
#define REMAGIC 0xfed7 |
Definition at line 100 of file regguts.h.
Referenced by pg_reg_colorisbegin(), pg_reg_colorisend(), pg_reg_getcharacters(), pg_reg_getfinalstate(), pg_reg_getinitialstate(), pg_reg_getnumcharacters(), pg_reg_getnumcolors(), pg_reg_getnumoutarcs(), pg_reg_getnumstates(), pg_reg_getoutarcs(), pg_regcomp(), pg_regexec(), pg_regprefix(), and rfree().
#define SHORTER 02 |
Definition at line 415 of file regguts.h.
Referenced by ccondissect(), cdissect(), citerdissect(), crevcondissect(), creviterdissect(), parseqatom(), and pg_regcomp().
#define tcolor colors.ccolor |
Definition at line 182 of file regguts.h.
Referenced by subblock().
#define tptr ptrs.pptr |
Definition at line 183 of file regguts.h.
Referenced by CopyAttributeOutCSV().
#define UBITS (CHAR_BIT * sizeof(unsigned)) |
#define UNUSEDCOLOR | ( | cd | ) | ((cd)->flags & FREECOL) |
Definition at line 207 of file regguts.h.
Referenced by colorcomplement(), freecm(), freecolor(), newcolor(), okcolors(), and rainbow().
#define UP | ( | f | ) | (((f)&~LOCAL) | (LMIX(f) & SMIX(f) & MIXED)) |
Definition at line 423 of file regguts.h.
Referenced by parse(), and parseqatom().
#define VS | ( | x | ) | ((void *)(x)) |
Definition at line 61 of file regguts.h.
Referenced by cmp(), moresubs(), newcolor(), pg_regcomp(), pg_regexec(), setcolor(), and subblock().
#define WHITE 0 |
Definition at line 153 of file regguts.h.
Referenced by freecolor(), and initcm().
Definition at line 379 of file regguts.h.
Referenced by newlacon(), pg_regcomp(), and subre().