Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F110001965
D25204.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
629 B
Referenced Files
None
Subscribers
None
D25204.diff
View Options
Index: head/sys/sys/tree.h
===================================================================
--- head/sys/sys/tree.h
+++ head/sys/sys/tree.h
@@ -333,6 +333,12 @@
#define RB_TRUE 1
#define RB_FALSE 0
+/* For debugging support */
+#define RB_COLOR(elm, field) (RB_PARENT(elm, field) == NULL ? RB_FALSE : \
+ RB_LEFT(RB_PARENT(elm, field), field) == elm ? \
+ RB_RED_LF(RB_PARENT(elm, field), field) : \
+ RB_RED_RT(RB_PARENT(elm, field), field)
+
/*
* Something to be invoked in a loop at the root of every modified subtree,
* from the bottom up to the root, to update augmented node data.
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Feb 13, 7:50 AM (20 h, 32 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16600350
Default Alt Text
D25204.diff (629 B)
Attached To
Mode
D25204: Supply RB_COLOR macro
Attached
Detach File
Event Timeline
Log In to Comment