Skip to content

Commit 51d2ada

Browse files
committed
Rename parameters.
1 parent 853e961 commit 51d2ada

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

json_parser.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -866,23 +866,23 @@ static int __set_json_value(int type, va_list ap, json_value_t *val)
866866
return 0;
867867
}
868868

869-
json_value_t *json_value_parse(const char *doc)
869+
json_value_t *json_value_parse(const char *cursor)
870870
{
871871
json_value_t *val;
872872

873873
val = (json_value_t *)malloc(sizeof (json_value_t));
874874
if (!val)
875875
return NULL;
876876

877-
while (isspace(*doc))
878-
doc++;
877+
while (isspace(*cursor))
878+
cursor++;
879879

880-
if (__parse_json_value(doc, &doc, 0, val) >= 0)
880+
if (__parse_json_value(cursor, &cursor, 0, val) >= 0)
881881
{
882-
while (isspace(*doc))
883-
doc++;
882+
while (isspace(*cursor))
883+
cursor++;
884884

885-
if (*doc == '\0')
885+
if (*cursor == '\0')
886886
return val;
887887

888888
__destroy_json_value(val);

json_parser.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ extern "C"
2020
{
2121
#endif
2222

23-
json_value_t *json_value_parse(const char *doc);
23+
json_value_t *json_value_parse(const char *text);
2424
json_value_t *json_value_create(int type, ...);
2525
void json_value_destroy(json_value_t *val);
2626

0 commit comments

Comments
 (0)