PostgreSQL Source Code
git master
|
Go to the source code of this file.
Macros | |
#define | CISERR() VISERR(cm->v) |
#define | CERR(e) VERR(cm->v, (e)) |
Functions | |
static void | initcm (struct vars *v, struct colormap *cm) |
static void | freecm (struct colormap *cm) |
color | pg_reg_getcolor (struct colormap *cm, chr c) |
static color | maxcolor (struct colormap *cm) |
static color | newcolor (struct colormap *cm) |
static void | freecolor (struct colormap *cm, color co) |
static color | pseudocolor (struct colormap *cm) |
static color | subcolor (struct colormap *cm, chr c) |
static color | subcolorhi (struct colormap *cm, color *pco) |
static color | newsub (struct colormap *cm, color co) |
static int | newhicolorrow (struct colormap *cm, int oldrow) |
static void | newhicolorcols (struct colormap *cm) |
static void | subcolorcvec (struct vars *v, struct cvec *cv, struct state *lp, struct state *rp) |
static void | subcoloronechr (struct vars *v, chr ch, struct state *lp, struct state *rp, color *lastsubcolor) |
static void | subcoloronerange (struct vars *v, chr from, chr to, struct state *lp, struct state *rp, color *lastsubcolor) |
static void | subcoloronerow (struct vars *v, int rownum, struct state *lp, struct state *rp, color *lastsubcolor) |
static void | okcolors (struct nfa *nfa, struct colormap *cm) |
static void | colorchain (struct colormap *cm, struct arc *a) |
static void | uncolorchain (struct colormap *cm, struct arc *a) |
static void | rainbow (struct nfa *nfa, struct colormap *cm, int type, color but, struct state *from, struct state *to) |
static void | colorcomplement (struct nfa *nfa, struct colormap *cm, int type, struct state *of, struct state *from, struct state *to) |
Definition at line 41 of file regc_color.c.
#define CISERR | ( | ) | VISERR(cm->v) |
Definition at line 40 of file regc_color.c.
Definition at line 984 of file regc_color.c.
References a, colordesc::arcs, assert, colormap::cd, and arc::colorchainRev.
Referenced by createarc(), and okcolors().
|
static |
Definition at line 1064 of file regc_color.c.
References a, assert, CANTMATCH, colormap::cd, CDEND, CISERR, arc::co, COLMARK, findarc(), colordesc::flags, nfa::flags, arc::from, HASCANTMATCH, newarc(), state::outs, PLAIN, PSEUDO, RAINBOW, arc::to, type, and UNUSEDCOLOR.
|
static |
Definition at line 103 of file regc_color.c.
References colormap::cd, colormap::cdspace, colormap::cmranges, FREE, colormap::hicolormap, colormap::locolormap, and colormap::magic.
Definition at line 257 of file regc_color.c.
References colordesc::arcs, assert, colormap::cd, colordesc::flags, colormap::free, FREECOL, colormap::max, NOSUB, colordesc::nschrs, colordesc::nuchrs, colordesc::sub, UNUSEDCOLOR, and WHITE.
Referenced by okcolors().
Definition at line 49 of file regc_color.c.
References colordesc::arcs, colormap::cd, colormap::cdspace, CERR, CHR_MIN, colormap::classbits, CMMAGIC, colormap::cmranges, colordesc::firstchr, colordesc::flags, colormap::free, colormap::hiarraycols, colormap::hiarrayrows, colormap::hicolormap, colormap::locolormap, colormap::magic, MALLOC, colormap::max, MAX_SIMPLE_CHR, colormap::maxarrayrows, colormap::ncds, NINLINECDS, NOSUB, colordesc::nschrs, colordesc::nuchrs, colormap::numcmranges, REG_ESPACE, colordesc::sub, colormap::v, and WHITE.
Definition at line 172 of file regc_color.c.
References CISERR, COLORLESS, and colormap::max.
Referenced by compact().
Definition at line 185 of file regc_color.c.
References colordesc::arcs, assert, colormap::cd, colormap::cdspace, CERR, CHR_MIN, CISERR, COLORLESS, colordesc::firstchr, colordesc::flags, colormap::free, MALLOC, colormap::max, MAX_COLOR, colormap::ncds, NOSUB, colordesc::nschrs, colordesc::nuchrs, REALLOC, REG_ECOLORS, REG_ESPACE, colordesc::sub, UNUSEDCOLOR, and VS.
Referenced by newsub(), and pseudocolor().
|
static |
Definition at line 469 of file regc_color.c.
References colormap::cd, CERR, colormap::hiarraycols, colormap::hiarrayrows, colormap::hicolormap, colormap::maxarrayrows, colordesc::nuchrs, REALLOC, and REG_ESPACE.
Referenced by subcolorcvec().
|
static |
Definition at line 420 of file regc_color.c.
References colormap::cd, CERR, colormap::hiarraycols, colormap::hiarrayrows, colormap::hicolormap, i, colormap::maxarrayrows, colordesc::nuchrs, REALLOC, and REG_ESPACE.
Referenced by subcoloronechr(), and subcoloronerange().
Definition at line 389 of file regc_color.c.
References assert, colormap::cd, CISERR, COLORLESS, newcolor(), NOSUB, colordesc::nschrs, colordesc::nuchrs, and colordesc::sub.
Referenced by EventTriggerCollectAlterTableSubcmd(), maybe_reread_subscription(), subcolor(), and subcolorhi().
Definition at line 916 of file regc_color.c.
References a, colordesc::arcs, assert, colormap::cd, CDEND, arc::co, colorchain(), freecolor(), newarc(), NOSUB, colordesc::nschrs, colordesc::nuchrs, colordesc::sub, uncolorchain(), and UNUSEDCOLOR.
Definition at line 120 of file regc_color.c.
References assert, cclass_column_index(), colormap::cmranges, colormap::hiarraycols, colormap::hicolormap, MAX_SIMPLE_CHR, colormap::numcmranges, and colormaprange::rownum.
Definition at line 312 of file regc_color.c.
References colordesc::arcs, colormap::cd, CHR_MIN, CISERR, COLORLESS, colordesc::firstchr, colordesc::flags, newcolor(), NOSUB, colordesc::nschrs, colordesc::nuchrs, PSEUDO, and colordesc::sub.
Referenced by specialcolors().
|
static |
Definition at line 1031 of file regc_color.c.
References colormap::cd, CDEND, CISERR, COLORLESS, colordesc::flags, newarc(), PSEUDO, RAINBOW, colordesc::sub, type, and UNUSEDCOLOR.
Referenced by newnfa().
Definition at line 336 of file regc_color.c.
References assert, colormap::cd, CHR_MIN, CISERR, COLORLESS, colordesc::firstchr, colormap::locolormap, MAX_SIMPLE_CHR, newsub(), and colordesc::nschrs.
Referenced by subcolorcvec(), and subcoloronechr().
|
static |
Definition at line 522 of file regc_color.c.
References cvec::cclasscode, cvec::chrs, colormap::classbits, vars::cm, COLORLESS, colormap::hiarraycols, colormap::hiarrayrows, colormap::hicolormap, i, MAX_SIMPLE_CHR, cvec::nchrs, newarc(), newhicolorcols(), vars::nfa, NOERR, cvec::nranges, PLAIN, cvec::ranges, subcolor(), subcolorhi(), subcoloronechr(), subcoloronerange(), and colormap::v.
Definition at line 366 of file regc_color.c.
References assert, colormap::cd, CISERR, COLORLESS, newsub(), and colordesc::nuchrs.
Referenced by subcolorcvec(), and subcoloronerow().
|
static |
Definition at line 624 of file regc_color.c.
References assert, CERR, vars::cm, colormaprange::cmax, colormaprange::cmin, colormap::cmranges, FREE, MALLOC, MAX_SIMPLE_CHR, newarc(), newhicolorrow(), vars::nfa, NOERR, colormap::numcmranges, PLAIN, REG_ESPACE, colormaprange::rownum, subcolor(), subcoloronerow(), and colormap::v.
Referenced by subcolorcvec().
|
static |
Definition at line 747 of file regc_color.c.
References assert, CERR, vars::cm, colormaprange::cmax, colormaprange::cmin, colormap::cmranges, FREE, MALLOC, MAX_SIMPLE_CHR, newhicolorrow(), colormap::numcmranges, REG_ESPACE, colormaprange::rownum, subcoloronerow(), and colormap::v.
Referenced by subcolorcvec().
|
static |
Definition at line 885 of file regc_color.c.
References vars::cm, colormap::hiarraycols, colormap::hicolormap, i, newarc(), vars::nfa, NOERR, PLAIN, subcolorhi(), and colormap::v.
Referenced by subcoloronechr(), and subcoloronerange().
Definition at line 1001 of file regc_color.c.
References a, colordesc::arcs, assert, colormap::cd, and arc::colorchain.
Referenced by freearc(), and okcolors().