[PATCH] xstrtoimax, xstrtoumax: depend on inttypes-incomplete

2022-01-23 Thread Paul Eggert
This fixes a call to strtoimax without declaring it, and similarly for strtoumax. * lib/xstrtoimax.c, lib/xstrtoumax.c (XSTRTOL_INCLUDE_INTTYPES_H): Define, so that strtoimax and strtoumax are declared. * lib/xstrtol.c [XSTRTOL_INCLUDE_INTTYPES_H]: Include inttypes.h. * modules/xstrtoimax, modules/

Re: [PATCH] alignalloc, xalignalloc: new modules

2022-01-23 Thread Paul Eggert
On 1/23/22 16:52, Bruno Haible wrote: - With aligned-malloc, the alignment is a compile-time constant. Whereas with alignalloc, it is passed at runtime. Yes, for the application I'm concerned about now (coreutils), runtime alignment is needed. I tried pagealign_alloc but found a cou

Re: [PATCH] alignalloc, xalignalloc: new modules

2022-01-23 Thread Bruno Haible
Hi Paul, How does this compare with the existing 'aligned-malloc' module? AFAICS, - With aligned-malloc, the alignment is a compile-time constant. Whereas with alignalloc, it is passed at runtime. - aligned-malloc returns non-NULL, except when out-of-memory. Is that true also for alig

[PATCH] alignalloc, xalignalloc: new modules

2022-01-23 Thread Paul Eggert
* lib/alignalloc.c, lib/alignalloc.h, lib/xalignalloc.c: * m4/alignalloc.m4, modules/alignalloc, modules/alignalloc-tests: * modules/xalignalloc, tests/test-alignalloc.c: New files. --- ChangeLog| 8 +++ lib/alignalloc.c | 121 +++ lib/

Re: Gnulib-related problems building Bison from git

2022-01-23 Thread Akim Demaille
Hi Paul, > Le 15 janv. 2022 à 20:51, Paul Eggert a écrit : > > I can't build Bison from Savannah git. See attached transcript, which ends: > > GEN lib/inttypes.h > make: *** No rule to make target 'textstyle.h', needed by 'all'. Stop. > > The Makefile (also attached) has a rule to build