Re: get rid of Abs()

2022-10-04 Thread Tom Lane
Peter Eisentraut writes: > I was wondering why we have a definition of Abs() in c.h when there are > more standard functions such as abs() and fabs() in widespread use. I > think this one is left over from pre-ANSI-C days. The attached patches > replace all uses of Abs() with more standard fu

Re: get rid of Abs()

2022-10-04 Thread Zhang Mingli
Hi, On Oct 4, 2022, 15:07 +0800, Peter Eisentraut , wrote: > I was wondering why we have a definition of Abs() in c.h when there are > more standard functions such as abs() and fabs() in widespread use. I > think this one is left over from pre-ANSI-C days. The attached patches > replace all uses

get rid of Abs()

2022-10-04 Thread Peter Eisentraut
I was wondering why we have a definition of Abs() in c.h when there are more standard functions such as abs() and fabs() in widespread use. I think this one is left over from pre-ANSI-C days. The attached patches replace all uses of Abs() with more standard functions. The first patch install