Changeset bb322a0 in rtems for cpukit/rtems/macros/rtems


Ignore:
Timestamp:
08/22/95 15:37:59 (28 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
da6375b
Parents:
b2c491a0
Message:

make inline and macro implementations match

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/rtems/macros/rtems/rtems/message.inl

    rb2c491a0 rbb322a0  
    2323 */
    2424
    25 #define _Message_queue_Copy_buffer( _source, _destination ) \
     25#define _Message_queue_Copy_buffer( _source, _destination, _size ) \
    2626  memcpy( _destination, _source, _size)
    2727
     
    3232 */
    3333
    34 #define _Message_queue_Allocate_message_buffer() \
    35    (Message_queue_Buffer_control *) \
    36      _Chain_Get( &_Message_queue_Inactive_messages )
     34#define _Message_queue_Allocate_message_buffer( _the_message_queue ) \
     35  (Message_queue_Buffer_control *) \
     36    _Chain_Get( &(_the_message_queue)->Inactive_messages )
    3737
    3838/*PAGE
     
    4242 */
    4343
    44 #define _Message_queue_Free_message_buffer( _the_message ) \
    45    _Chain_Append( &_Message_queue_Inactive_messages, &(_the_message)->Node )
     44#define _Message_queue_Free_message_buffer( _the_message_queue, _the_message ) \
     45  _Chain_Append( \
     46    &(_the_message_queue)->Inactive_messages, \
     47    &(_the_message)->Node \
     48  )
    4649
    4750/*PAGE
     
    9396  do { \
    9497    \
    95     if ( (_the_messsage_queue)->message_buffers ) { \
     98    if ( (_the_message_queue)->message_buffers ) { \
    9699      _Workspace_Free((void *) (_the_message_queue)->message_buffers); \
    97100      (_the_message_queue)->message_buffers = 0; \
    98     }
     101    } \
    99102    \
    100103    _Objects_Free( \
Note: See TracChangeset for help on using the changeset viewer.