Thanks to visit codestin.com
Credit goes to github.com

Skip to content

json_error_max → JSON_ERROR_MAX #129

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion json.c
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ json_value * json_parse_ex (json_settings * settings,
size_t length,
char * error_buf)
{
char error [json_error_max];
char error [JSON_ERROR_MAX];
const json_char * end;
json_value * top, * root, * alloc = 0;
json_state state = { 0 };
Expand Down
3 changes: 2 additions & 1 deletion json.h
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,8 @@ typedef struct _json_value
json_value * json_parse (const json_char * json,
size_t length);

#define json_error_max 128
#define JSON_ERROR_MAX 128
#define json_error_max JSON_ERROR_MAX
json_value * json_parse_ex (json_settings * settings,
const json_char * json,
size_t length,
Expand Down