This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: restrict in c99
- From: Nathan Sidwell <nathan at codesourcery dot com>
- To: Mike Stump <mrs at apple dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Fri, 06 Feb 2004 17:51:51 +0000
- Subject: Re: restrict in c99
- Organization: Codesourcery LLC
- References: <7944A5E0-58CB-11D8-A95F-003065BDF310@apple.com>
Mike Stump wrote:
Is there any valid spelling for:
int regexec(int [] restrict);
that involves using [] and not *?
In spirit it almost seemed like there should be, but I don't see the
latitude in n843.
int regexec(int [restrict])
C99 6.7.5.2 says words to the effect of 'static, restrict, const and
volatile can appear inside the outermost[] of an array parameter'
the qualifiers are applied to the decayed pointer type and static can be
used to mean 'at least this many elements' as in
void foo (double a[static 10])
nathan
--
Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery LLC
nathan@codesourcery.com :: http://www.planetfall.pwp.blueyonder.co.uk