diff options
-rw-r--r-- | ChangeLog-99b | 7 | ||||
-rw-r--r-- | ace/Message_Block.i | 14 |
2 files changed, 14 insertions, 7 deletions
diff --git a/ChangeLog-99b b/ChangeLog-99b index 1f67024e4b5..fb3dd6749e9 100644 --- a/ChangeLog-99b +++ b/ChangeLog-99b @@ -1,3 +1,10 @@ +Wed Mar 17 10:46:26 1999 Ossama Othman <othman@cs.wustl.edu> + + * ace/Message_Block.i (space): Moved ACE_Message_Block::space() + after inline declarations of ACE_Message_Block::end() and + ACE_Message_Block::wr_ptr() to prevent "used before it was declared + inline" warnings on end() and wr_ptr(). + Wed Mar 17 10:24:26 1999 David L. Levine <levine@cs.wustl.edu> * ace/OS.cpp (argv_to_string): initialized temp to 0 to avoid warnings diff --git a/ace/Message_Block.i b/ace/Message_Block.i index 1c9f9ccf038..c8d175f8f27 100644 --- a/ace/Message_Block.i +++ b/ace/Message_Block.i @@ -119,13 +119,6 @@ ACE_Message_Block::size (void) const return this->data_block ()->size (); } -ACE_INLINE size_t -ACE_Message_Block::space (void) const -{ - ACE_TRACE ("ACE_Message_Block::space"); - return this->end () - this->wr_ptr (); -} - ACE_INLINE ACE_Message_Block::ACE_Message_Type ACE_Data_Block::msg_type (void) const { @@ -298,6 +291,13 @@ ACE_Message_Block::wr_ptr (size_t n) this->wr_ptr_ += n; } +ACE_INLINE size_t +ACE_Message_Block::space (void) const +{ + ACE_TRACE ("ACE_Message_Block::space"); + return this->end () - this->wr_ptr (); +} + ACE_INLINE void ACE_Message_Block::cont (ACE_Message_Block *cont_msg) { |