summaryrefslogtreecommitdiff
path: root/ACE/ace
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2010-11-15 09:48:02 +0000
committerJohnny Willemsen <jwillemsen@remedy.nl>2010-11-15 09:48:02 +0000
commit3c03a34dde72d7f18224c52ece3941dbc22f5a39 (patch)
tree584688814b985325b922793640ef09b54f4c6613 /ACE/ace
parentf4c102818377b27276bb83af618ceca603f604f9 (diff)
downloadATCD-3c03a34dde72d7f18224c52ece3941dbc22f5a39.tar.gz
Mon Nov 15 09:40:48 UTC 2010 Johnny Willemsen <jwillemsen@remedy.nl>
* Makefile.am: Zap TAO as directory * ACEXML/common/XML_Types.h: * ace/Auto_Ptr.h: * ace/Basic_Types.h: * ace/OS_NS_Thread.cpp: * ace/Obchunk.cpp: * ace/Object_Manager.cpp: * ace/Object_Manager_Base.cpp: * ace/Proactor.h: * ace/SOCK_Dgram.h: * ace/SOCK_Dgram.inl: * ace/SOCK_Dgram_Mcast.h: * ace/SOCK_Dgram_Mcast.cpp: * ace/SString.h: * ace/SString.cpp: * ace/Thread_Exit.cpp: * ace/Timer_List.h: * ace/config-lite.h: * apps/JAWS/clients/Caching/Locator_Request_Reply.cpp: * apps/JAWS/clients/Caching/URL_Properties.h: * apps/JAWS/clients/Caching/URL_Properties.inl: * apps/JAWS/clients/Caching/URL_Properties.cpp: Clean of deprecated define ACE_USHORT16 and ACE_AUTO_PTR_RESET * configure.ac: Updated support address
Diffstat (limited to 'ACE/ace')
-rw-r--r--ACE/ace/Auto_Ptr.h16
-rw-r--r--ACE/ace/Basic_Types.h6
-rw-r--r--ACE/ace/OS_NS_Thread.cpp5
-rw-r--r--ACE/ace/Obchunk.cpp2
-rw-r--r--ACE/ace/Object_Manager.cpp2
-rw-r--r--ACE/ace/Object_Manager_Base.cpp3
-rw-r--r--ACE/ace/Proactor.h6
-rw-r--r--ACE/ace/SOCK_Dgram.h3
-rw-r--r--ACE/ace/SOCK_Dgram_Mcast.cpp2
-rw-r--r--ACE/ace/SOCK_Dgram_Mcast.h56
-rw-r--r--ACE/ace/SString.cpp10
-rw-r--r--ACE/ace/SString.h4
-rw-r--r--ACE/ace/Thread_Exit.cpp2
-rw-r--r--ACE/ace/Timer_List.h1
-rw-r--r--ACE/ace/config-lite.h6
15 files changed, 44 insertions, 80 deletions
diff --git a/ACE/ace/Auto_Ptr.h b/ACE/ace/Auto_Ptr.h
index ec955d30b21..e407bc44d42 100644
--- a/ACE/ace/Auto_Ptr.h
+++ b/ACE/ace/Auto_Ptr.h
@@ -106,9 +106,7 @@ ACE_BEGIN_VERSIONED_NAMESPACE_DECL
/**
* @brief Implements the draft C++ standard auto_ptr abstraction.
- * This version can be used instead of auto_ptr<T>, and obviates
- * the need for the ACE_AUTO_PTR_RESET macro on platforms like
- * VC6 where the auto_ptr<T> is broken.
+ * This version can be used instead of auto_ptr<T>
*/
template <typename X>
class ACE_Auto_Ptr : public ACE_Auto_Basic_Ptr <X>
@@ -209,18 +207,6 @@ ACE_auto_ptr_reset (AUTO_PTR_TYPE & ap,
ACE_END_VERSIONED_NAMESPACE_DECL
-// Some platforms have an older version of auto_ptr
-// support, which lacks reset, and cannot be disabled
-// easily. Portability to these platforms requires
-// use of the following ACE_AUTO_PTR_RESET macro.
-//
-// The TYPE macro parameter is no longer necessary but we leave it
-// around for backward compatibility. This is also the reason why the
-// ACE_auto_ptr_reset function template is not called
-// ACE_AUTO_PTR_RESET.
-# define ACE_AUTO_PTR_RESET(AUTOPTR,NEWPTR,TYPE) \
- ACE_auto_ptr_reset (AUTOPTR, NEWPTR);
-
#if defined (__ACE_INLINE__)
#include "ace/Auto_Ptr.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ACE/ace/Basic_Types.h b/ACE/ace/Basic_Types.h
index d55c96a2ea6..7153552084d 100644
--- a/ACE/ace/Basic_Types.h
+++ b/ACE/ace/Basic_Types.h
@@ -25,7 +25,6 @@
* - ACE_SIZEOF_LONG_DOUBLE
*
* Wrappers for built-in types of specific sizes:
- * - ACE_USHORT16 (For backward compatibility. Use ACE_UINT16 instead.)
* - ACE_INT8
* - ACE_UINT8
* - ACE_INT16
@@ -327,10 +326,7 @@ ACE_BEGIN_VERSIONED_NAMESPACE_DECL
# endif /* defined (ACE_UINT64_TYPE) */
#endif /* !(ACE_LACKS_LONGLONG_T || ACE_LACKS_UNSIGNEDLONGLONG_T) */
-
-typedef ACE_UINT16 ACE_USHORT16; // @@ Backward compatibility.
-
-// Define a generic byte for use in codecs
+/// Define a generic byte for use in codecs
typedef unsigned char ACE_Byte;
// Define a pseudo wide character type when wchar is not supported so we
diff --git a/ACE/ace/OS_NS_Thread.cpp b/ACE/ace/OS_NS_Thread.cpp
index cbc06828535..d1a9bf24057 100644
--- a/ACE/ace/OS_NS_Thread.cpp
+++ b/ACE/ace/OS_NS_Thread.cpp
@@ -3873,9 +3873,8 @@ ACE_OS::thr_create (ACE_THR_FUNC func,
auto_ptr <ACE_Base_Thread_Adapter> auto_thread_args;
if (thread_adapter == 0)
- ACE_AUTO_PTR_RESET (auto_thread_args,
- thread_args,
- ACE_Base_Thread_Adapter);
+ ACE_auto_ptr_reset (auto_thread_args,
+ thread_args);
#if defined (ACE_HAS_THREADS)
diff --git a/ACE/ace/Obchunk.cpp b/ACE/ace/Obchunk.cpp
index ff89edf31db..682de1d76f5 100644
--- a/ACE/ace/Obchunk.cpp
+++ b/ACE/ace/Obchunk.cpp
@@ -6,8 +6,6 @@
#include "ace/Obchunk.inl"
#endif /* __ACE_INLINE__ */
-
-
ACE_BEGIN_VERSIONED_NAMESPACE_DECL
ACE_ALLOC_HOOK_DEFINE(ACE_Obchunk)
diff --git a/ACE/ace/Object_Manager.cpp b/ACE/ace/Object_Manager.cpp
index 205bfa4af88..3d3ae82167e 100644
--- a/ACE/ace/Object_Manager.cpp
+++ b/ACE/ace/Object_Manager.cpp
@@ -36,8 +36,6 @@
#include "ace/OS_NS_stdlib.h"
#endif // ACE_DISABLE_WIN32_ERROR_WINDOWS && ACE_WIN32 && !ACE_HAS_WINCE && (_MSC_VER >= 1400)
-
-
#if ! defined (ACE_APPLICATION_PREALLOCATED_OBJECT_DEFINITIONS)
# define ACE_APPLICATION_PREALLOCATED_OBJECT_DEFINITIONS
#endif /* ACE_APPLICATION_PREALLOCATED_OBJECT_DEFINITIONS */
diff --git a/ACE/ace/Object_Manager_Base.cpp b/ACE/ace/Object_Manager_Base.cpp
index 3a049a6efee..b0391e2ab7d 100644
--- a/ACE/ace/Object_Manager_Base.cpp
+++ b/ACE/ace/Object_Manager_Base.cpp
@@ -1,9 +1,6 @@
// $Id$
#include "ace/Object_Manager_Base.h"
-
-
-
#include "ace/OS_Memory.h"
#include "ace/OS_NS_Thread.h"
#include "ace/OS_NS_sys_socket.h"
diff --git a/ACE/ace/Proactor.h b/ACE/ace/Proactor.h
index 704eef416ff..18f2c2c0e27 100644
--- a/ACE/ace/Proactor.h
+++ b/ACE/ace/Proactor.h
@@ -323,8 +323,8 @@ public:
const void *act,
const ACE_Time_Value &interval);
- // Same as above except @a interval it is used to reschedule the
- // @a handler automatically.
+ /// Same as above except @a interval it is used to reschedule the
+ /// @a handler automatically.
/// This combines the above two methods into one. Mostly for backward
/// compatibility.
@@ -357,7 +357,7 @@ public:
* @param wait_time the time to wait for an event to occur. This is
* a relative time. On successful return, the time is updated to
* reflect the amount of time spent waiting for event(s) to occur.
- * @return Returns 0 if no events occur before the wait_time expires.
+ * @return Returns 0 if no events occur before the @a wait_time expires.
* Returns 1 when a completion is dispatched. On error, returns -1
* and sets errno accordingly.
*/
diff --git a/ACE/ace/SOCK_Dgram.h b/ACE/ace/SOCK_Dgram.h
index 7249f8cb8cb..b48f748d92a 100644
--- a/ACE/ace/SOCK_Dgram.h
+++ b/ACE/ace/SOCK_Dgram.h
@@ -206,8 +206,7 @@ public:
protected:
/// Open is shared by this and by <LSOCK_Dgram>.
- int shared_open (const ACE_Addr &local,
- int protocol_family);
+ int shared_open (const ACE_Addr &local, int protocol_family);
/// Create a multicast addr/if pair, in format useful for system calls.
/// If mreq param is NULL, just verify the passed addr/interface specs.
diff --git a/ACE/ace/SOCK_Dgram_Mcast.cpp b/ACE/ace/SOCK_Dgram_Mcast.cpp
index 0f8eb97eb2a..13adb17092c 100644
--- a/ACE/ace/SOCK_Dgram_Mcast.cpp
+++ b/ACE/ace/SOCK_Dgram_Mcast.cpp
@@ -258,7 +258,7 @@ ACE_SOCK_Dgram_Mcast::subscribe_ifs (const ACE_INET_Addr &mcast_addr,
{
size_t nr_subscribed = 0;
# if defined(__linux__)
- struct if_nameindex *intf;
+ struct if_nameindex *intf = 0;
intf = ACE_OS::if_nameindex ();
diff --git a/ACE/ace/SOCK_Dgram_Mcast.h b/ACE/ace/SOCK_Dgram_Mcast.h
index 57d00c85313..6f3c3bc5b62 100644
--- a/ACE/ace/SOCK_Dgram_Mcast.h
+++ b/ACE/ace/SOCK_Dgram_Mcast.h
@@ -79,7 +79,7 @@ ACE_BEGIN_VERSIONED_NAMESPACE_DECL
* - If net_if == 0, the null_iface_opt option determines whether only the
* system "default" interface or all interfaces is affected. Specifying
* "all" interfaces is supported only for environments for which
- * <ACE_Sock_Connect::get_ip_interfaces> is properly implemented.
+ * ACE_Sock_Connect::get_ip_interfaces() is properly implemented.
* - Multiple subscriptions for the same address but different interfaces is
* normally supported, but re-subscription to an address/interface that is
* already subscribed is normally not allowed.
@@ -123,7 +123,7 @@ public:
//
/// Disable address bind. (Bind only port.)
/// @note This might seem odd, but we need a way to distinguish between
- /// default behavior, which might or might not be to bind, and explicitely
+ /// default behavior, which might or might not be to bind, and explicitly
/// choosing to bind or not to bind--which "is the question." ;-)
OPT_BINDADDR_NO = 0,
/// Enable address bind. (Bind port and address.)
@@ -141,14 +141,14 @@ public:
/// environment-specific and side-effects might be surprising.
DEFOPT_BINDADDR = OPT_BINDADDR_NO,
#endif /* ACE_LACKS_PERFECT_MULTICAST_FILTERING = 1) */
- //
+
/// Define the interpretation of 'NULL' as a recv interface specification.
/// If the interface part of a multicast address specification is NULL, it
/// will be interpreted to mean either "the default interface" or "all
/// interfaces", depending on the setting of this option.
/// Notes:
/// - The 'nulliface_all' option can not be used in environments which do
- /// not fully support the <ACE_Sock_Connect::get_ip_interfaces> method
+ /// not fully support the ACE_Sock_Connect::get_ip_interfaces() method
/// (e.g. non-Windows).
/// If it is, using NULL for iface will _always_ fail.
/// - The default behavior in most IP stacks is to use the 'default' interface,
@@ -158,19 +158,19 @@ public:
/// Supported values:
/// If (net_if==NULL), use default interface.
/// @note This might seem odd, but we need a way to distinguish between
- /// default behavior, which might or might not be to bind, and explicitely
+ /// default behavior, which might or might not be to bind, and explicitly
/// choosing to bind or not to bind--which "is the question." ;-)
OPT_NULLIFACE_ONE = 0,
/// If (net_if==NULL), use all mcast interfaces.
OPT_NULLIFACE_ALL = 2,
/// Default value for NULLIFACE option. (Environment-dependent.)
#ifdef ACE_WIN32
- // This is the (ad-hoc) legacy behavior for Win32/WinSock.
- // Notice: Older version of WinSock/MSVC may not get all multicast-capable
- // interfaces (e.g. PPP interfaces).
+ /// This is the (ad-hoc) legacy behavior for Win32/WinSock.
+ /// @note Older version of WinSock/MSVC may not get all multicast-capable
+ /// interfaces (e.g. PPP interfaces).
DEFOPT_NULLIFACE = OPT_NULLIFACE_ALL,
#else
- // General-purpose default behavior (as per legacy behavior).
+ /// General-purpose default behavior (as per legacy behavior).
DEFOPT_NULLIFACE = OPT_NULLIFACE_ONE,
#endif /* ACE_WIN32 */
/// All default options.
@@ -190,7 +190,7 @@ public:
/// Dtor - Release all resources and implicitly or explicitly unsubscribe
/// from all currently subscribed groups.
/**
- * The OPT_DTORUNSUB_YES_ option defines whether an explicit <unsusbcribe> is
+ * The OPT_DTORUNSUB_YES_ option defines whether an explicit unsubscribe() is
* done by the destructor. If not, most systems will automatically
* unsubscribe upon the close of the socket.
*/
@@ -200,14 +200,14 @@ public:
/// and default multicast address used for sending messages.
/**
* This method is optional; if not explicitly invoked, it is invoked by
- * the first <subscribe>, using the subscribed address/port# and network
+ * the first subscribe(), using the subscribed address/port# and network
* interface parameters.
* The @a mcast_addr parameter defines the default send address/port# and
* also the port# and, if the OPT_BINDADDR_YES option is used,
* the multicast address that is bound to this socket.
- * If the <send_net_if> parameter != 0, it defines the network interface
+ * If the @a net_if parameter != 0, it defines the network interface
* used for all sends by this instance, otherwise the system "default"
- * interface is used. (The <send_net_if> parameter is ignored if this
+ * interface is used. (The @a net_if parameter is ignored if this
* feature is not supported by the environment.)
* The port# in @a mcast_addr may be 0, in which case a system-assigned
* (ephemeral) port# is used for sending and receiving.
@@ -233,22 +233,22 @@ public:
* to various address and interface combinations are supported and tracked.
* If this is the first invocation of subscribe(), and open() was not
* previously invoked, open() will be invoked using @a mcast_addr for binding
- * the socket and @a net_if as the interface for <send>.
+ * the socket and @a net_if as the interface for send().
*
* Returns: -1 if the call fails. Failure can occur due to problems with
* the address, port#, and/or interface parameters or during the subscription
- * attempt. Once bind() has been invoked (by the first <open> or
- * <subscribe>), returns errno of ENXIO if the port# is not 0 and does not
+ * attempt. Once bind() has been invoked (by the first open() or
+ * subscribe()), returns errno of ENXIO if the port# is not 0 and does not
* match the bound port#, or if OPT_BINDADDR_YES option is used
* and the address does not match the bound address. Returns errno of
* ENODEV if the addr/port#/interface parameters appeared valid, but no
* subscription(s) succeeded. An error is unconditionally returned if
- * option OPT_NULLIFACE_ALL is used, <net_if> is NULL, and
- * <ACE_Sock_Connect::get_ip_interfaces> is not implemented in this
+ * option OPT_NULLIFACE_ALL is used, @a net_if is NULL, and
+ * ACE_Sock_Connect::get_ip_interfaces() is not implemented in this
* environment.
*
* Note that the optional @a reuse_addr parameter does not apply to
- * subscriptions; it is only used if <open> is implicitly invoked (see above).
+ * subscriptions; it is only used if open() is implicitly invoked (see above).
*
* Uses the mcast_addr to determine protocol_family, and protocol which
* we always pass as 0 anyway.
@@ -262,15 +262,15 @@ public:
/// supported).
/**
* The specified group/interface combination is unsubscribed. If option
- * OPT_NULLIFACE_ALL is used and <net_if> is = 0, the group is unsubscribed
+ * OPT_NULLIFACE_ALL is used and @a net_if is = 0, the group is unsubscribed
* from all interfaces (IFF supported).
*
* Returns: -1 if the unsubscribe failed. Most environments will return -1
* if there was no active subscription for this address/interface combination.
* An error is unconditionally returned if option OPT_NULLIFACE_ALL is used,
- * <net_if> is = 0, and <ACE_Sock_Connect::get_ip_interfaces> is not
- * implemented in this environment (_even if_ the <subscribe> specifies a
- * non- NULL <net_if>).
+ * @a net_if is = 0, and ACE_Sock_Connect::get_ip_interfaces() is not
+ * implemented in this environment (_even if_ the subscribe() specifies a
+ * non- NULL @a net_if).
*
* leave() replaces unsubscribe() and uses mcast_addr to determine
* protocol_family, and protocol which we always pass as 0 anyway.
@@ -281,13 +281,13 @@ public:
// = Data transfer routines.
/// Send @a n bytes in @a buf, using the multicast address and network interface
- /// defined by the first <open> or <subscribe>.
+ /// defined by the first open() or subscribe().
ssize_t send (const void *buf,
size_t n,
int flags = 0) const;
- /// Send @a n <iovecs>, using the multicast address and network interface
- /// defined by the first <open> or <subscribe>.
+ /// Send @a n iovecs, using the multicast address and network interface
+ /// defined by the first open() or subscribe().
ssize_t send (const iovec iov[],
int n,
int flags = 0) const;
@@ -356,9 +356,9 @@ private:
/// Per-instance options..
int opts_;
- /// Multicast address to which local <send> methods send datagrams.
+ /// Multicast address to which local send() methods send datagrams.
ACE_INET_Addr send_addr_;
- /// Network interface to which all <send> methods send multicast datagrams.
+ /// Network interface to which all send() methods send multicast datagrams.
ACE_TCHAR *send_net_if_;
#if defined (ACE_SOCK_DGRAM_MCAST_DUMPABLE)
diff --git a/ACE/ace/SString.cpp b/ACE/ace/SString.cpp
index a10a1ee2921..43818f3efdc 100644
--- a/ACE/ace/SString.cpp
+++ b/ACE/ace/SString.cpp
@@ -79,7 +79,7 @@ ACE_NS_WString::char_rep (void) const
}
}
-ACE_USHORT16 *
+ACE_UINT16 *
ACE_NS_WString::ushort_rep (void) const
{
ACE_TRACE ("ACE_NS_WString::ushort_rep");
@@ -87,16 +87,16 @@ ACE_NS_WString::ushort_rep (void) const
return 0;
else
{
- ACE_USHORT16 *t = 0;
+ ACE_UINT16 *t = 0;
ACE_NEW_RETURN (t,
- ACE_USHORT16[this->len_ + 1],
+ ACE_UINT16[this->len_ + 1],
0);
for (size_type i = 0; i < this->len_; ++i)
// Note that this cast may lose data if wide chars are
// actually used!
- t[i] = (ACE_USHORT16)this->rep_[i];
+ t[i] = (ACE_UINT16)this->rep_[i];
t[this->len_] = 0;
return t;
@@ -125,7 +125,7 @@ ACE_NS_WString::ACE_NS_WString (const char *s,
}
#if defined (ACE_WSTRING_HAS_USHORT_SUPPORT)
-ACE_NS_WString::ACE_NS_WString (const ACE_USHORT16 *s,
+ACE_NS_WString::ACE_NS_WString (const ACE_UINT16 *s,
size_type len,
ACE_Allocator *alloc)
: ACE_WString (alloc)
diff --git a/ACE/ace/SString.h b/ACE/ace/SString.h
index 900c8143a88..273882e9093 100644
--- a/ACE/ace/SString.h
+++ b/ACE/ace/SString.h
@@ -75,7 +75,7 @@ public:
#if defined (ACE_WSTRING_HAS_USHORT_SUPPORT)
/// Constructor that takes in a ushort16 string (mainly used by the
/// ACE Name_Space classes)
- ACE_NS_WString (const ACE_USHORT16 *s,
+ ACE_NS_WString (const ACE_UINT16 *s,
size_type len,
ACE_Allocator *alloc = 0);
#endif /* ACE_WSTRING_HAS_USHORT_SUPPORT */
@@ -102,7 +102,7 @@ public:
/// Transform into a copy of a USHORT16 representation (caller must
/// delete). Note, behavior is undefined when sizeof (wchar_t) != 2.
- ACE_USHORT16 *ushort_rep (void) const;
+ ACE_UINT16 *ushort_rep (void) const;
};
ACE_Export
diff --git a/ACE/ace/Thread_Exit.cpp b/ACE/ace/Thread_Exit.cpp
index ca6d163f56b..14c1313444d 100644
--- a/ACE/ace/Thread_Exit.cpp
+++ b/ACE/ace/Thread_Exit.cpp
@@ -5,8 +5,6 @@
#include "ace/Thread_Manager.h"
#include "ace/Guard_T.h"
-
-
ACE_BEGIN_VERSIONED_NAMESPACE_DECL
bool ACE_Thread_Exit::is_constructed_ = false;
diff --git a/ACE/ace/Timer_List.h b/ACE/ace/Timer_List.h
index 0bc689465ea..686aa63804b 100644
--- a/ACE/ace/Timer_List.h
+++ b/ACE/ace/Timer_List.h
@@ -25,7 +25,6 @@ ACE_BEGIN_VERSIONED_NAMESPACE_DECL
// The following typedefs are here for ease of use and backward
// compatibility.
-
typedef ACE_Timer_List_T<ACE_Event_Handler *,
ACE_Event_Handler_Handle_Timeout_Upcall<ACE_SYNCH_RECURSIVE_MUTEX>,
ACE_SYNCH_RECURSIVE_MUTEX>
diff --git a/ACE/ace/config-lite.h b/ACE/ace/config-lite.h
index ca75345f247..22de8fb78e4 100644
--- a/ACE/ace/config-lite.h
+++ b/ACE/ace/config-lite.h
@@ -27,12 +27,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-// Empty ACE_OS namespace to help identify compiler errors more
-// easily. -- @@ Do we really need this?
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-namespace ACE_OS {}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
// ============================================================================
// UNICODE macros (to be added later)
// ============================================================================