summaryrefslogtreecommitdiff
path: root/ace/Dirent.inl
diff options
context:
space:
mode:
authorOssama Othman <ossama-othman@users.noreply.github.com>2005-10-28 16:14:56 +0000
committerOssama Othman <ossama-othman@users.noreply.github.com>2005-10-28 16:14:56 +0000
commit94c5b51fa8ed6e5520da2cf5def58b5c0986f072 (patch)
treec4fe2b70acf02ce19d199713fff6dec5645d8a93 /ace/Dirent.inl
parent3720d45374c2890b3f9e86ff8ae8a3d4a60ecd29 (diff)
downloadATCD-94c5b51fa8ed6e5520da2cf5def58b5c0986f072.tar.gz
ChangeLogTag:Fri Oct 28 00:01:06 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
Diffstat (limited to 'ace/Dirent.inl')
-rw-r--r--ace/Dirent.inl22
1 files changed, 13 insertions, 9 deletions
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