summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>1999-07-20 16:53:09 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>1999-07-20 16:53:09 +0000
commite758220d7a096332ea6df9dc946f846027a5598b (patch)
tree7a4bad5737d4735af0e570af7f1a82fa76d0ef6a /examples
parent09104a725b0ee096878febc64536d9b734a4be91 (diff)
downloadATCD-e758220d7a096332ea6df9dc946f846027a5598b.tar.gz
ChangeLogTag:Tue Jul 20 11:46:09 1999 Douglas C. Schmidt <schmidt@tango.cs.wustl.edu>
Diffstat (limited to 'examples')
-rw-r--r--examples/Shared_Malloc/test_position_independent_malloc.cpp16
1 files changed, 14 insertions, 2 deletions
diff --git a/examples/Shared_Malloc/test_position_independent_malloc.cpp b/examples/Shared_Malloc/test_position_independent_malloc.cpp
index 2586cbe0d32..49f04565659 100644
--- a/examples/Shared_Malloc/test_position_independent_malloc.cpp
+++ b/examples/Shared_Malloc/test_position_independent_malloc.cpp
@@ -11,6 +11,7 @@
ACE_RCSID(Shared_Malloc, test_multiple_mallocs, "$Id$")
+#if 0
typedef ACE_Malloc <ACE_MMAP_MEMORY_POOL, ACE_Process_Mutex> MALLOC;
// Default address for memory-mapped files.
@@ -48,7 +49,9 @@ print (Dummy_Data *data)
data->next_->i1_,
data->next_->i2_,
data->next_->i3_));
-#endif
+#else
+ ACE_UNUSED_ARG (data);
+#endif /* 0 */
}
static void *
@@ -74,9 +77,9 @@ initialize (MALLOC *allocator)
ACE_ALLOCATOR_RETURN (ptr,
allocator->malloc (sizeof (Dummy_Data)),
0);
+#if 0
Dummy_Data *data2 = new (ptr) Dummy_Data;
-#if 0
data1->next_ = data2;
data1->next_->i1_ = 111;
data1->next_->i2_ = 222;
@@ -205,3 +208,12 @@ template class ACE_Based_Pointer_Basic<Dummy_Data>;
#pragma instantiate ACE_Based_Pointer<Dummy_Data>
#pragma instantiate ACE_Based_Pointer_Basic<Dummy_Data>
#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
+#else
+int
+main (int argc, char *argv[])
+{
+ ACE_ERROR_RETURN ((LM_ERROR,
+ "sorry, example not finished yet\n"),
+ 1);
+}
+#endif /* 0 */