Source-Changes-D archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/sys/sys



On Tue, Feb 21, 2012 at 03:07:34PM +0400, Valeriy E. Ushakov wrote:
> > Log Message:
> > There are some places where C99 allows a restrict modifier (and posix
> > demands it), but C++ does not allow it. So add a C only version of
> > __restrict, which expands to nothing if compiling C++.
> > See http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49347 for a discussion.
> 
> That feels bogus.  What's wrong with with replacing [restrict] with
> equivalent *restrict syntax that is also valid for C++?

I would prefer to keep it as close to the posix standard as possible -
but otherwise nothing is realy wrong with that  (assuming I don't have
to figure out the right sequence of stars and modifiers ;-})

Martin


Home | Main Index | Thread Index | Old Index