Skip to content

Commit 8026295

Browse files
committed
Merge branch 'master' of https://github.com/jcbertin/JSONKit into jcbertin-master
2 parents af435a5 + 76c1928 commit 8026295

File tree

4 files changed

+281
-105
lines changed

4 files changed

+281
-105
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.svn

JSONKit/JSONKit.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,9 @@ typedef unsigned int NSUInteger;
9595
#ifndef _JSONKIT_H_
9696
#define _JSONKIT_H_
9797

98+
// You can define JK_REMOVE_DEPRECATED to remove all deprecated stuff
99+
//#define JK_REMOVE_DEPRECATED
100+
98101
#if defined(__GNUC__) && (__GNUC__ >= 4) && defined(__APPLE_CC__) && (__APPLE_CC__ >= 5465)
99102
#define JK_DEPRECATED_ATTRIBUTE __attribute__((deprecated))
100103
#else
@@ -148,12 +151,14 @@ typedef struct JKParseState JKParseState; // Opaque internal, private type.
148151
- (id)initWithParseOptions:(JKParseOptionFlags)parseOptionFlags;
149152
- (void)clearCache;
150153

154+
#ifndef JK_REMOVE_DEPRECATED
151155
// The parse... methods were deprecated in v1.4 in favor of the v1.4 objectWith... methods.
152156
- (id)parseUTF8String:(const unsigned char *)string length:(size_t)length JK_DEPRECATED_ATTRIBUTE; // Deprecated in JSONKit v1.4. Use objectWithUTF8String:length: instead.
153157
- (id)parseUTF8String:(const unsigned char *)string length:(size_t)length error:(NSError **)error JK_DEPRECATED_ATTRIBUTE; // Deprecated in JSONKit v1.4. Use objectWithUTF8String:length:error: instead.
154158
// The NSData MUST be UTF8 encoded JSON.
155159
- (id)parseJSONData:(NSData *)jsonData JK_DEPRECATED_ATTRIBUTE; // Deprecated in JSONKit v1.4. Use objectWithData: instead.
156160
- (id)parseJSONData:(NSData *)jsonData error:(NSError **)error JK_DEPRECATED_ATTRIBUTE; // Deprecated in JSONKit v1.4. Use objectWithData:error: instead.
161+
#endif
157162

158163
// Methods that return immutable collection objects.
159164
- (id)objectWithUTF8String:(const unsigned char *)string length:(NSUInteger)length;

0 commit comments

Comments
 (0)