Changeset 40dcafa in rtems for cpukit/sapi


Ignore:
Timestamp:
Aug 2, 2014, 2:22:31 PM (5 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
60fe374
Parents:
b767683a
git-author:
Sebastian Huber <sebastian.huber@…> (08/02/14 14:22:31)
git-committer:
Sebastian Huber <sebastian.huber@…> (08/05/14 07:30:33)
Message:

Add and use RTEMS_CONTAINER_OF()

Location:
cpukit/sapi/include/rtems
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/sapi/include/rtems/rbheap.h

    rb767683a r40dcafa  
    255255
    256256#define rtems_rbheap_chunk_of_node(node) \
    257   rtems_rbtree_container_of(node, rtems_rbheap_chunk, tree_node)
     257  RTEMS_CONTAINER_OF(node, rtems_rbheap_chunk, tree_node)
    258258
    259259static inline bool rtems_rbheap_is_chunk_free(const rtems_rbheap_chunk *chunk)
  • cpukit/sapi/include/rtems/rbtree.h

    rb767683a r40dcafa  
    7575
    7676/**
    77   * @brief macro to return the structure containing the @a node.
    78   *
    79   * This macro returns a pointer of type @a object_type that points
    80   * to the structure containing @a node, where @a object_member is the
    81   * field name of the rtems_rbtree_node structure in objects of @a object_type.
    82   */
    83 #define rtems_rbtree_container_of(node,object_type, object_member) \
    84   _RBTree_Container_of(node,object_type,object_member)
    85 
    86 /**
    8777 * @brief Initialize a RBTree header.
    8878 *
Note: See TracChangeset for help on using the changeset viewer.