[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug-diffutils] bug#24311: bug#24311: [PATCH] maint: accommodate LP64 sy
From: |
Peter Rosin |
Subject: |
[bug-diffutils] bug#24311: bug#24311: [PATCH] maint: accommodate LP64 systems |
Date: |
Sun, 28 Aug 2016 00:49:06 +0200 |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 |
On 2016-08-27 00:24, Paul Eggert wrote:
> The main sticking point in this particular case is support for printf
> formats like %td. This requires library support, which in practice
> trails behind compiler support. We can reasonably ask people to use a
> C99ish compiler even when running on older platforms (just install GCC).
> It hasn't been so easy to insist on a C99ish C library.
*snip*
> PRI?PTR are not the right macros to use here. The values in question are
> of type ptrdiff_t, and ptrdiff_t != intptr_t on some (admittedly
> unusual) platforms.
Are you trying to argue that there exist some non-theoretical system,
where it's useful to actually run diffutils, and where both
intptr_t < long int and
intptr_t < ptrdiff_t
holds? (i.e. a system that would regress with the patch)
Because if there is no such system, then PRIdPTR w/ intptr_t will work
better than %ld w/ long int (pending the time when %td w/ ptrdiff_t is
generally available).
Cheers,
Peter
- [bug-diffutils] bug#24311: bug#24311: bug#24311: [PATCH] maint: accommodate LP64 systems, (continued)
- [bug-diffutils] bug#24311: bug#24311: bug#24311: [PATCH] maint: accommodate LP64 systems, Eric Blake, 2016/08/26
- [bug-diffutils] bug#24311: bug#24311: [PATCH] maint: accommodate LP64 systems, Peter Rosin, 2016/08/26
- [bug-diffutils] bug#24311: bug#24311: bug#24311: [PATCH] maint: accommodate LP64 systems, Peter Rosin, 2016/08/28
- [bug-diffutils] bug#24311: bug#24311: bug#24311: [PATCH] maint: accommodate LP64 systems, Paul Eggert, 2016/08/28
- Message not available
- Message not available
- Message not available
- [bug-diffutils] bug#24311: bug#24311: bug#24311: bug#24311: [PATCH] maint: accommodate LP64 systems, Paul Eggert, 2016/08/30
- Message not available
- [bug-diffutils] bug#24311: bug#24311: bug#24311: bug#24311: [PATCH] maint: accommodate LP64 systems, Paul Eggert, 2016/08/30
- [bug-diffutils] bug#24311: bug#24311: [PATCH] maint: accommodate LP64 systems,
Peter Rosin <=
- [bug-diffutils] bug#24311: bug#24311: [PATCH] maint: accommodate LP64 systems, Paul Eggert, 2016/08/27