This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Patch, libfortran] Type cleanup


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]