1.3.1: Fixes size_t conversion on x64 systems. Excluding build/ in .gitignore. (#177)

* Fixing size_t conversion on x64 systems. Excluding build/ in .gitignore.

* 1.3.1: Increments version.

Co-authored-by: Krzysztof Gabis <kgabis@gmail.com>
This commit is contained in:
Cristian Pop 2022-02-24 11:22:46 -08:00 committed by GitHub
parent 4bd5797811
commit 4158fdbea7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 9 additions and 8 deletions

1
.gitignore vendored
View File

@ -5,3 +5,4 @@ testcpp
tests/test_2_serialized.txt tests/test_2_serialized.txt
tests/test_2_serialized_pretty.txt tests/test_2_serialized_pretty.txt
test_hash_collisions test_hash_collisions
build/**

View File

@ -3,7 +3,7 @@ project(parson C)
include (GNUInstallDirs) include (GNUInstallDirs)
set(PARSON_VERSION 1.3.0) set(PARSON_VERSION 1.3.1)
add_library(parson parson.c) add_library(parson parson.c)
target_include_directories(parson PUBLIC $<INSTALL_INTERFACE:include>) target_include_directories(parson PUBLIC $<INSTALL_INTERFACE:include>)

View File

@ -1,6 +1,6 @@
{ {
"name": "parson", "name": "parson",
"version": "1.3.0", "version": "1.3.1",
"repo": "kgabis/parson", "repo": "kgabis/parson",
"description": "Small json parser and reader", "description": "Small json parser and reader",
"keywords": [ "json", "parser" ], "keywords": [ "json", "parser" ],

View File

@ -1,7 +1,7 @@
/* /*
SPDX-License-Identifier: MIT SPDX-License-Identifier: MIT
Parson 1.3.0 (https://github.com/kgabis/parson) Parson 1.3.1 (https://github.com/kgabis/parson)
Copyright (c) 2012 - 2022 Krzysztof Gabis Copyright (c) 2012 - 2022 Krzysztof Gabis
Permission is hereby granted, free of charge, to any person obtaining a copy Permission is hereby granted, free of charge, to any person obtaining a copy
@ -32,7 +32,7 @@
#define PARSON_IMPL_VERSION_MAJOR 1 #define PARSON_IMPL_VERSION_MAJOR 1
#define PARSON_IMPL_VERSION_MINOR 3 #define PARSON_IMPL_VERSION_MINOR 3
#define PARSON_IMPL_VERSION_PATCH 0 #define PARSON_IMPL_VERSION_PATCH 1
#if (PARSON_VERSION_MAJOR != PARSON_IMPL_VERSION_MAJOR)\ #if (PARSON_VERSION_MAJOR != PARSON_IMPL_VERSION_MAJOR)\
|| (PARSON_VERSION_MINOR != PARSON_IMPL_VERSION_MINOR)\ || (PARSON_VERSION_MINOR != PARSON_IMPL_VERSION_MINOR)\
@ -596,7 +596,7 @@ static JSON_Status json_object_add(JSON_Object *object, char *name, JSON_Value *
static JSON_Value * json_object_getn_value(const JSON_Object *object, const char *name, size_t name_len) { static JSON_Value * json_object_getn_value(const JSON_Object *object, const char *name, size_t name_len) {
unsigned long hash = 0; unsigned long hash = 0;
parson_bool_t found = PARSON_FALSE; parson_bool_t found = PARSON_FALSE;
unsigned long cell_ix = 0; size_t cell_ix = 0;
size_t item_ix = 0; size_t item_ix = 0;
if (!object || !name) { if (!object || !name) {
return NULL; return NULL;

View File

@ -1,7 +1,7 @@
/* /*
SPDX-License-Identifier: MIT SPDX-License-Identifier: MIT
Parson 1.3.0 (https://github.com/kgabis/parson) Parson 1.3.1 (https://github.com/kgabis/parson)
Copyright (c) 2012 - 2022 Krzysztof Gabis Copyright (c) 2012 - 2022 Krzysztof Gabis
Permission is hereby granted, free of charge, to any person obtaining a copy Permission is hereby granted, free of charge, to any person obtaining a copy
@ -36,9 +36,9 @@ extern "C"
#define PARSON_VERSION_MAJOR 1 #define PARSON_VERSION_MAJOR 1
#define PARSON_VERSION_MINOR 3 #define PARSON_VERSION_MINOR 3
#define PARSON_VERSION_PATCH 0 #define PARSON_VERSION_PATCH 1
#define PARSON_VERSION_STRING "1.3.0" #define PARSON_VERSION_STRING "1.3.1"
#include <stddef.h> /* size_t */ #include <stddef.h> /* size_t */