Switch some basic ints to NSUInteger in GDBpConnection.
authorRobert Sesek <rsesek@bluestatic.org>
Sat, 27 Mar 2010 16:42:13 +0000 (12:42 -0400)
committerRobert Sesek <rsesek@bluestatic.org>
Sat, 27 Mar 2010 16:42:13 +0000 (12:42 -0400)
Source/GDBpConnection.h
Source/GDBpConnection.m

index 068743234e3fd965e5c4bb7c2c7493ea18b12ef6..d3b4edab78a9defa68af95e67e3569646fbe8676 100644 (file)
 
 @interface GDBpConnection : NSObject
 {
-       int port;
+       NSUInteger port;
        BOOL connected;
        
        /**
         * An ever-increasing integer that gives each transaction a unique ID for
         * the debugging engine. Managed by |-createCommand:|.
         */
-       int transactionID;
+       NSUInteger transactionID;
        
        /**
         * Human-readable status of the connection
@@ -44,7 +44,7 @@
        CFReadStreamRef readStream_;
        
        // The most recently received transaction ID.
-       int lastReadTransaction_;
+       NSUInteger lastReadTransaction_;
        
        // Information about the current read loop. We append to |currentPacket_|
        // until |currentPacketSize_| has reached |packetSize_|.
@@ -66,7 +66,7 @@
        CFWriteStreamRef writeStream_;
        
        // The last transactionID written to the stream.
-       int lastWrittenTransaction_;
+       NSUInteger lastWrittenTransaction_;
        
        // A dictionary that maps routingIDs to StackFrame objects.
        NSMutableDictionary* stackFrames_;
 @property (assign) id <GDBpConnectionDelegate> delegate;
 
 // initializer
-- (id)initWithPort:(int)aPort;
+- (id)initWithPort:(NSUInteger)aPort;
 
 // getter
-- (int)port;
+- (NSUInteger)port;
 - (NSString*)remoteHost;
 - (BOOL)isConnected;
 - (NSArray*)getCurrentStack;
index e9b9b2692701ee09926e3d3beb3ca13cb556a7f8..8924f8d238c8e8901e1dafba128d498181b75488 100644 (file)
 @property (readwrite, copy) NSString* status;
 @property (assign) CFSocketRef socket;
 @property (assign) CFReadStreamRef readStream;
-@property int lastReadTransaction;
+@property NSUInteger lastReadTransaction;
 @property (retain) NSMutableString* currentPacket;
 @property (assign) CFWriteStreamRef writeStream;
-@property int lastWrittenTransaction;
+@property NSUInteger lastWrittenTransaction;
 @property (retain) NSMutableArray* queuedWrites;
 
 - (void)connect;
@@ -209,7 +209,7 @@ void SocketAcceptCallback(CFSocketRef socket,
  * Creates a new DebuggerConnection and initializes the socket from the given connection
  * paramters.
  */
-- (id)initWithPort:(int)aPort
+- (id)initWithPort:(NSUInteger)aPort
 {
        if (self = [super init])
        {
@@ -237,7 +237,7 @@ void SocketAcceptCallback(CFSocketRef socket,
 /**
  * Gets the port number
  */
-- (int)port
+- (NSUInteger)port
 {
        return port;
 }