Re: Module idx

2022-04-14 Thread Marc Nieper-Wißkirchen
Bruno, Paul, thank you for your responses. So for a universal solution, one would have to teach first the i18n toolchain how to interpret general PRIxxx macros. Am Mi., 13. Apr. 2022 um 09:05 Uhr schrieb Paul Eggert : > > On 4/12/22 02:12, Marc Nieper-Wißkirchen wrote: > > I am wondering how to

Re: Module idx

2022-04-13 Thread Paul Eggert
On 4/12/22 02:12, Marc Nieper-Wißkirchen wrote: I am wondering how to print (using printf) values of type idx_t reliably without assuming that idx_t == ptrdiff_t and without conversion to uintptr_t. I just use %td, as that works better with i18n. If we ever change idx_t to some other type

Re: Module idx

2022-04-12 Thread Bruno Haible
Hello Marc, > I am wondering how to print (using printf) values of type idx_t > reliably without assuming that idx_t == ptrdiff_t and without > conversion to uintptr_t. > > Would it make sense to add PRIxxx and SCNxxx macros (as those found in > inttypes.h) to idx.h? You can certainly add such

Module idx

2022-04-12 Thread Marc Nieper-Wißkirchen
I am wondering how to print (using printf) values of type idx_t reliably without assuming that idx_t == ptrdiff_t and without conversion to uintptr_t. Would it make sense to add PRIxxx and SCNxxx macros (as those found in inttypes.h) to idx.h? Thanks, Marc