mirror of
https://github.com/kgabis/parson.git
synced 2025-01-28 06:32:55 +08:00
Removes unnecessary SKIP_WHITESPACES.
This commit is contained in:
parent
f860d3dd1b
commit
0c04a7e678
2
parson.c
2
parson.c
@ -915,13 +915,11 @@ JSON_Value * json_parse_string_with_comments(const char *string) {
|
|||||||
remove_comments(string_mutable_copy, "/*", "*/");
|
remove_comments(string_mutable_copy, "/*", "*/");
|
||||||
remove_comments(string_mutable_copy, "//", "\n");
|
remove_comments(string_mutable_copy, "//", "\n");
|
||||||
string_mutable_copy_ptr = string_mutable_copy;
|
string_mutable_copy_ptr = string_mutable_copy;
|
||||||
SKIP_WHITESPACES(&string_mutable_copy_ptr);
|
|
||||||
result = parse_value((const char**)&string_mutable_copy_ptr, 0);
|
result = parse_value((const char**)&string_mutable_copy_ptr, 0);
|
||||||
parson_free(string_mutable_copy);
|
parson_free(string_mutable_copy);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* JSON Object API */
|
/* JSON Object API */
|
||||||
|
|
||||||
JSON_Value * json_object_get_value(const JSON_Object *object, const char *name) {
|
JSON_Value * json_object_get_value(const JSON_Object *object, const char *name) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user