3 ms·
> I thought this was standard practice for designing C APIs taking callbacks. This is to supplant non-reentrant shared state for node depth. Same as strtok() -
by kevin_thibedeau 7y ago
> I thought this was standard practice for designing C APIs taking callbacks.
This is to supplant non-reentrant shared state for node depth. Same as strtok() -> strtok_r(). Doing this with the generic closure arg is just a bonus since the callback is already present.