Re: [PROPOSED 2/2] assert-h: prefer to ‘verify’

2022-12-28 Thread Paul Eggert
On 9/14/22 04:35, Bruno Haible wrote: -# define _Static_assert(...) \ - _GL_VERIFY (__VA_ARGS__, "static assertion failed", -) +# define _Static_assert(R, ...) \ + _GL_VERIFY ((R), "static assertion failed", -) Unfortunately this doesn't conform to strict C99, which requires the

Re: [PATCH] Basic support for checking NFSv4 ACLs in Linux

2022-12-28 Thread Paul Eggert
On 12/28/22 01:07, Ondrej Valousek wrote: I was actually wondering why did not you reuse the suggestion from Andreas: # define ROUNDUP(x, y) (((x) + (y) - 1) & - (y)) It didn't work when the + overflowed, and it assumed two's complement. The latter assumption is pretty safe

RE: [PATCH] Basic support for checking NFSv4 ACLs in Linux

2022-12-28 Thread Ondrej Valousek
Thanks Paul, I was actually wondering why did not you reuse the suggestion from Andreas: # define ROUNDUP(x, y) (((x) + (y) - 1) & - (y)) As it seemed to work pretty well to me (+ it makes obvious what we do here). Anyhow, my 2 cents  -Original Message- From: Paul