pgsql: Simplify replacement code for strtof.

From: Thomas Munro <tmunro(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Simplify replacement code for strtof.
Date: 2022-08-07 00:45:58
Message-ID: E1oKUQX-000eK7-Qc@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Simplify replacement code for strtof.

strtof() is in C99 and all targeted systems have it. We can remove the
configure probe and some dead code, but we still need replacement code
for a couple of systems that have known buggy implementations selected
via platform template.

Reviewed-by: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Discussion: https://postgr.es/m/152683.1659830125%40sss.pgh.pa.us

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/cbf4403134738245db48b306c62eb1258f2b2bd0

Modified Files
--------------
configure | 16 +---------------
configure.ac | 4 +---
src/include/pg_config.h.in | 3 ---
src/include/port.h | 4 ----
src/port/strtof.c | 38 --------------------------------------
src/tools/msvc/Solution.pm | 1 -
6 files changed, 2 insertions(+), 64 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Alvaro Herrera 2022-08-07 08:20:33 pgsql: Remove unportable use of timezone in recent test
Previous Message Thomas Munro 2022-08-07 00:36:19 pgsql: Simplify gettimeofday for Windows.