Fix rjp_parse signature

This commit is contained in:
rexy712 2020-03-12 17:51:12 -07:00
parent dd76bc9253
commit e3d16e2112
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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),