summaryrefslogtreecommitdiff
path: root/ace/ACE.inl
diff options
context:
space:
mode:
authornobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2004-09-16 21:19:02 +0000
committernobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2004-09-16 21:19:02 +0000
commit40fdc8a404e75ab03b68cc62e9987cf208fd8c30 (patch)
tree37d9c4d3abe4aefd8a34ed797883dd2cd4862ca7 /ace/ACE.inl
parentc254b281f1b9a4ca19dd0c3ee73a0654a7718909 (diff)
downloadATCD-typecode-overhaul.tar.gz
This commit was manufactured by cvs2svn to create branchtypecode-overhaul
'typecode-overhaul'.
Diffstat (limited to 'ace/ACE.inl')
-rw-r--r--ace/ACE.inl21
1 files changed, 16 insertions, 5 deletions
diff --git a/ace/ACE.inl b/ace/ACE.inl
index fcd4e9b407b..9e28d4ea321 100644
--- a/ace/ACE.inl
+++ b/ace/ACE.inl
@@ -278,7 +278,9 @@ ACE::log2 (u_long num)
{
u_long log = 0;
- for (; num > 0; ++log)
+ for (;
+ num > 0;
+ log++)
num >>= 1;
return log;
@@ -287,11 +289,8 @@ ACE::log2 (u_long num)
ACE_INLINE ACE_TCHAR
ACE::nibble2hex (u_int n)
{
- // Hexadecimal characters.
- static const ACE_TCHAR hex_chars[] = ACE_LIB_TEXT ("0123456789abcdef");
-
// @@ UNICODE does this work?
- return hex_chars[n & 0x0f];
+ return ACE::hex_chars_[n & 0x0f];
}
ACE_INLINE u_char
@@ -304,3 +303,15 @@ ACE::hex2byte (ACE_TCHAR c)
else
return (u_char) (10 + c - ACE_LIB_TEXT ('A'));
}
+
+ACE_INLINE char
+ACE::debug (void)
+{
+ return ACE::debug_;
+}
+
+ACE_INLINE void
+ACE::debug (char c)
+{
+ ACE::debug_ = c;
+}