Header And Logo

PostgreSQL
| The world's most advanced open source database.

Data Structures | Defines | Typedefs

regguts.h File Reference

#include "regcustom.h"
#include <assert.h>
#include <limits.h>
Include dependency graph for regguts.h:
This graph shows which files directly or indirectly include this file:

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 Documentation

#define _POSIX2_RE_DUP_MAX   255

Definition at line 85 of file regguts.h.

#define ABSIZE   10

Definition at line 299 of file regguts.h.

Referenced by allocarc().

#define B0 (   c  )     ((c) & BYTMASK)

Definition at line 236 of file regguts.h.

#define B1 (   c  )     (((c)>>BYTBITS) & BYTMASK)

Definition at line 237 of file regguts.h.

#define B2 (   c  )     (((c)>>(2*BYTBITS)) & BYTMASK)

Definition at line 238 of file regguts.h.

#define B3 (   c  )     (((c)>>(3*BYTBITS)) & BYTMASK)

Definition at line 239 of file regguts.h.

#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 CNFA_NOPROGRESS   01

Definition at line 373 of file regguts.h.

Referenced by miss().

#define COLORLESS   (-1)
#define COMBINE (   f1,
  f2 
)    (UP((f1)|(f2)) | PREF2(f1, f2))

Definition at line 427 of file regguts.h.

Referenced by parseqatom().

#define DISCARD   void

Definition at line 58 of file regguts.h.

#define DUPMAX   _POSIX2_RE_DUP_MAX

Definition at line 97 of file regguts.h.

Referenced by scannum().

#define FDEBUG (   arglist  )     {}

Definition at line 113 of file regguts.h.

Referenced by getvacant(), lacon(), longest(), miss(), pickss(), and shortest().

#define freechain   outchain

Definition at line 290 of file regguts.h.

#define FREECOL   01

Definition at line 205 of file regguts.h.

#define FREESTATE   (-1)

Definition at line 306 of file regguts.h.

Referenced by delsub(), deltraverse(), destroystate(), pullback(), and pushfwd().

#define GUTSMAGIC   0xfed9

Definition at line 459 of file regguts.h.

#define HASLACONS   01

Definition at line 367 of file regguts.h.

Referenced by miss().

#define INFINITY   (DUPMAX+1)

Definition at line 98 of file regguts.h.

Referenced by cbrdissect(), citerdissect(), creviterdissect(), and parseqatom().

#define INUSE   0100

Definition at line 419 of file regguts.h.

Referenced by cleanst().

#define ISBSET (   uv,
  sn 
)    ((uv)[(sn)/UBITS] & ((unsigned)1 << ((sn)%UBITS)))

Definition at line 124 of file regguts.h.

Referenced by miss().

#define LMIX (   f  )     ((f)<<2)

Definition at line 421 of file regguts.h.

#define LOCAL   03

Definition at line 420 of file regguts.h.

#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  )     {}
#define MESSY (   f  )     ((f)&(MIXED|CAP|BACKR))

Definition at line 424 of file regguts.h.

Referenced by parse(), and parseqatom().

#define MIXED   04

Definition at line 416 of file regguts.h.

#define NBYTS   ((CHRBITS+BYTBITS-1)/BYTBITS)

Definition at line 139 of file regguts.h.

Referenced by cmtreefree(), freecm(), initcm(), scancolormap(), setcolor(), and subblock().

#define NDEBUG

Definition at line 51 of file regguts.h.

#define NINLINECDS   ((size_t)10)

Definition at line 230 of file regguts.h.

#define NOSUB   COLORLESS

Definition at line 201 of file regguts.h.

Referenced by freecolor(), newsub(), and okcolors().

#define NOTREACHED   0

Definition at line 94 of file regguts.h.

Referenced by brenext(), combine(), compact(), lexescape(), next(), pickss(), pull(), and push().

#define NULLCNFA (   cnfa  )     ((cnfa).nstates == 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))

Definition at line 426 of file regguts.h.

#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
#define SHORTER   02
#define SMIX (   f  )     ((f)<<1)

Definition at line 422 of file regguts.h.

#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))

Definition at line 122 of file regguts.h.

Referenced by newdfa().

#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().

#define xxx   1

Definition at line 95 of file regguts.h.

#define ZAPCNFA (   cnfa  )     ((cnfa).nstates = 0)

Definition at line 379 of file regguts.h.

Referenced by newlacon(), pg_regcomp(), and subre().


Typedef Documentation

typedef short color

Definition at line 148 of file regguts.h.

typedef int pcolor

Definition at line 149 of file regguts.h.