summaryrefslogtreecommitdiff
path: root/ace/ACE.i
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-03-01 19:15:13 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-03-01 19:15:13 +0000
commitb964d2089d08ef444bce80b1a4203fbdc0265713 (patch)
treedebd1060c9c702c629a2e11bd1e565a83e8d4ece /ace/ACE.i
parent9dfdc635cbfd88b75ccedac6f9f0b6f3f46d73c9 (diff)
downloadATCD-b964d2089d08ef444bce80b1a4203fbdc0265713.tar.gz
(strecpy,unique_name): moved to ACE_OS, so it can be self-contained
Diffstat (limited to 'ace/ACE.i')
-rw-r--r--ace/ACE.i30
1 files changed, 12 insertions, 18 deletions
diff --git a/ace/ACE.i b/ace/ACE.i
index 224cdbdd706..80f0f0b4645 100644
--- a/ace/ACE.i
+++ b/ace/ACE.i
@@ -44,31 +44,25 @@ ACE::recv (ACE_HANDLE handle, void *buf, size_t len, int flags)
ASYS_INLINE char *
ACE::strecpy (char *s, const char *t)
{
- ACE_TRACE ("ACE::strecpy");
- register char *dscan = s;
- register const char *sscan = t;
-
- while ((*dscan++ = *sscan++) != '\0')
- continue;
-
- return dscan;
+ return ACE_OS::strecpy (s, t);
}
#if defined (ACE_HAS_UNICODE)
ASYS_INLINE wchar_t *
ACE::strecpy (wchar_t *s, const wchar_t *t)
{
- ACE_TRACE ("ACE::strecpy");
- register wchar_t *dscan = s;
- register const wchar_t *sscan = t;
-
- while ((*dscan++ = *sscan++) != '\0')
- continue;
-
- return dscan;
+ return ACE_OS::strecpy (s, t);
}
#endif /* ACE_HAS_UNICODE */
+ASYS_INLINE void
+ACE::unique_name (const void *object,
+ LPTSTR name,
+ size_t length)
+{
+ ACE_OS::unique_name (object, name, length);
+}
+
// Return flags currently associated with handle.
ASYS_INLINE int
@@ -100,13 +94,13 @@ ACE::log2 (u_long num)
return log;
}
-ASYS_INLINE char
+ASYS_INLINE char
ACE::nibble2hex (u_int n)
{
return ACE::hex_chars_[n & 0x0f];
}
-ASYS_INLINE u_char
+ASYS_INLINE u_char
ACE::hex2byte (char c)
{
if (isdigit (c))