diff options
author | Ossama Othman <ossama-othman@users.noreply.github.com> | 2002-09-17 22:27:25 +0000 |
---|---|---|
committer | Ossama Othman <ossama-othman@users.noreply.github.com> | 2002-09-17 22:27:25 +0000 |
commit | 03b936ef55c8ce11b4f7df2d1aac714a519b36c3 (patch) | |
tree | e57d3b31eeb1b272c148606205c7fcdbd638c8aa | |
parent | a0b1b7faaf1b9a615fbb0ad5c0dcf6571eb0d509 (diff) | |
download | ATCD-03b936ef55c8ce11b4f7df2d1aac714a519b36c3.tar.gz |
ChangeLogTag:Tue Sep 17 17:26:40 2002 Ossama Othman <ossama@uci.edu>
-rw-r--r-- | ChangeLog | 12 | ||||
-rw-r--r-- | ChangeLogs/ChangeLog-03a | 12 | ||||
-rw-r--r-- | ace/Basic_Types.cpp | 21 | ||||
-rw-r--r-- | ace/CDR_Base.h | 80 |
4 files changed, 76 insertions, 49 deletions
diff --git a/ChangeLog b/ChangeLog index c1f8900c950..339695380c1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,15 @@ +Tue Sep 17 17:26:40 2002 Ossama Othman <ossama@uci.edu> + + * ace/Basic_Types.cpp: + + Cosmetic changes to clarify some preprocessor blocks. + + * ace/CDR_Base.h: + + Corrected placement of '#' character in preprocessor + directives. It belongs in the first column, not arbitrary + ones. + Tue Sep 17 01:35:54 UTC 2002 Don Hinton <dhinton@ieee.org> * ace/OS.h: Remove redundant MAXPATHLEN definition when diff --git a/ChangeLogs/ChangeLog-03a b/ChangeLogs/ChangeLog-03a index c1f8900c950..339695380c1 100644 --- a/ChangeLogs/ChangeLog-03a +++ b/ChangeLogs/ChangeLog-03a @@ -1,3 +1,15 @@ +Tue Sep 17 17:26:40 2002 Ossama Othman <ossama@uci.edu> + + * ace/Basic_Types.cpp: + + Cosmetic changes to clarify some preprocessor blocks. + + * ace/CDR_Base.h: + + Corrected placement of '#' character in preprocessor + directives. It belongs in the first column, not arbitrary + ones. + Tue Sep 17 01:35:54 UTC 2002 Don Hinton <dhinton@ieee.org> * ace/OS.h: Remove redundant MAXPATHLEN definition when diff --git a/ace/Basic_Types.cpp b/ace/Basic_Types.cpp index a1863c6116b..035086c24ab 100644 --- a/ace/Basic_Types.cpp +++ b/ace/Basic_Types.cpp @@ -1,17 +1,20 @@ -// $Id$ - #include "ace/OS.h" + #if !defined (__ACE_INLINE__) # include "ace/Basic_Types.i" #endif /* ! __ACE_INLINE__ */ -ACE_RCSID(ace, Basic_Types, "$Id$") + +ACE_RCSID (ace, + Basic_Types, + "$Id$") + #if defined (ACE_LACKS_LONGLONG_T) -#include "ace/Log_Msg.h" -#if !defined (ACE_LACKS_IOSTREAM_TOTALLY) -# include "ace/streams.h" -#endif /* ! ACE_LACKS_IOSTREAM_TOTALLY */ +# include "ace/Log_Msg.h" +# if !defined (ACE_LACKS_IOSTREAM_TOTALLY) +# include "ace/streams.h" +# endif /* ! ACE_LACKS_IOSTREAM_TOTALLY */ void ACE_U_LongLong::output (FILE *file) const @@ -104,7 +107,7 @@ ACE_U_LongLong::as_string (ACE_TCHAR *output, } -#if !defined (ACE_LACKS_IOSTREAM_TOTALLY) +# if !defined (ACE_LACKS_IOSTREAM_TOTALLY) ostream& operator<< (ostream& os, const ACE_U_LongLong& ll) { @@ -119,7 +122,7 @@ operator<< (ostream& os, const ACE_U_LongLong& ll) os << ll.as_string (buffer); return os; } -#endif +# endif #endif /* ACE_LACKS_LONGLONG_T */ diff --git a/ace/CDR_Base.h b/ace/CDR_Base.h index d8307a6f74b..869708c1221 100644 --- a/ace/CDR_Base.h +++ b/ace/CDR_Base.h @@ -158,13 +158,13 @@ public: // Definitions of the IDL basic types, for use in the CDR // classes. The cleanest way to avoid complaints from all compilers // is to define them all. - #if defined (CHORUS) && defined (ghs) && !defined (__STANDARD_CXX) +# if defined (CHORUS) && defined (ghs) && !defined (__STANDARD_CXX) // This is non-compliant, but a nasty bout with // Green Hills C++68000 1.8.8 forces us into it. typedef unsigned long Boolean; - #else /* ! (CHORUS && ghs 1.8.8) */ +# else /* ! (CHORUS && ghs 1.8.8) */ typedef u_char Boolean; - #endif /* ! (CHORUS && ghs 1.8.8) */ +# endif /* ! (CHORUS && ghs 1.8.8) */ typedef u_char Octet; typedef char Char; @@ -175,24 +175,24 @@ public: typedef ACE_UINT32 ULong; typedef ACE_UINT64 ULongLong; - # if (defined (_MSC_VER) && (_MSC_VER >= 900)) \ +# if (defined (_MSC_VER) && (_MSC_VER >= 900)) \ || (defined (__BORLANDC__) && (__BORLANDC__ >= 0x530)) typedef __int64 LongLong; - # elif ACE_SIZEOF_LONG == 8 && !defined(_CRAYMPP) +# elif ACE_SIZEOF_LONG == 8 && !defined(_CRAYMPP) typedef long LongLong; - # elif ACE_SIZEOF_LONG_LONG == 8 && !defined (ACE_LACKS_LONGLONG_T) - # if defined (sun) && !defined (ACE_LACKS_U_LONGLONG_T) && !defined (__KCC) +# elif ACE_SIZEOF_LONG_LONG == 8 && !defined (ACE_LACKS_LONGLONG_T) +# if defined (sun) && !defined (ACE_LACKS_U_LONGLONG_T) && !defined (__KCC) // sun #defines u_longlong_t, maybe other platforms do also. // Use it, at least with g++, so that its -pedantic doesn't // complain about no ANSI C++ long long. typedef longlong_t LongLong; - # else +# else // LynxOS 2.5.0 and Linux don't have u_longlong_t. typedef long long LongLong; - # endif /* sun */ - # else /* no native 64 bit integer type */ - # define NONNATIVE_LONGLONG - # if defined (ACE_BIG_ENDIAN) +# endif /* sun */ +# else /* no native 64 bit integer type */ +# define NONNATIVE_LONGLONG +# if defined (ACE_BIG_ENDIAN) struct ACE_Export LongLong { ACE_CDR::Long h; @@ -200,7 +200,7 @@ public: int operator== (const LongLong &rhs) const; int operator!= (const LongLong &rhs) const; }; - # else +# else struct ACE_Export LongLong { ACE_CDR::Long l; @@ -208,62 +208,62 @@ public: int operator== (const LongLong &rhs) const; int operator!= (const LongLong &rhs) const; }; - # endif /* ! ACE_BIG_ENDIAN */ - # endif /* no native 64 bit integer type */ +# endif /* ! ACE_BIG_ENDIAN */ +# endif /* no native 64 bit integer type */ - # if defined (NONNATIVE_LONGLONG) - # define ACE_CDR_LONGLONG_INITIALIZER {0,0} - # else - # define ACE_CDR_LONGLONG_INITIALIZER 0 - # endif /* NONNATIVE_LONGLONG */ +# if defined (NONNATIVE_LONGLONG) +# define ACE_CDR_LONGLONG_INITIALIZER {0,0} +# else +# define ACE_CDR_LONGLONG_INITIALIZER 0 +# endif /* NONNATIVE_LONGLONG */ - # if ACE_SIZEOF_FLOAT == 4 +# if ACE_SIZEOF_FLOAT == 4 typedef float Float; - # else /* ACE_SIZEOF_FLOAT != 4 */ +# else /* ACE_SIZEOF_FLOAT != 4 */ struct Float { - # if ACE_SIZEOF_INT == 4 +# if ACE_SIZEOF_INT == 4 // Use u_int to get word alignment. u_int f; - # else /* ACE_SIZEOF_INT != 4 */ +# else /* ACE_SIZEOF_INT != 4 */ // Applications will probably have trouble with this. char f[4]; - # if defined(_UNICOS) && !defined(_CRAYMPP) +# if defined(_UNICOS) && !defined(_CRAYMPP) Float (void); Float (const float &init); Float & operator= (const float &rhs); int operator!= (const Float &rhs) const; - # endif /* _UNICOS */ - # endif /* ACE_SIZEOF_INT != 4 */ +# endif /* _UNICOS */ +# endif /* ACE_SIZEOF_INT != 4 */ }; - # endif /* ACE_SIZEOF_FLOAT != 4 */ +# endif /* ACE_SIZEOF_FLOAT != 4 */ - # if ACE_SIZEOF_DOUBLE == 8 +# if ACE_SIZEOF_DOUBLE == 8 typedef double Double; - # else /* ACE_SIZEOF_DOUBLE != 8 */ +# else /* ACE_SIZEOF_DOUBLE != 8 */ struct Double { - # if ACE_SIZEOF_LONG == 8 +# if ACE_SIZEOF_LONG == 8 // Use u_long to get word alignment. u_long f; - # else /* ACE_SIZEOF_INT != 8 */ +# else /* ACE_SIZEOF_INT != 8 */ // Applications will probably have trouble with this. char f[8]; - # endif /* ACE_SIZEOF_INT != 8 */ +# endif /* ACE_SIZEOF_INT != 8 */ }; - # endif /* ACE_SIZEOF_DOUBLE != 8 */ +# endif /* ACE_SIZEOF_DOUBLE != 8 */ // 94-9-32 Appendix A defines a 128 bit floating point "long // double" data type, with greatly extended precision and four // more bits of exponent (compared to "double"). This is an IDL // extension, not yet standard. - # if ACE_SIZEOF_LONG_DOUBLE == 16 +# if ACE_SIZEOF_LONG_DOUBLE == 16 typedef long double LongDouble; - #define ACE_CDR_LONG_DOUBLE_INITIALIZER 0 - # else - # define NONNATIVE_LONGDOUBLE - # define ACE_CDR_LONG_DOUBLE_INITIALIZER {{0}} +# define ACE_CDR_LONG_DOUBLE_INITIALIZER 0 +# else +# define NONNATIVE_LONGDOUBLE +# define ACE_CDR_LONG_DOUBLE_INITIALIZER {{0}} struct ACE_Export LongDouble { char ld[16]; @@ -271,7 +271,7 @@ public: int operator!= (const LongDouble &rhs) const; // @@ also need other comparison operators. }; - # endif /* ACE_SIZEOF_LONG_DOUBLE != 16 */ +# endif /* ACE_SIZEOF_LONG_DOUBLE != 16 */ #if !defined (ACE_CDR_GIOP_MAJOR_VERSION) # define ACE_CDR_GIOP_MAJOR_VERSION 1 |