summaryrefslogtreecommitdiff
path: root/ace
diff options
context:
space:
mode:
authornw1 <nw1@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-10-30 09:09:13 +0000
committernw1 <nw1@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-10-30 09:09:13 +0000
commit2db52c40f6b52c91c4a87211ffb7e4ad73ef35fa (patch)
tree958295bdcb48d28246c4a7e4d8999be424665009 /ace
parentf04a5ae435c4a6426993de8a7955c31b2b4ee014 (diff)
downloadATCD-2db52c40f6b52c91c4a87211ffb7e4ad73ef35fa.tar.gz
Moved ACE_ALLOCATOR* and ACE_DES* macros to Malloc_T.h.
Diffstat (limited to 'ace')
-rw-r--r--ace/OS.h37
1 files changed, 1 insertions, 36 deletions
diff --git a/ace/OS.h b/ace/OS.h
index e4978684750..17139a1023c 100644
--- a/ace/OS.h
+++ b/ace/OS.h
@@ -3938,7 +3938,7 @@ public:
size_t len);
static wchar_t *strcpy (wchar_t *s,
const wchar_t *t);
- static int strcasecmp (const wchar_t *s,
+ static int strcasecmp (const wchar_t *s,
const wchar_t *t);
static int strncasecmp (const wchar_t *s,
const wchar_t *t,
@@ -4368,41 +4368,6 @@ private:
do { POINTER = new CONSTRUCTOR; \
if (POINTER == 0) { errno = ENOMEM; return; } \
} while (0)
-#define ACE_ALLOCATOR_RETURN(POINTER,ALLOCATOR,RET_VAL) \
- do { POINTER = ALLOCATOR; \
- if (POINTER == 0) { errno = ENOMEM; return RET_VAL; } \
- } while (0)
-#define ACE_ALLOCATOR(POINTER,ALLOCATOR) \
- do { POINTER = ALLOCATOR; \
- if (POINTER == 0) { errno = ENOMEM; return; } \
- } while (0)
-
-// Some more useful abstration for expressions involving
-// ACE_Allocator.malloc (). The difference between these macro with
-// ACE_ALLOCATOR is that we provide construction also.
-#define ACE_NEW_MALLOC_RETURN(POINTER,ALLOCATOR,CONSTRUCTOR,RET_VAL) \
- do { POINTER = ALLOCATOR; \
- if (POINTER == 0) { errno = ENOMEM; return RET_VAL;} \
- else { new (POINTER) CONSTRUCTOR; } \
- } while (0)
-#define ACE_NEW_MALLOC(POINTER,ALLOCATOR,CONSTRUCTOR) \
- do { POINTER = ALLOCATOR; \
- if (POINTER == 0) { errno = ENOMEM; return;} \
- else { new (POINTER) CONSTRUCTOR; } \
- } while (0)
-#define ACE_DES_FREE(POINTER,DEALLOCATOR,CLASS) \
- do { POINTER->CLASS::~CLASS (); DEALLOCATOR (POINTER); } while (0)
-
-#define ACE_DES_FREE_TEMPLATE(POINTER,DEALLOCATOR,T_CLASS,T_PARAMETER) \
- do { POINTER-> T_CLASS T_PARAMETER ::~ T_CLASS (); \
- DEALLOCATOR (POINTER); \
- } while (0)
-#if 0
-#define ACE_DES_FREE_TEMPLATE(POINTER,DEALLOCATOR,T_CLASS,T_PARAMETER) \
- do { POINTER->T_CLASS##T_PARAMETER::~T_CLASS##T_PARAMETER (); \
- DEALLOCATOR (POINTER); \
- } while (0)
-#endif /* 0 */
#if defined (ACE_HAS_SIGNAL_SAFE_OS_CALLS)
// The following two macros ensure that system calls are properly