summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorSteve Huston <shuston@riverace.com>1999-07-13 11:44:10 +0000
committerSteve Huston <shuston@riverace.com>1999-07-13 11:44:10 +0000
commitc0b818bf20870abc1bcc29c7bc1869094e5b8d86 (patch)
treee064f20e090a6e46e0b2a59fc053c9e2df9eaa27 /examples
parent70db4de69fdb5d9db0b6879c9f546094a2e2a6d8 (diff)
downloadATCD-c0b818bf20870abc1bcc29c7bc1869094e5b8d86.tar.gz
Moved def of Dummy_Data from .cpp to .h file to satisfy AIX IBM C++.
Diffstat (limited to 'examples')
-rw-r--r--examples/Shared_Malloc/test_position_independent_malloc.cpp10
-rw-r--r--examples/Shared_Malloc/test_position_independent_malloc.h18
2 files changed, 19 insertions, 9 deletions
diff --git a/examples/Shared_Malloc/test_position_independent_malloc.cpp b/examples/Shared_Malloc/test_position_independent_malloc.cpp
index 1b62b6d184b..728fc158813 100644
--- a/examples/Shared_Malloc/test_position_independent_malloc.cpp
+++ b/examples/Shared_Malloc/test_position_independent_malloc.cpp
@@ -6,6 +6,7 @@
#include "ace/Malloc.h"
#include "ace/Based_Pointer_T.h"
#include "ace/Synch.h"
+#include "test_position_independent_malloc.h"
ACE_RCSID(Shared_Malloc, test_multiple_mallocs, "$Id$")
@@ -14,15 +15,6 @@ typedef ACE_Malloc <ACE_MMAP_MEMORY_POOL, ACE_Process_Mutex> MALLOC;
// Default address for memory-mapped files.
static void *base_addr = ACE_DEFAULT_BASE_ADDR;
-// Some dummy data
-struct Dummy_Data
-{
- int i1_;
- int i2_;
- int i3_;
- ACE_Based_Pointer<Dummy_Data> next_;
-};
-
#if 0
struct Long_Test
{
diff --git a/examples/Shared_Malloc/test_position_independent_malloc.h b/examples/Shared_Malloc/test_position_independent_malloc.h
new file mode 100644
index 00000000000..2a1be383db0
--- /dev/null
+++ b/examples/Shared_Malloc/test_position_independent_malloc.h
@@ -0,0 +1,18 @@
+// $Id$
+//
+// Define struct used in test_position_independent_malloc.cpp - needs to be in
+// a separate file for template generation on AIX IBM C++.
+
+#ifndef __TEST_POSITION_INDEPENDENT_MALLOC_H
+#define __TEST_POSITION_INDEPENDENT_MALLOC_H
+
+// Some dummy data
+struct Dummy_Data
+{
+ int i1_;
+ int i2_;
+ int i3_;
+ ACE_Based_Pointer<Dummy_Data> next_;
+};
+
+#endif /* __TEST_POSITION_INDEPENDENT_MALLOC */