summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordhinton <dhinton@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2003-05-14 15:18:04 +0000
committerdhinton <dhinton@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2003-05-14 15:18:04 +0000
commit2102bbe15f350fd7432c97648c11f15acfc44fbf (patch)
treedf66fbe8eaaf53238cf9d84ff1fd132201b7f7a4
parentdd52d6410e368302ebca0670b3d58d13e95ca418 (diff)
downloadATCD-2102bbe15f350fd7432c97648c11f15acfc44fbf.tar.gz
ChangeLogTag:Wed May 14 14:52:40 UTC 2003 Don Hinton <dhinton@dresystems.com>
-rw-r--r--ChangeLog7
-rw-r--r--ace/README1
-rw-r--r--ace/config-all.h8
3 files changed, 16 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 8b02cc06396..7ae601e0738 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+Wed May 14 14:52:40 UTC 2003 Don Hinton <dhinton@dresystems.com>
+
+ * ace/config-all.h:
+ * ace/README:
+ Added new macro, ACE_USES_ALLOCA. If it is not defined in the
+ user's config.h, then turn off ACE_HAS_ALLOCA by default.
+
Tue May 13 09:39:13 2003 Douglas C. Schmidt <schmidt@tango.doc.wustl.edu>
* ace/OS.i (last_error): Fixed this method so that it assigns errno
diff --git a/ace/README b/ace/README
index 5a8007419be..27972e833b5 100644
--- a/ace/README
+++ b/ace/README
@@ -174,6 +174,7 @@ ACE_HAS_ALLOCA Compiler/platform supports
alloca()
ACE_HAS_ALLOCA_H Compiler/platform has
<alloca.h>
+ACE_USES_ALLOCA Enables us of alloca in ACE.
ACE_HAS_ALPHA_TIMER CPU is an Alpha, with the rpcc
instruction to read the tick timer.
Limited to 32 bits, so not recommended.
diff --git a/ace/config-all.h b/ace/config-all.h
index 3026090db47..5058fa8b693 100644
--- a/ace/config-all.h
+++ b/ace/config-all.h
@@ -22,6 +22,14 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
+// Since use of alloca can be dangerous, turn it off unless the user has
+// specifically turned it on by defining the ACE_USES_ALLOCA macro.
+#if !defined (ACE_USES_ALLOCA)
+# if defined (ACE_HAS_ALLOCA)
+# undef ACE_HAS_ALLOCA
+# endif /* ACE_HAS_ALLOCA */
+#endif /* !ACE_USES_ALLOCA */
+
// =========================================================================
// Perfect Multicast filting refers to RFC 3376, where a socket is only
// delivered dgrams for groups joined even if it didn't bind the group