diff options
author | stuconnolly <stuart02@gmail.com> | 2009-08-26 21:18:28 +0000 |
---|---|---|
committer | stuconnolly <stuart02@gmail.com> | 2009-08-26 21:18:28 +0000 |
commit | 63c47d26eeed7e2602e0925cae8e7386963ce695 (patch) | |
tree | 99529d48c972af8348f5478930a4116e0cc608b0 /Frameworks/MCPKit/MCPFoundationKit/MCPConstants.h | |
parent | 082332ed69b7cfb2d11d1d45b848cb1fc393b3ca (diff) | |
download | sequelpro-63c47d26eeed7e2602e0925cae8e7386963ce695.tar.gz sequelpro-63c47d26eeed7e2602e0925cae8e7386963ce695.tar.bz2 sequelpro-63c47d26eeed7e2602e0925cae8e7386963ce695.zip |
Make the MCPkit framework truly 64 bit compatible by using the appropriate data types.
Diffstat (limited to 'Frameworks/MCPKit/MCPFoundationKit/MCPConstants.h')
-rw-r--r-- | Frameworks/MCPKit/MCPFoundationKit/MCPConstants.h | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/Frameworks/MCPKit/MCPFoundationKit/MCPConstants.h b/Frameworks/MCPKit/MCPFoundationKit/MCPConstants.h index d696dad7..816d68ca 100644 --- a/Frameworks/MCPKit/MCPFoundationKit/MCPConstants.h +++ b/Frameworks/MCPKit/MCPFoundationKit/MCPConstants.h @@ -27,38 +27,40 @@ // More info at <http://code.google.com/p/sequel-pro/> // Result type constants -typedef enum { +enum { MCPTypeArray = 1, MCPTypeDictionary = 2, MCPTypeFlippedArray = 3, MCPTypeFlippedDictionary = 4 -} MCPReturnType; +}; +typedef NSUInteger MCPReturnType; // Connection check constants -typedef enum { +enum { MCPConnectionCheckRetry = 0, MCPConnectionCheckReconnect = 1, MCPConnectionCheckDisconnect = 2 -} MCPConnectionCheck; +}; +typedef NSUInteger MCPConnectionCheck; // Charcater set mapping constants typedef struct _OUR_CHARSET { - unsigned int nr; + NSUInteger nr; const char *name; const char *collation; - unsigned int char_minlen; - unsigned int char_maxlen; + NSUInteger char_minlen; + NSUInteger char_maxlen; } OUR_CHARSET; // Deafult connection option -extern const unsigned int kMCPConnectionDefaultOption; +extern const NSUInteger kMCPConnectionDefaultOption; // Default socket (from the mysql.h used at compile time) extern const char *kMCPConnectionDefaultSocket; // Added to MySQL error code -extern const unsigned int kMCPConnectionNotInited; +extern const NSUInteger kMCPConnectionNotInited; // The length of the truncation if required -extern const unsigned int kLengthOfTruncationForLog; +extern const NSUInteger kLengthOfTruncationForLog; |