Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new type cJSON_Invalid #108

Merged
merged 5 commits into from
Feb 15, 2017
Merged

Add new type cJSON_Invalid #108

merged 5 commits into from
Feb 15, 2017

Conversation

FSMaxB
Copy link
Collaborator

@FSMaxB FSMaxB commented Feb 15, 2017

cJSON_Invalid is equivalent to 0.

This also cleans up the tests and starts changing parsing functions to not modify item before the input is successfully parsed.

This assigns the macro cJSON_Invalid to 0.
This sets the type of an item only if parsing was successful.

This means that in case of failure, the item's type will remain to be
cJSON_Invalid.
@FSMaxB FSMaxB merged commit 57d105d into master Feb 15, 2017
@FSMaxB FSMaxB deleted the cJSON_Invalid branch February 16, 2017 11:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant