Changeset 5ad790f in rtems


Ignore:
Timestamp:
Nov 30, 2009, 1:20:29 PM (9 years ago)
Author:
Thomas Doerfler <Thomas.Doerfler@…>
Branches:
4.10, 4.11, master
Children:
42836e3
Parents:
9224a751
Message:

Added defines for initialization of empty chains.

Location:
cpukit
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    r9224a751 r5ad790f  
    2424        Changed type of boolean variables to bool.  Use unsigned integer type
    2525        for radix and width parameters.
     26
     272009-11-30      Sebastian Huber <sebastian.huber@embedded-brains.de>
     28
     29        * score/include/rtems/score/chain.h, sapi/include/rtems/chain.h: Added
     30        defines for initialization of empty chains.
    2631
    27322009-11-30      Sebastian Huber <sebastian.huber@embedded-brains.de>
  • cpukit/sapi/include/rtems/chain.h

    r9224a751 r5ad790f  
    4444typedef Chain_Control rtems_chain_control;
    4545
     46/**
     47 *  @brief Chain initializer for an empty chain with designator @a name.
     48 */
     49#define RTEMS_CHAIN_INITIALIZER_EMPTY(name) \
     50  CHAIN_INITIALIZER_EMPTY(name)
     51
     52/**
     53 *  @brief Chain definition for an empty chain with designator @a name.
     54 */
     55#define RTEMS_CHAIN_DEFINE_EMPTY(name) \
     56  CHAIN_DEFINE_EMPTY(name)
    4657
    4758#include <rtems/chain.inl>
  • cpukit/score/include/rtems/score/chain.h

    r9224a751 r5ad790f  
    9595
    9696/**
     97 *  @brief Chain initializer for an empty chain with designator @a name.
     98 */
     99#define CHAIN_INITIALIZER_EMPTY(name) \
     100  { \
     101    (Chain_Node *) &(name).permanent_null, \
     102    NULL, \
     103    (Chain_Node *) &(name) \
     104  }
     105
     106/**
     107 *  @brief Chain definition for an empty chain with designator @a name.
     108 */
     109#define CHAIN_DEFINE_EMPTY(name) \
     110  Chain_Control name = CHAIN_INITIALIZER_EMPTY(name)
     111
     112/**
    97113 *  @brief Initialize a Chain Header
    98114 *
Note: See TracChangeset for help on using the changeset viewer.