[PATCH] Improve sc_useless_cpp_parens

2017-04-29 Thread Tim Rühsen
Hi, just found that sc_useless_cpp_parens doesn't catch #elif and doesn't catch tabulator indentation (which I use here and there). I attached a def.txt where the patched versions detects each line, the original one misses a few. Please feel free to amend the commit message regarding your

Re: strerror_r breakage on mingw

2017-04-29 Thread Bruno Haible
> 2017-04-23 Bruno Haible > > Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R. > * modules/strerror_r-posix (configure.ac): Invoke gl_MODULE_INDICATOR. > * lib/error.c: Test GNULIB_STRERROR_R_POSIX before testing >

stat: fix time_t values and other problems on native Windows

2017-04-29 Thread Bruno Haible
2017-04-29 Bruno Haible stat: Fix time_t values and other problems on native Windows platforms. * doc/posix-functions/stat.texi: Mention the problem with the Microsoft implementations of stat(). * lib/stat.c: Include filename.h instead of

fstat: fix time_t values on native Windows

2017-04-29 Thread Bruno Haible
Per the discussion in the thread of . 2017-04-29 Bruno Haible fstat: Fix time_t values on native Windows platforms. * doc/posix-functions/fstat.texi: Mention the problem with st_*time.

Re: what shall we do with the drunken time_t ?

2017-04-29 Thread Bruno Haible
I had written: > Results === > (I am in CEST, i.e. GMT+1 with DST since end of March.) > > A file last touched on 2016-11-27 18:32 GMT: > $ ls -l t.tar > -rw-r--r-- 1 bruno None 10240 Nov 27 19:32 t.tar > > Cygwin: > mtime = 17132 18 1920

Re: getopt _getopt_internal declaration clash on Solaris 5.10

2017-04-29 Thread Paul Eggert
Thanks for the heads-up. I installed the attached Gnulib patch, which I hope fix things. Please give it a try. From f3f95f863f63eec80bfe4228719fb0afada5fa05 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sat, 29 Apr 2017 11:09:39 -0700 Subject: [PATCH] getopt: port to

strerror_r-posix: fixes for MSVC 14

2017-04-29 Thread Bruno Haible
This patch fixes two problems with MSVC 14 support in module 'strerror_r-posix': 1) The function local_snprintf uses va_list, va_start, va_end, without including the required header . 2) Test failures of strerror_r-posix and perror, reported in

Re: new module 'noreturn'

2017-04-29 Thread Bruno Haible
Paul Eggert wrote: > It was more like this: > >#define _GL_NORETURN_FUNC_Noreturn __attribute_noreturn__ >#define _GL_NORETURN_FUNCPTR __attribute_noreturn__ Per [1] (compare fptr33 and fptr34), this has identical effects as #define _GL_NORETURN_FUNC__attribute_noreturn__

Re: Gnulib's wctype.h fails to compile with MinGW

2017-04-29 Thread Gavin Smith
On Thu, Apr 27, 2017 at 08:50:25PM +0300, Eli Zaretskii wrote: > > From: Bruno Haible > > Date: Thu, 27 Apr 2017 19:03:35 +0200 > > > > Thanks for the report and suggested fix. > > > > The #ifdefology here seems a bit fragile to me (will likely break in other > > forks of