Skip to content

Commit e51e796

Browse files
committed
Rename parse_float into parse_number
1 parent 0c0e093 commit e51e796

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

ext/json/ext/parser/parser.c

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ext/json/ext/parser/parser.rl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ static const rb_data_type_t JSON_Parser_type;
420420
static char *JSON_parse_string(JSON_Parser *json, char *p, char *pe, VALUE *result);
421421
static char *JSON_parse_object(JSON_Parser *json, char *p, char *pe, VALUE *result, int current_nesting);
422422
static char *JSON_parse_value(JSON_Parser *json, char *p, char *pe, VALUE *result, int current_nesting);
423-
static char *JSON_parse_float(JSON_Parser *json, char *p, char *pe, VALUE *result);
423+
static char *JSON_parse_number(JSON_Parser *json, char *p, char *pe, VALUE *result);
424424
static char *JSON_parse_array(JSON_Parser *json, char *p, char *pe, VALUE *result, int current_nesting);
425425

426426

@@ -626,7 +626,7 @@ static char *JSON_parse_object(JSON_Parser *json, char *p, char *pe, VALUE *resu
626626
raise_parse_error("unexpected token at '%s'", p);
627627
}
628628
}
629-
np = JSON_parse_float(json, fpc, pe, result);
629+
np = JSON_parse_number(json, fpc, pe, result);
630630
if (np != NULL) {
631631
fexec np;
632632
}
@@ -741,7 +741,7 @@ static char *JSON_decode_integer(JSON_Parser *json, char *p, VALUE *result)
741741
) (^[0-9Ee.\-]? @exit ));
742742
}%%
743743

744-
static char *JSON_parse_float(JSON_Parser *json, char *p, char *pe, VALUE *result)
744+
static char *JSON_parse_number(JSON_Parser *json, char *p, char *pe, VALUE *result)
745745
{
746746
int cs = EVIL;
747747
bool is_float = false;

0 commit comments

Comments
 (0)