Re: Node to first or last element of a sequential list in module list/xlist

2021-04-04 Thread Bruno Haible
[Adding back bug-gnulib in CC.] Hi Marc, > > Yes, some algorithms need a second, temporary list. Not all algorithms > > can be written to use the original list, be efficient in O() terms, and > > be implementation-independent. > > > > Is there a fundamental reason why a list walking algorithm th

Re: [PATCH] m4/pthread-cond.m4: fix build without threads

2021-04-04 Thread Bruno Haible
Hi, Fabrice Fontaine wrote: > HAVE_PTHREAD_COND_xxx variables are wrongly set to 1 instead of 0 if > HAVE_PTHREAD_H is set to 0 since > https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=e08989ca11a13c8a09cb0c34f797af5a40753379 Indeed, that's obviously a copy&paste mistake. > This will resu

replacement for 'join'?

2021-04-04 Thread Bruno Haible
Alpine Linux does not have the 'join' program. The GCS [1] don't list it among the essential utilities. So, what kind of replacement for it would you recommend? My use-case is join -v 1 FILE1 FILE2 Bruno [1] https://www.gnu.org/prep/standards/html_node/Utilities-in-Makefiles.html

[PATCH] m4/pthread-cond.m4: fix build without threads

2021-04-04 Thread Fabrice Fontaine
HAVE_PTHREAD_COND_xxx variables are wrongly set to 1 instead of 0 if HAVE_PTHREAD_H is set to 0 since https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=e08989ca11a13c8a09cb0c34f797af5a40753379 This will result in the following build failure if threads are not available, for example with core

Re: remove xgetdomainname module from Gnulib?

2021-04-04 Thread Simon Josefsson via Gnulib discussion list
Paul Eggert writes: > On 4/2/21 8:32 AM, Paul Eggert wrote: >> I can fix it by removing the divergence. > > I did that by installing the attached, which causes xgetdomainname.c > to be a couple of #defines followed by "#include "xgethostname.c". Thank you! /Simon signature.asc Description: PG

backupfile, backup-rename: Trim dependencies

2021-04-04 Thread Bruno Haible
The module 'backupfile' has a couple of unneeded dependencies. This patch fixes it. 2021-04-04 Bruno Haible backupfile, backup-rename: Trim dependencies. * lib/backupfile.h: Add comment. * lib/backupfile.c: Include , for readdir() declaration. * modules/backup-

[PATCH 1/1] hamt: Document the module in the Gnulib manual.

2021-04-04 Thread Marc Nieper-Wißkirchen
From: Marc Nieper-Wißkirchen Suggested by Bruno Haible in . * doc/containers.texi: Add a subsection to section 15.11 Container data types. * lib/hamt.h: Improve documentation on how Hamt_entry is supposed to be used. --- Change