From 94c5b51fa8ed6e5520da2cf5def58b5c0986f072 Mon Sep 17 00:00:00 2001 From: Ossama Othman Date: Fri, 28 Oct 2005 16:14:56 +0000 Subject: ChangeLogTag:Fri Oct 28 00:01:06 2005 Ossama Othman --- ace/Dirent.inl | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) (limited to 'ace/Dirent.inl') diff --git a/ace/Dirent.inl b/ace/Dirent.inl index c75c79fd320..1c120dad225 100644 --- a/ace/Dirent.inl +++ b/ace/Dirent.inl @@ -1,15 +1,18 @@ -/* -*- C++ -*- */ +// -*- C++ -*- +// // $Id$ #include "ace/Log_Msg.h" +ACE_BEGIN_VERSIONED_NAMESPACE_DECL + ACE_INLINE int -ACE_Dirent::open (const ACE_TCHAR *dirname) +ACE_Dirent::open (const ACE_TCHAR *dirname) { // If the directory stream is already open, close it to prevent // possible resource leaks. - if (this->dirp_ != 0) + if (this->dirp_ != 0) { ACE_OS::closedir (this->dirp_); this->dirp_ = 0; @@ -23,23 +26,23 @@ ACE_Dirent::open (const ACE_TCHAR *dirname) return 0; } -ACE_INLINE +ACE_INLINE ACE_Dirent::ACE_Dirent (void) : dirp_ (0) { } -ACE_INLINE -ACE_Dirent::ACE_Dirent (const ACE_TCHAR *dirname) +ACE_INLINE +ACE_Dirent::ACE_Dirent (const ACE_TCHAR *dirname) : dirp_ (0) { if (this->open (dirname) == -1) ACE_ERROR ((LM_ERROR, - ACE_LIB_TEXT ("%p\n"), + ACE_LIB_TEXT ("%p\n"), ACE_LIB_TEXT ("ACE_Dirent::ACE_Dirent"))); } -ACE_INLINE +ACE_INLINE ACE_Dirent::~ACE_Dirent (void) { if (this->dirp_ != 0) @@ -64,7 +67,7 @@ ACE_Dirent::read (struct dirent *entry, ACE_INLINE void ACE_Dirent::close (void) { - if (this->dirp_ != 0) + if (this->dirp_ != 0) { ACE_OS::closedir (this->dirp_); @@ -93,3 +96,4 @@ ACE_Dirent::tell (void) return this->dirp_ ? ACE_OS::telldir (this->dirp_) : 0; } +ACE_END_VERSIONED_NAMESPACE_DECL -- cgit v1.2.1