зеркало из https://github.com/github/ruby.git
[ruby/json] Rename parse_float into parse_number
https://github.com/ruby/json/commit/e51e796697
This commit is contained in:
Родитель
c991f75c19
Коммит
58317328b6
|
@ -422,7 +422,7 @@ static const rb_data_type_t JSON_Parser_type;
|
|||
static char *JSON_parse_string(JSON_Parser *json, char *p, char *pe, VALUE *result);
|
||||
static char *JSON_parse_object(JSON_Parser *json, char *p, char *pe, VALUE *result, int current_nesting);
|
||||
static char *JSON_parse_value(JSON_Parser *json, char *p, char *pe, VALUE *result, int current_nesting);
|
||||
static char *JSON_parse_float(JSON_Parser *json, char *p, char *pe, VALUE *result);
|
||||
static char *JSON_parse_number(JSON_Parser *json, char *p, char *pe, VALUE *result);
|
||||
static char *JSON_parse_array(JSON_Parser *json, char *p, char *pe, VALUE *result, int current_nesting);
|
||||
|
||||
|
||||
|
@ -1149,7 +1149,7 @@ tr3:
|
|||
raise_parse_error("unexpected token at '%s'", p);
|
||||
}
|
||||
}
|
||||
np = JSON_parse_float(json, p, pe, result);
|
||||
np = JSON_parse_number(json, p, pe, result);
|
||||
if (np != NULL) {
|
||||
{p = (( np))-1;}
|
||||
}
|
||||
|
@ -1531,7 +1531,7 @@ enum {JSON_float_en_main = 1};
|
|||
#line 742 "parser.rl"
|
||||
|
||||
|
||||
static char *JSON_parse_float(JSON_Parser *json, char *p, char *pe, VALUE *result)
|
||||
static char *JSON_parse_number(JSON_Parser *json, char *p, char *pe, VALUE *result)
|
||||
{
|
||||
int cs = EVIL;
|
||||
bool is_float = false;
|
||||
|
|
|
@ -420,7 +420,7 @@ static const rb_data_type_t JSON_Parser_type;
|
|||
static char *JSON_parse_string(JSON_Parser *json, char *p, char *pe, VALUE *result);
|
||||
static char *JSON_parse_object(JSON_Parser *json, char *p, char *pe, VALUE *result, int current_nesting);
|
||||
static char *JSON_parse_value(JSON_Parser *json, char *p, char *pe, VALUE *result, int current_nesting);
|
||||
static char *JSON_parse_float(JSON_Parser *json, char *p, char *pe, VALUE *result);
|
||||
static char *JSON_parse_number(JSON_Parser *json, char *p, char *pe, VALUE *result);
|
||||
static char *JSON_parse_array(JSON_Parser *json, char *p, char *pe, VALUE *result, int current_nesting);
|
||||
|
||||
|
||||
|
@ -626,7 +626,7 @@ static char *JSON_parse_object(JSON_Parser *json, char *p, char *pe, VALUE *resu
|
|||
raise_parse_error("unexpected token at '%s'", p);
|
||||
}
|
||||
}
|
||||
np = JSON_parse_float(json, fpc, pe, result);
|
||||
np = JSON_parse_number(json, fpc, pe, result);
|
||||
if (np != NULL) {
|
||||
fexec np;
|
||||
}
|
||||
|
@ -741,7 +741,7 @@ static char *JSON_decode_integer(JSON_Parser *json, char *p, VALUE *result)
|
|||
) (^[0-9Ee.\-]? @exit ));
|
||||
}%%
|
||||
|
||||
static char *JSON_parse_float(JSON_Parser *json, char *p, char *pe, VALUE *result)
|
||||
static char *JSON_parse_number(JSON_Parser *json, char *p, char *pe, VALUE *result)
|
||||
{
|
||||
int cs = EVIL;
|
||||
bool is_float = false;
|
||||
|
|
Загрузка…
Ссылка в новой задаче