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

Provide case sensitive versions of all functions #158

Merged
merged 8 commits into from
May 1, 2017
Merged

Conversation

FSMaxB
Copy link
Collaborator

@FSMaxB FSMaxB commented May 1, 2017

This adds the functions cJSON_DetachItemFromObjectCaseSensitive, cJSON_DeleteItemFromObjectCaseSensitive and cJSON_ReplaceItemInObjectCaseSensitive.

It also adds the functions cJSON_DetachItemViaPointer and cJSON_ReplaceItemViaPointer in order to share code internally and not having to search for an array index or object item anymore but allowing direct action on the pointer.

{
newitem->prev->next = newitem;
Copy link
Collaborator Author

@FSMaxB FSMaxB May 1, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This even looks like a possible null pointer dereference.

@FSMaxB FSMaxB merged commit a1a860c into develop May 1, 2017
@FSMaxB FSMaxB deleted the case-sensitive branch May 1, 2017 23:29
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.

None yet

1 participant