Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #32: Now using a convenient uniform gadget for the inner implem…
…entation for all library functions. * Added: An `output_gadget_t` struct * Added: Named constructor idioms for `output_gadget_t`, instead of the function wrappers we have before: For `putchar_()` output, buffer output, discarding/no output, and arbitrary function output. * Implementation functions no longer need to maintain and pass around the parameters `buffer`, `maxlen`, `idx` - these are part of the uniform output gadget * Implementation functions no longer need to increase the position within the output (`idx)`, nor return the increased value to their caller. * No longer need a dummy buffer of size 1, anywhere.
- Loading branch information