[Top][All Lists]

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

Re: Question about portability guidelines

From: Paul Eggert
Subject: Re: Question about portability guidelines
Date: Mon, 2 Jan 2017 16:09:59 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1

Bruno Haible wrote:
I would vote for removing this sentence "Gnulib code can assume that standard
internal types like size_t are no wider than long." The fix is easy nowadays
(since MSVC now has <stdint.h>): Use intptr_t or ptrdiff_t or size_t as

It's not that easy for code that wants to print such integers, as %ld doesn't suffice on MinGW and older POSIXish libraries don't support %jd etc. Perhaps once Gnulib assumes C99-or-later libraries, and once somebody goes through all the Gnulib code and checks it. In the meantime we should probably leave something like that sentence in there, although we should warn people about the MSVC issues. I installed the attached to try to do that, and to try to clarify the issues about C89 vs C99 vs C11 that were in Paul's question.

Attachment: 0001-doc-modernize-for-C11-etc.patch
Description: Text Data

reply via email to

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