From 40dcafaf80a29c20d74594853a8ff04441eabd9c Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Sat, 2 Aug 2014 16:22:31 +0200 Subject: Add and use RTEMS_CONTAINER_OF() --- cpukit/score/include/rtems/score/rbtree.h | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'cpukit/score/include/rtems/score/rbtree.h') diff --git a/cpukit/score/include/rtems/score/rbtree.h b/cpukit/score/include/rtems/score/rbtree.h index c4effceb50..d23808ffd4 100644 --- a/cpukit/score/include/rtems/score/rbtree.h +++ b/cpukit/score/include/rtems/score/rbtree.h @@ -81,20 +81,6 @@ struct RBTree_Node_struct { RBTree_Color color; }; -/** - * @brief Macro to return the structure containing the @a node. - * - * This macro returns a pointer of type @a container_type that points - * to the structure containing @a node, where @a node_field_name is the - * field name of the RBTree_Node structure in @a container_type. - * - */ -#define _RBTree_Container_of(node, container_type, node_field_name) \ -( \ - (container_type*) \ - ( (uintptr_t)(node) - offsetof(container_type, node_field_name) ) \ -) - /** * This type indicates the direction. */ -- cgit v1.2.3