From commits-return-6462-apmail-activemq-commits-archive=activemq.apache.org@activemq.apache.org Tue Jul 03 11:37:49 2007 Return-Path: Delivered-To: apmail-activemq-commits-archive@www.apache.org Received: (qmail 61810 invoked from network); 3 Jul 2007 11:37:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Jul 2007 11:37:47 -0000 Received: (qmail 86754 invoked by uid 500); 3 Jul 2007 11:37:47 -0000 Delivered-To: apmail-activemq-commits-archive@activemq.apache.org Received: (qmail 86709 invoked by uid 500); 3 Jul 2007 11:37:47 -0000 Mailing-List: contact commits-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list commits@activemq.apache.org Received: (qmail 86654 invoked by uid 99); 3 Jul 2007 11:37:47 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Jul 2007 04:37:46 -0700 X-ASF-Spam-Status: No, hits=-99.5 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Jul 2007 04:37:42 -0700 Received: by eris.apache.org (Postfix, from userid 65534) id 544091A981A; Tue, 3 Jul 2007 04:37:22 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r552782 - in /activemq/activemq-cpp/trunk/src/decaf: src/main/decaf/io/ByteArrayOutputStream.cpp src/main/decaf/io/DataOutputStream.cpp vs2005-build/vs2005-decaf-example.vcproj vs2005-build/vs2005-decaf.sln Date: Tue, 03 Jul 2007 11:37:22 -0000 To: commits@activemq.apache.org From: tabish@apache.org X-Mailer: svnmailer-1.1.0 Message-Id: <20070703113722.544091A981A@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: tabish Date: Tue Jul 3 04:37:21 2007 New Revision: 552782 URL: http://svn.apache.org/viewvc?view=rev&rev=552782 Log: http://issues.apache.org/activemq/browse/AMQCPP-130 Added: activemq/activemq-cpp/trunk/src/decaf/vs2005-build/vs2005-decaf-example.vcproj Modified: activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/io/ByteArrayOutputStream.cpp activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/io/DataOutputStream.cpp activemq/activemq-cpp/trunk/src/decaf/vs2005-build/vs2005-decaf.sln Modified: activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/io/ByteArrayOutputStream.cpp URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/io/ByteArrayOutputStream.cpp?view=diff&rev=552782&r1=552781&r2=552782 ============================================================================== --- activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/io/ByteArrayOutputStream.cpp (original) +++ activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/io/ByteArrayOutputStream.cpp Tue Jul 3 04:37:21 2007 @@ -60,10 +60,13 @@ std::size_t len ) throw ( IOException ) { + // Iterate until all the data is written. - for( std::size_t ix = 0; ix < len; ++ix) - { - activeBuffer->push_back( buffer[ix] ); - } +// for( std::size_t ix = 0; ix < len; ++ix) +// { +// activeBuffer->push_back( buffer[ix] ); +// } + + activeBuffer->insert( activeBuffer->end(), buffer, buffer + len ); } Modified: activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/io/DataOutputStream.cpp URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/io/DataOutputStream.cpp?view=diff&rev=552782&r1=552781&r2=552782 ============================================================================== --- activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/io/DataOutputStream.cpp (original) +++ activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/io/DataOutputStream.cpp Tue Jul 3 04:37:21 2007 @@ -176,14 +176,14 @@ try { unsigned char buffer[sizeof(value)]; - buffer[0] = (value & 0xFF00000000000000ULL) >> 56; - buffer[1] = (value & 0x00FF000000000000ULL) >> 48; - buffer[2] = (value & 0x0000FF0000000000ULL) >> 40; - buffer[3] = (value & 0x000000FF00000000ULL) >> 32; - buffer[4] = (value & 0x00000000FF000000ULL) >> 24; - buffer[5] = (value & 0x0000000000FF0000ULL) >> 16; - buffer[6] = (value & 0x000000000000FF00ULL) >> 8; - buffer[7] = (value & 0x00000000000000FFULL) >> 0; + buffer[0] = (unsigned char)((value & 0xFF00000000000000ULL) >> 56); + buffer[1] = (unsigned char)((value & 0x00FF000000000000ULL) >> 48); + buffer[2] = (unsigned char)((value & 0x0000FF0000000000ULL) >> 40); + buffer[3] = (unsigned char)((value & 0x000000FF00000000ULL) >> 32); + buffer[4] = (unsigned char)((value & 0x00000000FF000000ULL) >> 24); + buffer[5] = (unsigned char)((value & 0x0000000000FF0000ULL) >> 16); + buffer[6] = (unsigned char)((value & 0x000000000000FF00ULL) >> 8); + buffer[7] = (unsigned char)((value & 0x00000000000000FFULL) >> 0); outputStream->write( buffer, sizeof(value) ); written += sizeof( value ); Added: activemq/activemq-cpp/trunk/src/decaf/vs2005-build/vs2005-decaf-example.vcproj URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/decaf/vs2005-build/vs2005-decaf-example.vcproj?view=auto&rev=552782 ============================================================================== --- activemq/activemq-cpp/trunk/src/decaf/vs2005-build/vs2005-decaf-example.vcproj (added) +++ activemq/activemq-cpp/trunk/src/decaf/vs2005-build/vs2005-decaf-example.vcproj Tue Jul 3 04:37:21 2007 @@ -0,0 +1,379 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Modified: activemq/activemq-cpp/trunk/src/decaf/vs2005-build/vs2005-decaf.sln URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/decaf/vs2005-build/vs2005-decaf.sln?view=diff&rev=552782&r1=552781&r2=552782 ============================================================================== --- activemq/activemq-cpp/trunk/src/decaf/vs2005-build/vs2005-decaf.sln (original) +++ activemq/activemq-cpp/trunk/src/decaf/vs2005-build/vs2005-decaf.sln Tue Jul 3 04:37:21 2007 @@ -1,38 +1,51 @@ Microsoft Visual Studio Solution File, Format Version 9.00 -# Visual Studio 2005 +# Visual C++ Express 2005 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "vs2005-decaf", "vs2005-decaf.vcproj", "{D85BD1AB-82E9-4012-BEBE-67AD5CE2E399}" EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "vs2005-decaf-unittests", "vs2005-decaf-unittests.vcproj", "{71582D83-8CC9-4C85-83BF-2E272B6DAE8A}" - ProjectSection(ProjectDependencies) = postProject - {D85BD1AB-82E9-4012-BEBE-67AD5CE2E399} = {D85BD1AB-82E9-4012-BEBE-67AD5CE2E399} - EndProjectSection + ProjectSection(ProjectDependencies) = postProject + {D85BD1AB-82E9-4012-BEBE-67AD5CE2E399} = {D85BD1AB-82E9-4012-BEBE-67AD5CE2E399} + EndProjectSection +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "vs2005-decaf-example", "vs2005-decaf-example.vcproj", "{3F0BD46A-0AD3-4FAE-9962-F3A252E53498}" + ProjectSection(ProjectDependencies) = postProject + {D85BD1AB-82E9-4012-BEBE-67AD5CE2E399} = {D85BD1AB-82E9-4012-BEBE-67AD5CE2E399} + EndProjectSection EndProject Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Win32 = Debug|Win32 - DebugDLL|Win32 = DebugDLL|Win32 - Release|Win32 = Release|Win32 - ReleaseDLL|Win32 = ReleaseDLL|Win32 - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {D85BD1AB-82E9-4012-BEBE-67AD5CE2E399}.Debug|Win32.ActiveCfg = Debug|Win32 - {D85BD1AB-82E9-4012-BEBE-67AD5CE2E399}.Debug|Win32.Build.0 = Debug|Win32 - {D85BD1AB-82E9-4012-BEBE-67AD5CE2E399}.DebugDLL|Win32.ActiveCfg = DebugDLL|Win32 - {D85BD1AB-82E9-4012-BEBE-67AD5CE2E399}.DebugDLL|Win32.Build.0 = DebugDLL|Win32 - {D85BD1AB-82E9-4012-BEBE-67AD5CE2E399}.Release|Win32.ActiveCfg = Release|Win32 - {D85BD1AB-82E9-4012-BEBE-67AD5CE2E399}.Release|Win32.Build.0 = Release|Win32 - {D85BD1AB-82E9-4012-BEBE-67AD5CE2E399}.ReleaseDLL|Win32.ActiveCfg = ReleaseDLL|Win32 - {D85BD1AB-82E9-4012-BEBE-67AD5CE2E399}.ReleaseDLL|Win32.Build.0 = ReleaseDLL|Win32 - {71582D83-8CC9-4C85-83BF-2E272B6DAE8A}.Debug|Win32.ActiveCfg = Debug|Win32 - {71582D83-8CC9-4C85-83BF-2E272B6DAE8A}.Debug|Win32.Build.0 = Debug|Win32 - {71582D83-8CC9-4C85-83BF-2E272B6DAE8A}.DebugDLL|Win32.ActiveCfg = DebugDLL|Win32 - {71582D83-8CC9-4C85-83BF-2E272B6DAE8A}.DebugDLL|Win32.Build.0 = DebugDLL|Win32 - {71582D83-8CC9-4C85-83BF-2E272B6DAE8A}.Release|Win32.ActiveCfg = Release|Win32 - {71582D83-8CC9-4C85-83BF-2E272B6DAE8A}.Release|Win32.Build.0 = Release|Win32 - {71582D83-8CC9-4C85-83BF-2E272B6DAE8A}.ReleaseDLL|Win32.ActiveCfg = ReleaseDLL|Win32 - {71582D83-8CC9-4C85-83BF-2E272B6DAE8A}.ReleaseDLL|Win32.Build.0 = ReleaseDLL|Win32 - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Win32 = Debug|Win32 + DebugDLL|Win32 = DebugDLL|Win32 + Release|Win32 = Release|Win32 + ReleaseDLL|Win32 = ReleaseDLL|Win32 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {D85BD1AB-82E9-4012-BEBE-67AD5CE2E399}.Debug|Win32.ActiveCfg = Debug|Win32 + {D85BD1AB-82E9-4012-BEBE-67AD5CE2E399}.Debug|Win32.Build.0 = Debug|Win32 + {D85BD1AB-82E9-4012-BEBE-67AD5CE2E399}.DebugDLL|Win32.ActiveCfg = DebugDLL|Win32 + {D85BD1AB-82E9-4012-BEBE-67AD5CE2E399}.DebugDLL|Win32.Build.0 = DebugDLL|Win32 + {D85BD1AB-82E9-4012-BEBE-67AD5CE2E399}.Release|Win32.ActiveCfg = Release|Win32 + {D85BD1AB-82E9-4012-BEBE-67AD5CE2E399}.Release|Win32.Build.0 = Release|Win32 + {D85BD1AB-82E9-4012-BEBE-67AD5CE2E399}.ReleaseDLL|Win32.ActiveCfg = ReleaseDLL|Win32 + {D85BD1AB-82E9-4012-BEBE-67AD5CE2E399}.ReleaseDLL|Win32.Build.0 = ReleaseDLL|Win32 + {71582D83-8CC9-4C85-83BF-2E272B6DAE8A}.Debug|Win32.ActiveCfg = Debug|Win32 + {71582D83-8CC9-4C85-83BF-2E272B6DAE8A}.Debug|Win32.Build.0 = Debug|Win32 + {71582D83-8CC9-4C85-83BF-2E272B6DAE8A}.DebugDLL|Win32.ActiveCfg = DebugDLL|Win32 + {71582D83-8CC9-4C85-83BF-2E272B6DAE8A}.DebugDLL|Win32.Build.0 = DebugDLL|Win32 + {71582D83-8CC9-4C85-83BF-2E272B6DAE8A}.Release|Win32.ActiveCfg = Release|Win32 + {71582D83-8CC9-4C85-83BF-2E272B6DAE8A}.Release|Win32.Build.0 = Release|Win32 + {71582D83-8CC9-4C85-83BF-2E272B6DAE8A}.ReleaseDLL|Win32.ActiveCfg = ReleaseDLL|Win32 + {71582D83-8CC9-4C85-83BF-2E272B6DAE8A}.ReleaseDLL|Win32.Build.0 = ReleaseDLL|Win32 + {3F0BD46A-0AD3-4FAE-9962-F3A252E53498}.Debug|Win32.ActiveCfg = Debug|Win32 + {3F0BD46A-0AD3-4FAE-9962-F3A252E53498}.Debug|Win32.Build.0 = Debug|Win32 + {3F0BD46A-0AD3-4FAE-9962-F3A252E53498}.DebugDLL|Win32.ActiveCfg = DebugDLL|Win32 + {3F0BD46A-0AD3-4FAE-9962-F3A252E53498}.DebugDLL|Win32.Build.0 = DebugDLL|Win32 + {3F0BD46A-0AD3-4FAE-9962-F3A252E53498}.Release|Win32.ActiveCfg = Release|Win32 + {3F0BD46A-0AD3-4FAE-9962-F3A252E53498}.Release|Win32.Build.0 = Release|Win32 + {3F0BD46A-0AD3-4FAE-9962-F3A252E53498}.ReleaseDLL|Win32.ActiveCfg = ReleaseDLL|Win32 + {3F0BD46A-0AD3-4FAE-9962-F3A252E53498}.ReleaseDLL|Win32.Build.0 = ReleaseDLL|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection EndGlobal