This is the mail archive of the
mailing list for the newlib project.
Re: Patch - Add restrict to wchar.h
- From: Joel Sherrill <joel dot sherrill at oarcorp dot com>
- To: newlib at sourceware dot org
- Date: Tue, 26 Nov 2013 08:42:22 -0600
- Subject: Re: Patch - Add restrict to wchar.h
- Authentication-results: sourceware.org; auth=none
- References: <529369D3 dot 8020807 at oarcorp dot com> <20131126140614 dot GP19584 at calimero dot vinschen dot de>
On 11/26/2013 8:06 AM, Corinna Vinschen wrote:
> On Nov 25 09:16, Joel Sherrill wrote:
>> This should be the last big patch in the add restrict series from
>> Google Code-In students.
>> This one is large and, although I think it is correct, there is
>> plenty of room for errors. It is a fairly large but monotonous
>> As best we can tell, newlib has all the wchar.h methods which
>> should have restrict added except wcsxfrm_l().
>> Let me know if this is OK to commit or needs revision.
> Looks good to me. Please apply.
> While we're at the end of the restrict marathon for the POSIX API,
> I'm wondering if we shouldn't apply the same change to the
> reentrant API.
> Otherwise the advantage of the restrict keyword, probably smaller
> and probably faster code, is gone as soon as the the POSIX API
> calls the underlying reentrant functions, and it's not available at
> all for external callers of the reentrant API, isn't it?
If you produce a list of methods, then we would be happy to create
a Google Code-In task for the work. :)
FYI high school students performed over 300 tasks for 10 FOSS projects
in one week.
Joel Sherrill, Ph.D. Director of Research & Development
joel.sherrill@OARcorp.com On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35805
Support Available (256) 722-9985