mirror of
https://github.com/json-c/json-c.git
synced 2026-03-13 18:19:06 +08:00
Make _set_last_err() non-static so it can be used outside of json_util.c
This commit is contained in:
@@ -48,6 +48,8 @@ struct json_object
|
||||
void *_userdata;
|
||||
};
|
||||
|
||||
void _set_last_err(const char *err_fmt, ...);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -64,7 +64,6 @@
|
||||
static int sscanf_is_broken = 0;
|
||||
static int sscanf_is_broken_testdone = 0;
|
||||
static void sscanf_is_broken_test(void);
|
||||
static void _set_last_err(const char *err_fmt, ...);
|
||||
|
||||
static char _last_err[256] = "";
|
||||
|
||||
@@ -75,7 +74,7 @@ const char *json_util_get_last_err()
|
||||
return _last_err;
|
||||
}
|
||||
|
||||
static void _set_last_err(const char *err_fmt, ...)
|
||||
void _set_last_err(const char *err_fmt, ...)
|
||||
{
|
||||
va_list ap;
|
||||
va_start(ap, err_fmt);
|
||||
|
||||
Reference in New Issue
Block a user