Ignore:
Timestamp:
Aug 26, 2013, 12:27:52 PM (6 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
58a5889
Parents:
d56f76a
git-author:
Sebastian Huber <sebastian.huber@…> (08/26/13 12:27:52)
git-committer:
Sebastian Huber <sebastian.huber@…> (08/27/13 08:48:16)
Message:

score: Add and use CHAIN_INITIALIZER_ONE_NODE().

Add and use CHAIN_NODE_INITIALIZER_ONE_NODE_CHAIN(),
RTEMS_CHAIN_INITIALIZER_ONE_NODE() and
RTEMS_CHAIN_NODE_INITIALIZER_ONE_NODE_CHAIN().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/include/rtems/score/chainimpl.h

    rd56f76a r23de794d  
    3636#define CHAIN_INITIALIZER_EMPTY(name) \
    3737  { { { &(name).Tail.Node, NULL }, &(name).Head.Node } }
     38
     39/**
     40 *  @brief Chain initializer for a chain with one @a node.
     41 *
     42 *  @see CHAIN_NODE_INITIALIZER_ONE_NODE_CHAIN().
     43 */
     44#define CHAIN_INITIALIZER_ONE_NODE( node ) \
     45  { { { (node), NULL }, (node) } }
     46
     47/**
     48 *  @brief Chain node initializer for a @a chain containing exactly this node.
     49 *
     50 *  @see CHAIN_INITIALIZER_ONE_NODE().
     51 */
     52#define CHAIN_NODE_INITIALIZER_ONE_NODE_CHAIN( chain ) \
     53  { &(chain)->Tail.Node, &(chain)->Head.Node }
    3854
    3955/**
Note: See TracChangeset for help on using the changeset viewer.