summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Haszlakiewicz <erh+git@nimenees.com>2020-04-18 02:42:46 +0000
committerEric Haszlakiewicz <erh+git@nimenees.com>2020-04-18 02:42:46 +0000
commit0a95f98b8dc608bdcea9ed528ed8fc7e803f1a1a (patch)
treef3d134748d7010f651252e51db9e3c08b2681553
parentecb9354bb147046531c4727a575ffd98b93df51e (diff)
downloadjson-c-0a95f98b8dc608bdcea9ed528ed8fc7e803f1a1a.tar.gz
Explicitly mark several things in json_tokener deprecated.
-rw-r--r--json_tokener.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/json_tokener.h b/json_tokener.h
index 407e937..2e77d19 100644
--- a/json_tokener.h
+++ b/json_tokener.h
@@ -43,6 +43,9 @@ enum json_tokener_error
json_tokener_error_size
};
+/**
+ * @deprecated Don't use this outside of json_tokener.c, it will be made private in a future release.
+ */
enum json_tokener_state
{
json_tokener_state_eatws,
@@ -72,6 +75,9 @@ enum json_tokener_state
json_tokener_state_inf
};
+/**
+ * @deprecated Don't use this outside of json_tokener.c, it will be made private in a future release.
+ */
struct json_tokener_srec
{
enum json_tokener_state state, saved_state;
@@ -91,13 +97,19 @@ struct json_tokener_srec
*/
struct json_tokener
{
+ /**
+ * @deprecated Do not access any of these fields outside of json_tokener.c
+ */
char *str;
struct printbuf *pb;
int max_depth, depth, is_double, st_pos;
/**
- * See json_tokener_get_parse_end()
+ * @deprecated See json_tokener_get_parse_end() instead.
*/
int char_offset;
+ /**
+ * @deprecated See json_tokener_get_error() instead.
+ */
enum json_tokener_error err;
unsigned int ucs_char;
char quote_char;