[PATCH v1 1/4] lib: introduce json_tree_snprint_path

Vladimir Davydov vdavydov.dev at gmail.com
Thu Dec 27 21:51:58 MSK 2018


On Thu, Dec 27, 2018 at 02:15:52PM +0300, Kirill Shcherbatov wrote:
> +int
> +json_tree_snprint_path(char *buf, int size, const struct json_token *root,
> +		       const struct json_token *token, int index_base)

I guess you were right and I was wrong after all - if we require to pass
the root to this routine, we'll have to pass tuple_format to
tuple_field_path(), which will look rather awkward. I removed the root
argument altogether and pushed the patch to 2.1.



More information about the Tarantool-patches mailing list