This is the mail archive of the newlib@sourceware.org mailing list for the newlib 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 64bit] ssize_t


On Wed, 20 Feb 2013, Eric Blake wrote:

> If only gcc had given us __SSIZE_TYPE__ to begin with.  We could
> generate __SIZE_TYPE__ from __SSIZE_TYPE__ (slap on an unsigned); but
> once the unsigned is there, there is no way in C preprocessor to pull it
> back out.

#define unsigned signed before the typedef, #undef unsigned after it, 
exactly as done in GCC's format-checking testsuite to get the signed type 
corresponding to size_t.

-- 
Joseph S. Myers
joseph@codesourcery.com


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