bug-gnulib
[Top][All Lists]
Advanced

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

Re: PRIuSIZE


From: Eric Blake
Subject: Re: PRIuSIZE
Date: Wed, 18 Aug 2010 07:05:31 -0600
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.7) Gecko/20100720 Fedora/3.1.1-1.fc13 Lightning/1.0b2pre Mnenhy/0.8.3 Thunderbird/3.1.1

[dropping libvirt, for now]

On 08/17/2010 05:28 PM, Bruno Haible wrote:
> Eric Blake wrote:
>> Here's where a cross-project change to GNU Coding Standards could be
>> helpful - if we all agree that gnulib should add the macro and gettext
>> should add the support for it at the same time, then it would be much
>> easier for all remaining GNU projects to take advantage of a
>> standardized name
> 
> Yes. And it will need either a POSIX change or a common GNU extension,
> because you will also need it implemented in glibc
> <http://sourceware.org/git/?p=glibc.git;a=blob;f=intl/loadmsgcat.c>.
> 
> That's certainly a thing you could propose to the Austin group.

Unfortunately, it won't go anywhere with the Austin group without prior
implementation practice; and even then it is unlikely.  Basically, since
%zu is already specified by C99 and POSIX, the only reason that you
would need PRIuSIZE is if you are targetting a non-POSIX system that
lacks %zu in the first place.  But if a platform already lacks %zu, what
makes you think they are going to have PRIuSIZE?

If we are going to have any luck standardizing it anywhere, it would
have to be in the GNU Coding Standards, since that is the only document
that specifically talks about portability issues to non-POSIX platforms
and can afford to invent extensions to C99 and POSIX that we are willing
to assume among all GNU projects.

-- 
Eric Blake   address@hidden    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]