stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From se...@apache.org
Subject svn commit: r429750 - /incubator/stdcxx/trunk/examples/manual/ostream1.cpp
Date Tue, 08 Aug 2006 17:45:04 GMT
Author: sebor
Date: Tue Aug  8 10:45:04 2006
New Revision: 429750

URL: http://svn.apache.org/viewvc?rev=429750&view=rev
Log:
2006-08-08  Martin Sebor  <sebor@roguewave.com>

	* ostream1.cpp: Hardcoded 64-bit output for platforms with
	no 64-bit integer type to prevent comparison failures while
	testing.

Modified:
    incubator/stdcxx/trunk/examples/manual/ostream1.cpp

Modified: incubator/stdcxx/trunk/examples/manual/ostream1.cpp
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/examples/manual/ostream1.cpp?rev=429750&r1=429749&r2=429750&view=diff
==============================================================================
--- incubator/stdcxx/trunk/examples/manual/ostream1.cpp (original)
+++ incubator/stdcxx/trunk/examples/manual/ostream1.cpp Tue Aug  8 10:45:04 2006
@@ -6,16 +6,23 @@
  *
  ***************************************************************************
  *
- * Copyright (c) 1994-2005 Quovadx,  Inc., acting through its  Rogue Wave
- * Software division. Licensed under the Apache License, Version 2.0 (the
- * "License");  you may  not use this file except  in compliance with the
- * License.    You    may   obtain   a   copy   of    the   License    at
- * http://www.apache.org/licenses/LICENSE-2.0.    Unless   required    by
- * applicable law  or agreed to  in writing,  software  distributed under
- * the License is distributed on an "AS IS" BASIS,  WITHOUT WARRANTIES OR
- * CONDITIONS OF  ANY KIND, either  express or implied.  See  the License
- * for the specific language governing permissions  and limitations under
- * the License.
+ * Licensed to the Apache Software  Foundation (ASF) under one or more
+ * contributor  license agreements.  See  the NOTICE  file distributed
+ * with  this  work  for  additional information  regarding  copyright
+ * ownership.   The ASF  licenses this  file to  you under  the Apache
+ * License, Version  2.0 (the  "License"); you may  not use  this file
+ * except in  compliance with the License.   You may obtain  a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the  License is distributed on an  "AS IS" BASIS,
+ * WITHOUT  WARRANTIES OR CONDITIONS  OF ANY  KIND, either  express or
+ * implied.   See  the License  for  the  specific language  governing
+ * permissions and limitations under the License.
+ *
+ * Copyright 1998-2006 Rogue Wave Software.
  * 
  **************************************************************************/
 
@@ -134,6 +141,21 @@
         << std::dec << std::setw (20) << u64_max << ' '
         << std::oct << std::setw (23) << u64_max << ' '
         << std::hex << u64_max << '\n';
+
+#else   // if defined (NO_INT64)
+
+    // hardcoded for platforms with no 64-bit type
+    out << "int64_t min  = -9223372036854775808 "
+        << "01000000000000000000000 "
+        << "0x8000000000000000\n";
+
+    out << "int64_t max  = +9223372036854775807  "
+        << "0777777777777777777777 "
+        << "0x7fffffffffffffff\n";
+
+    out << "uint64_t max = 18446744073709551615 "
+        << "01777777777777777777777 "
+        << "0xffffffffffffffff\n";
 
 #endif   // NO_INT64
 



Mime
View raw message