activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r666221 - in /activemq/activemq-cpp/trunk/src: main/activemq/connector/stomp/ main/activemq/connector/stomp/commands/ main/activemq/core/ main/decaf/internal/nio/ main/decaf/lang/ test/decaf/internal/nio/ test/decaf/lang/
Date Tue, 10 Jun 2008 17:22:57 GMT
Author: tabish
Date: Tue Jun 10 10:22:57 2008
New Revision: 666221

URL: http://svn.apache.org/viewvc?rev=666221&view=rev
Log:
https://issues.apache.org/activemq/browse/AMQCPP-182

Modified:
    activemq/activemq-cpp/trunk/src/main/activemq/connector/stomp/StompCommandReader.cpp
    activemq/activemq-cpp/trunk/src/main/activemq/connector/stomp/commands/CommandConstants.cpp
    activemq/activemq-cpp/trunk/src/main/activemq/core/ActiveMQConnection.h
    activemq/activemq-cpp/trunk/src/main/decaf/internal/nio/ByteArrayBuffer.cpp
    activemq/activemq-cpp/trunk/src/main/decaf/internal/nio/CharArrayBuffer.cpp
    activemq/activemq-cpp/trunk/src/main/decaf/lang/Double.cpp
    activemq/activemq-cpp/trunk/src/main/decaf/lang/Float.cpp
    activemq/activemq-cpp/trunk/src/test/decaf/internal/nio/ByteArrayBufferTest.cpp
    activemq/activemq-cpp/trunk/src/test/decaf/internal/nio/CharArrayBufferTest.cpp
    activemq/activemq-cpp/trunk/src/test/decaf/lang/ByteTest.cpp
    activemq/activemq-cpp/trunk/src/test/decaf/lang/CharacterTest.cpp
    activemq/activemq-cpp/trunk/src/test/decaf/lang/ExceptionTest.cpp

Modified: activemq/activemq-cpp/trunk/src/main/activemq/connector/stomp/StompCommandReader.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/main/activemq/connector/stomp/StompCommandReader.cpp?rev=666221&r1=666220&r2=666221&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/main/activemq/connector/stomp/StompCommandReader.cpp (original)
+++ activemq/activemq-cpp/trunk/src/main/activemq/connector/stomp/StompCommandReader.cpp Tue
Jun 10 10:22:57 2008
@@ -19,6 +19,7 @@
 #include <activemq/connector/stomp/commands/CommandConstants.h>
 #include <decaf/lang/Thread.h>
 #include <decaf/lang/Character.h>
+#include <decaf/lang/Long.h>
 
 using namespace std;
 using namespace activemq;
@@ -236,17 +237,12 @@
             commands::CommandConstants::toString(
                 commands::CommandConstants::HEADER_CONTENTLENGTH))) {
 
-            char* stopped_string = NULL;
-
             string length =
                 frame.getProperties().getProperty(
                     commands::CommandConstants::toString(
                         commands::CommandConstants::HEADER_CONTENTLENGTH));
 
-            content_length = strtoul(
-                length.c_str(),
-                &stopped_string,
-                10 );
+            content_length = (unsigned long long)Long::parseLong( length );
          }
 
          if( content_length != 0 ) {

Modified: activemq/activemq-cpp/trunk/src/main/activemq/connector/stomp/commands/CommandConstants.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/main/activemq/connector/stomp/commands/CommandConstants.cpp?rev=666221&r1=666220&r2=666221&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/main/activemq/connector/stomp/commands/CommandConstants.cpp
(original)
+++ activemq/activemq-cpp/trunk/src/main/activemq/connector/stomp/commands/CommandConstants.cpp
Tue Jun 10 10:22:57 2008
@@ -17,6 +17,7 @@
 
 #include "CommandConstants.h"
 #include <stdio.h>
+#include <string.h>
 
 #include <activemq/connector/stomp/StompTopic.h>
 #include <activemq/connector/stomp/StompQueue.h>

Modified: activemq/activemq-cpp/trunk/src/main/activemq/core/ActiveMQConnection.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/main/activemq/core/ActiveMQConnection.h?rev=666221&r1=666220&r2=666221&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/main/activemq/core/ActiveMQConnection.h (original)
+++ activemq/activemq-cpp/trunk/src/main/activemq/core/ActiveMQConnection.h Tue Jun 10 10:22:57
2008
@@ -40,7 +40,6 @@
 
 namespace core{
 
-    class cms::Session;
     class ActiveMQSession;
     class ActiveMQConsumer;
 

Modified: activemq/activemq-cpp/trunk/src/main/decaf/internal/nio/ByteArrayBuffer.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/main/decaf/internal/nio/ByteArrayBuffer.cpp?rev=666221&r1=666220&r2=666221&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/main/decaf/internal/nio/ByteArrayBuffer.cpp (original)
+++ activemq/activemq-cpp/trunk/src/main/decaf/internal/nio/ByteArrayBuffer.cpp Tue Jun 10
10:22:57 2008
@@ -21,6 +21,7 @@
 #include "decaf/lang/Long.h"
 #include "decaf/lang/Float.h"
 #include "decaf/lang/Double.h"
+#include <string.h>
 
 using namespace std;
 using namespace decaf;

Modified: activemq/activemq-cpp/trunk/src/main/decaf/internal/nio/CharArrayBuffer.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/main/decaf/internal/nio/CharArrayBuffer.cpp?rev=666221&r1=666220&r2=666221&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/main/decaf/internal/nio/CharArrayBuffer.cpp (original)
+++ activemq/activemq-cpp/trunk/src/main/decaf/internal/nio/CharArrayBuffer.cpp Tue Jun 10
10:22:57 2008
@@ -16,6 +16,7 @@
  */
 
 #include "CharArrayBuffer.h"
+#include <string.h>
 
 using namespace decaf;
 using namespace decaf::lang;

Modified: activemq/activemq-cpp/trunk/src/main/decaf/lang/Double.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/main/decaf/lang/Double.cpp?rev=666221&r1=666220&r2=666221&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/main/decaf/lang/Double.cpp (original)
+++ activemq/activemq-cpp/trunk/src/main/decaf/lang/Double.cpp Tue Jun 10 10:22:57 2008
@@ -18,6 +18,7 @@
 #include "Double.h"
 #include <decaf/lang/Long.h>
 #include <limits>
+#include <string.h>
 
 using namespace std;
 using namespace decaf;

Modified: activemq/activemq-cpp/trunk/src/main/decaf/lang/Float.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/main/decaf/lang/Float.cpp?rev=666221&r1=666220&r2=666221&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/main/decaf/lang/Float.cpp (original)
+++ activemq/activemq-cpp/trunk/src/main/decaf/lang/Float.cpp Tue Jun 10 10:22:57 2008
@@ -18,6 +18,7 @@
 #include "Float.h"
 #include <decaf/lang/Integer.h>
 #include <limits>
+#include <string.h>
 
 using namespace std;
 using namespace decaf;

Modified: activemq/activemq-cpp/trunk/src/test/decaf/internal/nio/ByteArrayBufferTest.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/test/decaf/internal/nio/ByteArrayBufferTest.cpp?rev=666221&r1=666220&r2=666221&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/test/decaf/internal/nio/ByteArrayBufferTest.cpp (original)
+++ activemq/activemq-cpp/trunk/src/test/decaf/internal/nio/ByteArrayBufferTest.cpp Tue Jun
10 10:22:57 2008
@@ -19,6 +19,7 @@
 #include <decaf/lang/Integer.h>
 #include <decaf/lang/Double.h>
 #include <decaf/lang/Float.h>
+#include <string.h>
 
 using namespace std;
 using namespace decaf;

Modified: activemq/activemq-cpp/trunk/src/test/decaf/internal/nio/CharArrayBufferTest.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/test/decaf/internal/nio/CharArrayBufferTest.cpp?rev=666221&r1=666220&r2=666221&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/test/decaf/internal/nio/CharArrayBufferTest.cpp (original)
+++ activemq/activemq-cpp/trunk/src/test/decaf/internal/nio/CharArrayBufferTest.cpp Tue Jun
10 10:22:57 2008
@@ -19,6 +19,7 @@
 #include <decaf/lang/Integer.h>
 #include <decaf/lang/Double.h>
 #include <decaf/lang/Float.h>
+#include <string.h>
 
 using namespace std;
 using namespace decaf;

Modified: activemq/activemq-cpp/trunk/src/test/decaf/lang/ByteTest.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/test/decaf/lang/ByteTest.cpp?rev=666221&r1=666220&r2=666221&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/test/decaf/lang/ByteTest.cpp (original)
+++ activemq/activemq-cpp/trunk/src/test/decaf/lang/ByteTest.cpp Tue Jun 10 10:22:57 2008
@@ -29,7 +29,7 @@
 
     Byte ubyte( 'b' );
 
-    CPPUNIT_ASSERT( ubyte < 'a' == false );
+    CPPUNIT_ASSERT( ( ubyte < 'a' ) == false );
     CPPUNIT_ASSERT( ubyte.compareTo( 'a' ) == 1 );
     CPPUNIT_ASSERT( ubyte.compareTo( 'b' ) == 0 );
     CPPUNIT_ASSERT( ubyte.compareTo( 'c' ) == -1 );

Modified: activemq/activemq-cpp/trunk/src/test/decaf/lang/CharacterTest.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/test/decaf/lang/CharacterTest.cpp?rev=666221&r1=666220&r2=666221&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/test/decaf/lang/CharacterTest.cpp (original)
+++ activemq/activemq-cpp/trunk/src/test/decaf/lang/CharacterTest.cpp Tue Jun 10 10:22:57
2008
@@ -29,7 +29,7 @@
 
     Character character( 'b' );
 
-    CPPUNIT_ASSERT( character < 'a' == false );
+    CPPUNIT_ASSERT( ( character < 'a' ) == false );
     CPPUNIT_ASSERT( character.compareTo( 'a' ) == 1 );
     CPPUNIT_ASSERT( character.compareTo( 'b' ) == 0 );
     CPPUNIT_ASSERT( character.compareTo( 'c' ) == -1 );

Modified: activemq/activemq-cpp/trunk/src/test/decaf/lang/ExceptionTest.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/test/decaf/lang/ExceptionTest.cpp?rev=666221&r1=666220&r2=666221&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/test/decaf/lang/ExceptionTest.cpp (original)
+++ activemq/activemq-cpp/trunk/src/test/decaf/lang/ExceptionTest.cpp Tue Jun 10 10:22:57
2008
@@ -23,7 +23,7 @@
 
 ////////////////////////////////////////////////////////////////////////////////
 void ExceptionTest::testMessage0(){
-      char* text = "This is a test";
+      const char* text = "This is a test";
       Exception ex( __FILE__, __LINE__, text );
       CPPUNIT_ASSERT( strcmp( ex.getMessage().c_str(), text ) == 0 );
 }



Mime
View raw message