akheron / jansson

C library for encoding, decoding and manipulating JSON data
http://www.digip.org/jansson/
Other
3.05k stars 808 forks source link

Fix the read callback, function prototype #622

Closed dittonedo45 closed 2 years ago

dittonedo45 commented 2 years ago

Set the json_load_callback_t prototype, the usual way liket that of read(int, void*, size_t);

Mephistophiles commented 2 years ago

This is major changes. Is there any additional profit for these changes other than cosmetic ones? Otherwise, all users of this library will must change all the places where this callback is used.

This code is not formatted with clang-format (./scripts/clang-format )