mirror of
https://github.com/postgres/postgres.git
synced 2025-07-05 07:21:24 +03:00
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.
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user