summaryrefslogtreecommitdiff
path: root/ext/json/parser
diff options
context:
space:
mode:
-rw-r--r--ext/json/parser/parser.c6
-rw-r--r--ext/json/parser/parser.rl6
2 files changed, 6 insertions, 6 deletions
@@ -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_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);
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)
{
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_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);
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)
{
int cs = EVIL;
bool is_float = false;