diff options
author | Patrick McDermott <pj@pehjota.net> | 2017-10-23 15:46:41 (EDT) |
---|---|---|
committer | Patrick McDermott <pj@pehjota.net> | 2017-10-23 15:46:41 (EDT) |
commit | 6e335af1690f1513160e9b340a8b6b27fd9344d5 (patch) | |
tree | 37121f891106847fe288e879da3838ee8f027f8d | |
parent | 5a93aca93a6ad44451a894dd1d514ed8957d9eb5 (diff) | |
download | marquee-6e335af1690f1513160e9b340a8b6b27fd9344d5.zip marquee-6e335af1690f1513160e9b340a8b6b27fd9344d5.tar.gz marquee-6e335af1690f1513160e9b340a8b6b27fd9344d5.tar.bz2 |
mq_tree_first_child(): New macro
-rw-r--r-- | src/tree.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -69,6 +69,8 @@ mq_tree_remove(MqTree *node); #define mq_tree_root(node) ((node) ? (((MqTree *) (node))->root) : NULL) #define mq_tree_previous(node) ((node) ? (((MqTree *) (node))->prev) : NULL) #define mq_tree_next(node) ((node) ? (((MqTree *) (node))->prev) : NULL) +#define mq_tree_first_child(node) \ + ((node) ? (((MqTree *) (node))->first_child) : NULL) MqTree * mq_tree_seek(MqTree *node, gint offset); |