summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ACE/ace/Compression/rle/RLECompressor.cpp4
-rw-r--r--ACE/ace/Process.h18
-rw-r--r--ACE/ace/config-win32-borland.h6
-rw-r--r--ACE/tests/Compiler_Features_38_Test.cpp6
-rw-r--r--TAO/tao/Unbounded_Object_Reference_Sequence_T.h5
-rw-r--r--TAO/tests/Policies/Manipulation.cpp20
6 files changed, 32 insertions, 27 deletions
diff --git a/ACE/ace/Compression/rle/RLECompressor.cpp b/ACE/ace/Compression/rle/RLECompressor.cpp
index 2bb3f627abd..43d48e844b9 100644
--- a/ACE/ace/Compression/rle/RLECompressor.cpp
+++ b/ACE/ace/Compression/rle/RLECompressor.cpp
@@ -1,7 +1,7 @@
#include "RLECompressor.h"
#include "ace/OS_NS_string.h"
-#if defined (__BORLANDC__) && (__BORLANDC__ >= 0x660) && (__BORLANDC__ <= 0x730)
+#if defined (__BORLANDC__) && (__BORLANDC__ >= 0x660) && (__BORLANDC__ <= 0x740)
# pragma option push -w-8072
#endif
@@ -140,6 +140,6 @@ ACE_SINGLETON_TEMPLATE_INSTANTIATE(ACE_Singleton, ACE_RLECompressor, ACE_SYNCH_M
// Close versioned namespace, if enabled by the user.
ACE_END_VERSIONED_NAMESPACE_DECL
-#if defined (__BORLANDC__) && (__BORLANDC__ >= 0x660) && (__BORLANDC__ <= 0x730)
+#if defined (__BORLANDC__) && (__BORLANDC__ >= 0x660) && (__BORLANDC__ <= 0x740)
# pragma option pop
#endif
diff --git a/ACE/ace/Process.h b/ACE/ace/Process.h
index 327573513db..1465103ef63 100644
--- a/ACE/ace/Process.h
+++ b/ACE/ace/Process.h
@@ -118,7 +118,11 @@ public:
/// @param format must be of the form "VARIABLE=VALUE". There can not be
/// any spaces between VARIABLE and the equal sign.
int setenv (const ACE_TCHAR *format,
- ...);
+ ...)
+#if !defined (ACE_USES_WCHAR)
+ ACE_GCC_FORMAT_ATTRIBUTE (printf, 2, 3)
+#endif /* !ACE_USES_WCHAR */
+ ;
/**
* Set a single environment variable, @a variable_name. Since
@@ -130,7 +134,11 @@ public:
*/
int setenv (const ACE_TCHAR *variable_name,
const ACE_TCHAR *format,
- ...);
+ ...)
+#if !defined (ACE_USES_WCHAR)
+ ACE_GCC_FORMAT_ATTRIBUTE (printf, 3, 4)
+#endif /* !ACE_USES_WCHAR */
+ ;
#endif // ACE_LACKS_VA_FUNCTIONS
/// Same as above with argv format. @a envp must be null terminated.
@@ -155,7 +163,11 @@ public:
* path to run a process, this method *must* be called! Returns 0
* on success, -1 on failure.
*/
- int command_line (const ACE_TCHAR *format, ...);
+ int command_line (const ACE_TCHAR *format, ...)
+#if !defined (ACE_USES_WCHAR)
+ ACE_GCC_FORMAT_ATTRIBUTE (printf, 2, 3)
+#endif /* !ACE_USES_WCHAR */
+ ;
#if defined (ACE_HAS_WCHAR) && !defined (ACE_HAS_WINCE)
/// Anti-TChar version of command_line ()
diff --git a/ACE/ace/config-win32-borland.h b/ACE/ace/config-win32-borland.h
index 47fd0dbf0d0..ea0f0d75446 100644
--- a/ACE/ace/config-win32-borland.h
+++ b/ACE/ace/config-win32-borland.h
@@ -145,16 +145,16 @@
# endif /* !__MT__ */
#endif /* ACE_MT_SAFE && ACE_MT_SAFE != 0 */
-#if (__BORLANDC__ <= 0x730)
+#if (__BORLANDC__ <= 0x740)
# define ACE_LACKS_ISWCTYPE
# define ACE_LACKS_ISCTYPE
#endif
-#if (__BORLANDC__ >= 0x640) && (__BORLANDC__ <= 0x730)
+#if (__BORLANDC__ >= 0x640) && (__BORLANDC__ <= 0x740)
# define ACE_LACKS_STRTOK_R
#endif
-#if (__BORLANDC__ <= 0x730)
+#if (__BORLANDC__ <= 0x740)
# define ACE_LACKS_LOCALTIME_R
# define ACE_LACKS_GMTIME_R
# define ACE_LACKS_ASCTIME_R
diff --git a/ACE/tests/Compiler_Features_38_Test.cpp b/ACE/tests/Compiler_Features_38_Test.cpp
index 0d6466479db..1c2f901bb7d 100644
--- a/ACE/tests/Compiler_Features_38_Test.cpp
+++ b/ACE/tests/Compiler_Features_38_Test.cpp
@@ -4,6 +4,7 @@
*/
#include "test_config.h"
+#include "ace/CDR_Base.h"
template <typename T>
class Foo_T
@@ -11,8 +12,7 @@ class Foo_T
public:
Foo_T () : member() {};
typedef T& T_elem;
- T_elem operator[] (long) { return member; }
- operator T *& () { return & member; };
+ T_elem operator[] (ACE_CDR::ULong) { return member; }
private:
T member;
};
@@ -29,7 +29,7 @@ run_main (int, ACE_TCHAR *[])
ACE_START_TEST (ACE_TEXT("Compiler_Features_38_Test"));
Foo2Seq f2;
- long const j = f2[0L].i;
+ long const j = f2[0].i;
ACE_UNUSED_ARG(j);
ACE_DEBUG ((LM_INFO,
diff --git a/TAO/tao/Unbounded_Object_Reference_Sequence_T.h b/TAO/tao/Unbounded_Object_Reference_Sequence_T.h
index 1bb7c432b46..1f63609def6 100644
--- a/TAO/tao/Unbounded_Object_Reference_Sequence_T.h
+++ b/TAO/tao/Unbounded_Object_Reference_Sequence_T.h
@@ -107,13 +107,9 @@ public:
implementation_type::freebuf(buffer);
}
-
#if defined TAO_HAS_SEQUENCE_ITERATORS && TAO_HAS_SEQUENCE_ITERATORS == 1
-
- ///
/// Additions to support iterator semantics for TAO unbounded object reference
/// sequences.
- ///
// = Traits and factory methods that create iterators.
typedef MM_Sequence_Iterator<unbounded_object_reference_sequence<object_t, object_t_var> > iterator;
@@ -176,7 +172,6 @@ public:
return const_reverse_iterator (&this->impl_,
-1);
}
-
#endif /* TAO_HAS_SEQUENCE_ITERATORS==1 */
private:
diff --git a/TAO/tests/Policies/Manipulation.cpp b/TAO/tests/Policies/Manipulation.cpp
index b13e6c7a62c..84f75a7854c 100644
--- a/TAO/tests/Policies/Manipulation.cpp
+++ b/TAO/tests/Policies/Manipulation.cpp
@@ -41,22 +41,20 @@ parse_args (int argc, ACE_TCHAR *argv[])
return 0;
}
+/**
+ * Run the client thread
+ *
+ * Use the ACE_Task_Base class to run the client threads.
+ */
class Manipulation : public ACE_Task_Base
{
- // = TITLE
- // Run the client thread
- //
- // = DESCRIPTION
- // Use the ACE_Task_Base class to run the client threads.
- //
public:
Manipulation (CORBA::ORB_ptr orb,
Test_ptr test,
int niterations);
- // ctor
+ /// The thread entry point.
virtual int svc (void);
- // The thread entry point.
private:
void perform_iteration (unsigned int *seed,
@@ -65,14 +63,14 @@ private:
CORBA::PolicyCurrent_ptr policy_current);
private:
+ /// The ORB pointer
CORBA::ORB_var orb_;
- // The ORB pointer
+ /// The test object reference
Test_var test_;
- // The test object reference
+ /// The number of iterations on this thread
int niterations_;
- // The number of iterations on this thread
};
int