diff --git a/include/rjp.h b/include/rjp.h index 0b0b4c9..72f2cee 100644 --- a/include/rjp.h +++ b/include/rjp.h @@ -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); diff --git a/src/input.c b/src/input.c index 72dce14..c66df9d 100644 --- a/src/input.c +++ b/src/input.c @@ -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),