regguts.h File Reference

#include "regcustom.h"
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <limits.h>
#include <string.h>
#include <assert.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 PVOID   void *
#define VS(x)   ((void*)(x))
#define NOPARMS   void
#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 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 ARCFREE   '\0'
#define freechain   outchain
#define ABSIZE   10
#define FREESTATE   (-1)
#define HASLACONS   01
#define ZAPCNFA(cnfa)   ((cnfa).nstates = 0)
#define NULLCNFA(cnfa)   ((cnfa).nstates == 0)
#define REG_MAX_STATES   100000
#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
#define FreeVars(vPtr)   ((void) 0)

Typedefs

typedef short color
typedef int pcolor


Define Documentation

#define _POSIX2_RE_DUP_MAX   255

Definition at line 108 of file regguts.h.

#define ABSIZE   10

Definition at line 275 of file regguts.h.

#define ARCFREE   '\0'

Definition at line 262 of file regguts.h.

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

Definition at line 221 of file regguts.h.

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

Definition at line 222 of file regguts.h.

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

Definition at line 223 of file regguts.h.

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

Definition at line 224 of file regguts.h.

#define BACKR   020

Definition at line 358 of file regguts.h.

#define BSET ( uv,
sn   )     ((uv)[(sn)/UBITS] |= (unsigned)1 << ((sn)%UBITS))

Definition at line 140 of file regguts.h.

#define BYTBITS   8

Definition at line 151 of file regguts.h.

#define BYTMASK   (BYTTAB-1)

Definition at line 154 of file regguts.h.

#define BYTTAB   (1<<BYTBITS)

Definition at line 153 of file regguts.h.

#define CAP   010

Definition at line 357 of file regguts.h.

#define CDEND ( cm   )     (&(cm)->cd[(cm)->max + 1])

Definition at line 214 of file regguts.h.

#define CMMAGIC   0x876

Definition at line 208 of file regguts.h.

#define COLORLESS   (-1)

Definition at line 165 of file regguts.h.

Referenced by compile().

#define COMBINE ( f1,
f2   )     (UP((f1)|(f2)) | PREF2(f1, f2))

Definition at line 367 of file regguts.h.

#define DISCARD   void

Definition at line 66 of file regguts.h.

Referenced by compile().

#define DUPMAX   _POSIX2_RE_DUP_MAX

Definition at line 118 of file regguts.h.

#define FDEBUG ( arglist   )     {}

Definition at line 132 of file regguts.h.

#define freechain   outchain

Definition at line 267 of file regguts.h.

#define FREECOL   01

Definition at line 199 of file regguts.h.

#define FREESTATE   (-1)

Definition at line 281 of file regguts.h.

#define FreeVars ( vPtr   )     ((void) 0)

Definition at line 419 of file regguts.h.

Referenced by compile(), and exec().

#define GUTSMAGIC   0xfed9

Definition at line 395 of file regguts.h.

Referenced by compile().

#define HASLACONS   01

Definition at line 327 of file regguts.h.

#define INFINITY   (DUPMAX+1)

Definition at line 119 of file regguts.h.

#define INUSE   0100

Definition at line 359 of file regguts.h.

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

Definition at line 141 of file regguts.h.

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

Definition at line 361 of file regguts.h.

#define LOCAL   03

Definition at line 360 of file regguts.h.

#define LONGER   01

Definition at line 354 of file regguts.h.

#define MDEBUG ( arglist   )     {}

Definition at line 133 of file regguts.h.

#define MESSY (  )     ((f)&(MIXED|CAP|BACKR))

Definition at line 364 of file regguts.h.

#define MIXED   04

Definition at line 356 of file regguts.h.

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

Definition at line 155 of file regguts.h.

#define NDEBUG

Definition at line 55 of file regguts.h.

#define NINLINECDS   ((size_t)10)

Definition at line 215 of file regguts.h.

#define NOPARMS   void

Definition at line 75 of file regguts.h.

#define NOSUB   COLORLESS

Definition at line 196 of file regguts.h.

#define NOTREACHED   0

Definition at line 115 of file regguts.h.

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

Definition at line 336 of file regguts.h.

#define PREF (  )     ((f)&LOCAL)

Definition at line 365 of file regguts.h.

#define PREF2 ( f1,
f2   )     ((PREF(f1) != 0) ? PREF(f1) : PREF(f2))

Definition at line 366 of file regguts.h.

#define PSEUDO   02

Definition at line 200 of file regguts.h.

#define PVOID   void *

Definition at line 69 of file regguts.h.

#define REG_MAX_STATES   100000

Definition at line 343 of file regguts.h.

#define REMAGIC   0xfed7

Definition at line 121 of file regguts.h.

Referenced by compile(), and exec().

#define SHORTER   02

Definition at line 355 of file regguts.h.

Referenced by compile().

#define SMIX (  )     ((f)<<1)

Definition at line 362 of file regguts.h.

#define tcolor   colors.ccolor

Definition at line 189 of file regguts.h.

#define tptr   ptrs.pptr

Definition at line 190 of file regguts.h.

#define UBITS   (CHAR_BIT * sizeof(unsigned))

Definition at line 139 of file regguts.h.

#define UNUSEDCOLOR ( cd   )     ((cd)->flags&FREECOL)

Definition at line 201 of file regguts.h.

#define UP (  )     (((f)&~LOCAL) | (LMIX(f) & SMIX(f) & MIXED))

Definition at line 363 of file regguts.h.

#define VS (  )     ((void*)(x))

Definition at line 72 of file regguts.h.

Referenced by compile(), and exec().

#define WHITE   0

Definition at line 166 of file regguts.h.

#define xxx   1

Definition at line 116 of file regguts.h.

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

Definition at line 335 of file regguts.h.

Referenced by compile().


Typedef Documentation

typedef short color

Definition at line 163 of file regguts.h.

typedef int pcolor

Definition at line 164 of file regguts.h.



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