Re: more C99 cleanup

2025-11-21 Thread Tom Lane
I wrote: > I have a distinct recollection that this comment exists because we > found that some platforms had a hypot() that got that edge case wrong. > I don't object to proceeding on the assumption that they all conform > to spec by now, but please make sure there's at least one regression > test

Re: more C99 cleanup

2025-11-21 Thread Tom Lane
Peter Eisentraut writes: > I have been hunting down the last few pieces of code that made some > obsolete claims about not being able to use C99 yet or needing to be > compatible with pre-C99 or something like that. I found two obsolete > comments and two places where we could now actually use

Re: more C99 cleanup

2025-11-21 Thread Thomas Munro
On Sat, Nov 22, 2025 at 2:50 AM Peter Eisentraut wrote: + * %z doesn't actually act differently from %Z on Windows. Probably obsolete too, at least according to: https://learn.microsoft.com/en-us/cpp/c-runtime-library/reference/strftime-wcsftime-strftime-l-wcsftime-l?view=msvc-170

more C99 cleanup

2025-11-21 Thread Peter Eisentraut
I have been hunting down the last few pieces of code that made some obsolete claims about not being able to use C99 yet or needing to be compatible with pre-C99 or something like that. I found two obsolete comments and two places where we could now actually use the C99 functionality that the c