(See http://codereview.appspot.com/5431064/ for review of patch)
authorKonrad Kleine <konrad.wilhelm.kleine@gmail.com>
Thu, 24 Nov 2011 14:58:42 +0000 (14:58 +0000)
committerKonrad Kleine <konrad.wilhelm.kleine@gmail.com>
Thu, 24 Nov 2011 14:58:42 +0000 (14:58 +0000)
commit03398cfa8846e37fe88c8b992f2b7efb4d7b2a20
tree1feb28d9cfa30d001d35a4f4af28e033b091f74a
parent5acde0d24c72a4ee2149d1105986f5f119231686
(See codereview.appspot.com/5431064/ for review of patch)

I've written a convenient function that returns the sibling of a node in the
red-black tree implementation originally implemented by Joshua Leung.

I want to use this get_sibling() function in the future to implement the missing
removal function of the red-black tree implementation.

For now the get_sibling() function just simplifies the get_uncle() function.

Just like the rest of the red-black tree implementation this diff is based on
Wikipedia: http://en.wikipedia.org/wiki/Red%E2%80%93black_tree#Removal
source/blender/blenlib/intern/DLRB_tree.c