docs: clarify ownership of jv arguments and results (#3627)
Before adoption: this commit came in with the history the project adopted, so no landing records it.
The ownership comment in `jv.h` currently says every `jv_*` function except `jv_copy` consumes its input. Several accessors and object-iteration functions borrow their arguments instead, which makes that guidance misleading for callers and language bindings. Document the borrowing exceptions beside their declarations, including numeric helpers and `jv_show`. Clarify that returned `jv` values are owned, while the pointers returned by `jv_string_value` and `jv_number_get_literal` belong to their input values. This changes comments only.
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
1 file+15 added−2 removed
- other:+15 added−2 removed