diff options
author | Tom Lane | 2012-02-19 23:57:38 +0000 |
---|---|---|
committer | Tom Lane | 2012-02-19 23:58:23 +0000 |
commit | 27af91438b68f46f4015853b6f75c6f5c3a8650c (patch) | |
tree | 3d3edbeb3f1146775a2a17de86394c0ba49d843f /src/backend/regex/regcomp.c | |
parent | 2f582f76b1945929ff07116cd4639747ce9bb8a1 (diff) |
Create the beginnings of internals documentation for the regex code.
Create src/backend/regex/README to hold an implementation overview of
the regex package, and fill it in with some preliminary notes about
the code's DFA/NFA processing and colormap management. Much more to
do there of course.
Also, improve some code comments around the colormap and cvec code.
No functional changes except to add one missing assert.
Diffstat (limited to 'src/backend/regex/regcomp.c')
-rw-r--r-- | src/backend/regex/regcomp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/backend/regex/regcomp.c b/src/backend/regex/regcomp.c index bd4d4c37619..4f9da5b0468 100644 --- a/src/backend/regex/regcomp.c +++ b/src/backend/regex/regcomp.c @@ -356,6 +356,7 @@ pg_regcomp(regex_t *re, ZAPCNFA(g->search); v->nfa = newnfa(v, v->cm, (struct nfa *) NULL); CNOERR(); + /* set up a reasonably-sized transient cvec for getcvec usage */ v->cv = newcvec(100, 20); if (v->cv == NULL) return freev(v, REG_ESPACE); |