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 *******************/
|
||||
//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);
|
||||
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;
|
||||
}
|
||||
|
||||
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,
|
||||
.row = 1,
|
||||
.allow_comments = (flags & RJP_PARSE_ALLOW_COMMENTS),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user