Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
23116d54
Commit
23116d54
authored
May 24, 2015
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a bit more commentary about regex's colormap tree data structure.
Per an off-list question from Piotr Stefaniak.
parent
91e79260
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
src/include/regex/regguts.h
src/include/regex/regguts.h
+5
-0
No files found.
src/include/regex/regguts.h
View file @
23116d54
...
...
@@ -162,6 +162,10 @@ typedef int pcolor; /* what color promotes to */
* deep (in the past it was shallower during construction but was "filled"
* to full depth at the end of that); areas that are unaltered as yet point
* to "fill blocks" which are entirely WHITE in color.
*
* Leaf-level tree blocks are of type "struct colors", while upper-level
* blocks are of type "struct ptrs". Pointers into the tree are generally
* declared as "union tree *" to be agnostic about what level they point to.
*/
/* the tree itself */
...
...
@@ -179,6 +183,7 @@ union tree
struct
ptrs
ptrs
;
};
/* use these pseudo-field names when dereferencing a "union tree" pointer */
#define tcolor colors.ccolor
#define tptr ptrs.pptr
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment