File tree 1 file changed +5
-0
lines changed
1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -162,6 +162,10 @@ typedef int pcolor; /* what color promotes to */
162
162
* deep (in the past it was shallower during construction but was "filled"
163
163
* to full depth at the end of that); areas that are unaltered as yet point
164
164
* to "fill blocks" which are entirely WHITE in color.
165
+ *
166
+ * Leaf-level tree blocks are of type "struct colors", while upper-level
167
+ * blocks are of type "struct ptrs". Pointers into the tree are generally
168
+ * declared as "union tree *" to be agnostic about what level they point to.
165
169
*/
166
170
167
171
/* the tree itself */
@@ -179,6 +183,7 @@ union tree
179
183
struct ptrs ptrs ;
180
184
};
181
185
186
+ /* use these pseudo-field names when dereferencing a "union tree" pointer */
182
187
#define tcolor colors.ccolor
183
188
#define tptr ptrs.pptr
184
189
You can’t perform that action at this time.
0 commit comments