Update of /cvsroot/cppunit/cppunit2/include/cpptl
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13773/include/cpptl
Modified Files:
config.h
Log Message:
* added CPPTL_ARRAY_SIZE
* added typedef LargestInt and LargestUnsignedInt
Index: config.h
===================================================================
RCS file: /cvsroot/cppunit/cppunit2/include/cpptl/config.h,v
retrieving revision 1.19
retrieving revision 1.20
diff -C2 -d -r1.19 -r1.20
*** config.h 4 Jul 2005 08:09:29 -0000 1.19
--- config.h 6 Sep 2005 07:14:49 -0000 1.20
***************
*** 34,38 ****
# if _MSC_VER >= 1310 // VC++ 7.1
# define CPPTL_HAS_INT64 1
! //# define CPPTL_HAS_LONGLONG 1 // support but not by default.
# pragma warning( disable : 4800 ) // forcing value to bool performance warning
# pragma warning( disable : 4018 ) // '<' signed/unsigned mismatch
--- 34,38 ----
# if _MSC_VER >= 1310 // VC++ 7.1
# define CPPTL_HAS_INT64 1
! //# define CPPTL_HAS_LONGLONG 1 // supported but not by default.
# pragma warning( disable : 4800 ) // forcing value to bool performance warning
# pragma warning( disable : 4018 ) // '<' signed/unsigned mismatch
***************
*** 44,47 ****
--- 44,49 ----
# endif
+ # define CPPTL_HAS__SNPRINTF 1
+
# endif
***************
*** 202,205 ****
--- 204,210 ----
}
+ /// Evaluates to the number of elements in the array
+ #define CPPTL_ARRAY_SIZE( array ) (sizeof(array)/sizeof((array)[0]))
+
///////////////////////////////////////////////////////////////////////////
***************
*** 227,230 ****
--- 232,245 ----
# endif
+
+ #ifndef CPPTL_NO_INT64
+ typedef CppTL::int64_t LargestInt;
+ typedef CppTL::uint64_t LargestUnsignedInt;
+ #else
+ typedef int LargestInt;
+ typedef unsigned int LargestUnsignedInt;
+ #endif
+
+
typedef unsigned int size_type;
|