[PATCH] getpass: Do not check for nonnull prompt argument in Win32 implementation.

2020-09-12 Thread Ben Pfaff
The prompt parameter to getpass() is declared as nonnull (using a GCC nonnull attribute), but the implementation checks whether it is null in two places. GCC warns about this. This commit removes the checks, which don't appear in the Gnulib POSIX implementation or the glibc implementation. --- I

[PATCH 2/2] dfa: epsilon-closure tweaks (Bug#40634)

2020-09-12 Thread Paul Eggert
Rename BACKWORD to BACKWARD consistently. * lib/dfa.c (struct dfa): Reorder members to reduce fragmentation. (addtok_mb): Redo slightly to make it act more like a state machine. Check depth only when it increases. (epsclosure): Let the switch test the tokens. (dfaanalyze): Cache tindex. Simplify p

[PATCH 1/2] dfa: use backward set in removal of epsilon closure

2020-09-12 Thread Paul Eggert
From: Norihiro Tanaka When removing in epsilon closure, the code searched all nodes sequentially, and this was slow for some cases. Build a backward set before search, and only check previous position with the set. Problem reported in . * lib/dfa.c (struct dfa): New m

Re: parse-datetime: Fix compilation error with bison 3.7

2020-09-12 Thread Daiki Ueno
Bruno Haible writes: >> 2020-07-28 Bruno Haible >> >> parse-datetime: Fix compilation error with bison 3.7. >> * modules/parse-datetime (Makefile.am): Create a generated header file >> parse-datetime-gen.h in the source directory. Correct #include and >> #line statements d