summaryrefslogtreecommitdiff
path: root/json_util.h
diff options
context:
space:
mode:
authorEric Haszlakiewicz <erh+git@nimenees.com>2020-06-27 15:32:19 +0000
committerEric Haszlakiewicz <erh+git@nimenees.com>2020-06-27 15:35:04 +0000
commit6eac6986c9a734b183e55a80e84fa67e58c637ff (patch)
treea5505815408175534e2206296ac5241156081f4c /json_util.h
parent84e6032883b507f16c877297da97927ea87811f1 (diff)
downloadjson-c-6eac6986c9a734b183e55a80e84fa67e58c637ff.tar.gz
Fix incremental parsing of invalid numbers with exponents, such as "0e+-" and "12.3E12E12", while still allowing "0e+" in non-strict mode.
Deprecate the json_parse_double() function from json_util.h
Diffstat (limited to 'json_util.h')
-rw-r--r--json_util.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/json_util.h b/json_util.h
index 7520f03..1f663e8 100644
--- a/json_util.h
+++ b/json_util.h
@@ -103,6 +103,9 @@ JSON_EXPORT const char *json_util_get_last_err(void);
/* these parsing helpers return zero on success */
JSON_EXPORT int json_parse_int64(const char *buf, int64_t *retval);
JSON_EXPORT int json_parse_uint64(const char *buf, uint64_t *retval);
+/**
+ * @deprecated
+ */
JSON_EXPORT int json_parse_double(const char *buf, double *retval);
/**