Changed the existing docs build, where we maintain two headers i.e.
manpage.rst and pdfdoc.rst which include libxmp.rst, so the tricky
sed machinery is no longer needed. Also updated docs distfiles so
that style.css goes into the tarball.
Closes: https://github.com/libxmp/libxmp/issues/477
- return -XMP_ERROR_INVALID from xmp_load_module_from_memory() and
xmp_test_module_from_memory() if size <= 0, remove all mention of
size <= 0 from their documentation.
- remove non-positive sizes support from memio.c. whitespace tidy-ups.
- remove hio_size() <= 0 check from load.c::set_md5sum()
- remove file_len >= 0 checks from sample.c::libxmp_load_sample()
- document that the size parameter to xmp_load_module_from_file() is
actually ignored. (don't know whether it had ever mattered..)
Fixes: https://github.com/libxmp/libxmp/issues/325
Notes: hio.c::hio_open_file() doesn't fail if get_size() returns
negative: needs further check / handling.
To be used to retrieve errno upon receiving -XMP_ERROR_SYSTEM from
a libxmp function call. Useful when either libxmp or its client is
statically linked to libc.
Closes: https://github.com/libxmp/libxmp/issues/335