Hi Janne,

the attached patch does a bit of janitorial type cleanup for the
library. It replaces the use of ssize_t with ptrdiff_t or index_type
where appropriate; this is entirely for documentation purposes, as on
all targets we support ssize_t == ptrdiff_t.

ssize_t is a POSIX type used in the IO functions, and refers to the
size of an object or -1 for an error (hence there is SSIZE_MAX but not
SSIZE_MIN).

ptrdiff_t is a C89 type which is the result of subtracting two
pointers; hence it's also the "natural" type for array indexes.

Regtested on x86_64-unknown-linux-gnu, Ok for trunk?

OK.  Thanks for the patch!

        Thomas

Reply via email to