Fix rjp_parse signature
This commit is contained in:
parent
dd76bc9253
commit
e3d16e2112
@ -108,7 +108,7 @@ RJP_index rjp_escape_strlen(const char* str);
|
|||||||
|
|
||||||
/***************** GENERIC OPERATIONS *******************/
|
/***************** GENERIC OPERATIONS *******************/
|
||||||
//Convert C string consisting of json data into RJP's format
|
//Convert C string consisting of json data into RJP's format
|
||||||
RJP_value* rjp_parse(const char* str, RJP_parse_flag flags);
|
RJP_value* rjp_parse(const char* str, int flags);
|
||||||
//RJP_value* rjp_parse_chunked(const char* str, RJP_value* prev_chunk);
|
//RJP_value* rjp_parse_chunked(const char* str, RJP_value* prev_chunk);
|
||||||
char* rjp_to_json(const RJP_value* root, int pretty);
|
char* rjp_to_json(const RJP_value* root, int pretty);
|
||||||
|
|
||||||
|
|||||||
@ -499,7 +499,7 @@ static RJP_lex_category irjp_convert_comment(_Bool allow_comments){
|
|||||||
return rjp_lexcat_invalid;
|
return rjp_lexcat_invalid;
|
||||||
}
|
}
|
||||||
|
|
||||||
RJP_value* rjp_parse(const char* str, RJP_parse_flag flags){
|
RJP_value* rjp_parse(const char* str, int flags){
|
||||||
RJP_yacc_state state = {.column = 1,
|
RJP_yacc_state state = {.column = 1,
|
||||||
.row = 1,
|
.row = 1,
|
||||||
.allow_comments = (flags & RJP_PARSE_ALLOW_COMMENTS),
|
.allow_comments = (flags & RJP_PARSE_ALLOW_COMMENTS),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user