From: Thomas Koenig <tkoenig@netcologne.de>
To: Janne Blomqvist <blomqvist.janne@gmail.com>
Cc: Fortran List <fortran@gcc.gnu.org>,
GCC Patches <gcc-patches@gcc.gnu.org>
Subject: Re: [Patch, libfortran] Type cleanup
Date: Tue, 12 Apr 2011 19:09:00 -0000 [thread overview]
Message-ID: <4DA4A35E.7070207@netcologne.de> (raw)
In-Reply-To: <BANLkTimDp9oi_hzK4GT0D8znNAGLZnsUNg@mail.gmail.com>
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
prev parent reply other threads:[~2011-04-12 19:09 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-12 18:51 Janne Blomqvist
2011-04-12 19:09 ` Thomas Koenig [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4DA4A35E.7070207@netcologne.de \
--to=tkoenig@netcologne.de \
--cc=blomqvist.janne@gmail.com \
--cc=fortran@gcc.gnu.org \
--cc=gcc-patches@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).