61 #define VS(x) ((void *)(x)) 66 #define FUNCPTR(name, args) (*(name)) args 71 #define MALLOC(n) malloc(n) 74 #define REALLOC(p, n) realloc(VS(p), n) 77 #define FREE(p) free(VS(p)) 81 #ifndef _POSIX2_RE_DUP_MAX 82 #define _POSIX2_RE_DUP_MAX 255 93 #define DUPMAX _POSIX2_RE_DUP_MAX 94 #define DUPINF (DUPMAX+1) 96 #define REMAGIC 0xfed7 99 #define LATYPE_AHEAD_POS 03 100 #define LATYPE_AHEAD_NEG 02 101 #define LATYPE_BEHIND_POS 01 102 #define LATYPE_BEHIND_NEG 00 103 #define LATYPE_IS_POS(la) ((la) & 01) 104 #define LATYPE_IS_AHEAD(la) ((la) & 02) 112 #define FDEBUG(arglist) { if (v->eflags®_FTRACE) printf arglist; } 114 #define MDEBUG(arglist) { if (v->eflags®_MTRACE) printf arglist; } 116 #define FDEBUG(arglist) {} 117 #define MDEBUG(arglist) {} 125 #define UBITS (CHAR_BIT * sizeof(unsigned)) 126 #define BSET(uv, sn) ((uv)[(sn)/UBITS] |= (unsigned)1 << ((sn)%UBITS)) 127 #define ISBSET(uv, sn) ((uv)[(sn)/UBITS] & ((unsigned)1 << ((sn)%UBITS))) 136 #define MAX_COLOR 32767 137 #define COLORLESS (-1) 159 #define NOSUB COLORLESS 165 #define UNUSEDCOLOR(cd) ((cd)->flags & FREECOL) 197 #define NUM_CCLASSES 13 209 #define CMMAGIC 0x876 215 #define CDEND(cm) (&(cm)->cd[(cm)->max + 1]) 230 #define NINLINECDS ((size_t) 10) 235 #define GETCOLOR(cm, c) \ 236 ((c) <= MAX_SIMPLE_CHR ? (cm)->locolormap[(c) - CHR_MIN] : pg_reg_getcolor(cm, c)) 284 #define freechain outchain 301 #define FREESTATE (-1) 365 #define CNFA_NOPROGRESS 01 371 #define ZAPCNFA(cnfa) ((cnfa).nstates = 0) 372 #define NULLCNFA(cnfa) ((cnfa).nstates == 0) 382 #ifndef REG_MAX_COMPILE_SPACE 383 #define REG_MAX_COMPILE_SPACE \ 384 (100000 * sizeof(struct state) + 100000 * sizeof(struct arcbatch)) 419 #define LMIX(f) ((f)<<2) 420 #define SMIX(f) ((f)<<1) 421 #define UP(f) (((f)&~NOPROP) | (LMIX(f) & SMIX(f) & MIXED)) 422 #define MESSY(f) ((f)&(MIXED|CAP|BACKR)) 423 #define PREF(f) ((f)&NOPROP) 424 #define PREF2(f1, f2) ((PREF(f1) != 0) ? PREF(f1) : PREF(f2)) 425 #define COMBINE(f1, f2) (UP((f1)|(f2)) | PREF2(f1, f2)) 448 int FUNCPTR(cancel_requested, (
void));
449 int FUNCPTR(stack_too_deep, (
void));
452 #define CANCEL_REQUESTED(re) \ 453 ((*((struct fns *) (re)->re_fns)->cancel_requested) ()) 455 #define STACK_TOO_DEEP(re) \ 456 ((*((struct fns *) (re)->re_fns)->stack_too_deep) ()) 465 #define GUTSMAGIC 0xfed9 #define FUNCPTR(name, args)
color pg_reg_getcolor(struct colormap *cm, chr c)
struct arc * colorchainRev
static int compare(const void *arg1, const void *arg2)
struct colormaprange colormaprange
void pg_set_regex_collation(Oid collation)