summaryrefslogtreecommitdiffstats
path: root/cpukit/rtems/macros
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1995-08-22 15:37:59 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1995-08-22 15:37:59 +0000
commitbb322a0ea63c1e75e4563e7fd366e78f202ad03d (patch)
tree47d25a6e5a1ba002c0203fc50977866dda2ae176 /cpukit/rtems/macros
parentb2c491a08028b7bababe1fe2c09d1f0ac75bdb4f (diff)
downloadrtems-bb322a0ea63c1e75e4563e7fd366e78f202ad03d.tar.bz2
make inline and macro implementations match
Diffstat (limited to 'cpukit/rtems/macros')
-rw-r--r--cpukit/rtems/macros/rtems/rtems/message.inl19
1 files changed, 11 insertions, 8 deletions
diff --git a/cpukit/rtems/macros/rtems/rtems/message.inl b/cpukit/rtems/macros/rtems/rtems/message.inl
index ac0b1afb3a..ef694fb11a 100644
--- a/cpukit/rtems/macros/rtems/rtems/message.inl
+++ b/cpukit/rtems/macros/rtems/rtems/message.inl
@@ -22,7 +22,7 @@
* _Message_queue_Copy_buffer
*/
-#define _Message_queue_Copy_buffer( _source, _destination ) \
+#define _Message_queue_Copy_buffer( _source, _destination, _size ) \
memcpy( _destination, _source, _size)
/*PAGE
@@ -31,9 +31,9 @@
*
*/
-#define _Message_queue_Allocate_message_buffer() \
- (Message_queue_Buffer_control *) \
- _Chain_Get( &_Message_queue_Inactive_messages )
+#define _Message_queue_Allocate_message_buffer( _the_message_queue ) \
+ (Message_queue_Buffer_control *) \
+ _Chain_Get( &(_the_message_queue)->Inactive_messages )
/*PAGE
*
@@ -41,8 +41,11 @@
*
*/
-#define _Message_queue_Free_message_buffer( _the_message ) \
- _Chain_Append( &_Message_queue_Inactive_messages, &(_the_message)->Node )
+#define _Message_queue_Free_message_buffer( _the_message_queue, _the_message ) \
+ _Chain_Append( \
+ &(_the_message_queue)->Inactive_messages, \
+ &(_the_message)->Node \
+ )
/*PAGE
*
@@ -92,10 +95,10 @@
#define _Message_queue_Free( _the_message_queue ) \
do { \
\
- if ( (_the_messsage_queue)->message_buffers ) { \
+ if ( (_the_message_queue)->message_buffers ) { \
_Workspace_Free((void *) (_the_message_queue)->message_buffers); \
(_the_message_queue)->message_buffers = 0; \
- }
+ } \
\
_Objects_Free( \
&_Message_queue_Information, \