From ba31dbd50f6333e15544cf7266f51a93ed33517c Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Mon, 21 Nov 2022 20:41:11 +0100 Subject: [PATCH] decoder: document token lifetime in jsch_decode() --- include/libjsonschema/encoding.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/libjsonschema/encoding.h b/include/libjsonschema/encoding.h index 88c9952..f67bf45 100644 --- a/include/libjsonschema/encoding.h +++ b/include/libjsonschema/encoding.h @@ -83,6 +83,8 @@ struct jsch_token { * The decoder checks and validates the JSON structure. In other words, the * decoder will never return invalid token sequences (such as "]" without an * opening "["). + * + * The token remains valid until the next jsch_decode() call. */ int jsch_decode(struct jsch_decoder *dec, struct jsch_token *token); -- 2.45.2