Skip to content

Commit

Permalink
Updated jsonlite version & amalgamate files
Browse files Browse the repository at this point in the history
  • Loading branch information
amamchur committed Sep 11, 2014
1 parent 6f3e4b1 commit 8863d86
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion amalgamated/jsonlite/jsonlite.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
// See the License for the specific language governing permissions and
// limitations under the License

const char *jsonlite_version = "1.2.0";
const char *jsonlite_version = "1.2.1";
//
// Copyright 2012-2014, Andrii Mamchur
//
Expand Down
3 changes: 3 additions & 0 deletions amalgamated/jsonlite/jsonlite.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ extern "C" {
size_t jsonlite_buffer_size(jsonlite_buffer buffer);

#define jsonlite_static_buffer_size() (sizeof(jsonlite_buffer_struct))
#define jsonlite_static_buffer_size_ext(max_token_size, chunk_size) \
(sizeof(jsonlite_buffer_struct) + MAX(2 * (max_token_size), (max_token_size) + (chunk_size)))

jsonlite_buffer jsonlite_static_buffer_init(void *mem, size_t size);

#define jsonlite_heap_buffer_size() (sizeof(jsonlite_buffer_struct))
Expand Down
2 changes: 1 addition & 1 deletion jsonlite/src/jsonlite.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
// See the License for the specific language governing permissions and
// limitations under the License

const char *jsonlite_version = "1.2.0";
const char *jsonlite_version = "1.2.1";
2 changes: 1 addition & 1 deletion tests/JsonLiteObjCCoverageTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ - (void)testMaxLong {

- (void)testVersion {
NSString *version = [JsonLiteObjC version];
XCTAssertEqualObjects(version, @"1.2.0", @"Incorrect version");
XCTAssertEqualObjects(version, @"1.2.1", @"Incorrect version");
}

@end

0 comments on commit 8863d86

Please sign in to comment.