lib.[ch], dvd-sector-copy.c: Publish the `buf' machinery as inline functions.
authorMark Wooding <mdw@distorted.org.uk>
Fri, 8 Apr 2022 14:31:24 +0000 (15:31 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Fri, 8 Apr 2022 14:34:58 +0000 (15:34 +0100)
commitc62cd11a8bcfdacd01498ee08da82b2afa4b2f25
treef62d8061ea1f18bb23ead5c0ae35d830ec8c20a5
parent42c936a1884d40b6679ba9f7f80bf308c5fb1f7f
lib.[ch], dvd-sector-copy.c: Publish the `buf' machinery as inline functions.

Translate the macros into inline functions, and export them from
`lib.h', with some minor tweaking.

  * I've added `buf_putz', and fixed `buf_putc' to advance the output
    pointer as one would expect.

  * I've pulled the actual buffer extension into an out-of-line
    function.
dvd-sector-copy.c
lib.c
lib.h