pgsql: Make earthdistance use version-0 calling convention if not - Mailing list pgsql-committers

From tgl@postgresql.org (Tom Lane)
Subject pgsql: Make earthdistance use version-0 calling convention if not
Date
Msg-id 20080421011143.43E637559CC@cvs.postgresql.org
Whole thread Raw
List pgsql-committers
Log Message:
-----------
Make earthdistance use version-0 calling convention if not USE_FLOAT8_BYVAL,
and version-1 if USE_FLOAT8_BYVAL.  This might seem a bit pointless, but the
idea is to have at least one regression test that will fail if we ever
accidentally break version-0 functions that return float8.  However, they're
already broken, or at least hopelessly unportable, in the USE_FLOAT8_BYVAL
case.

Per a recent suggestion from Greg Stark.

Modified Files:
--------------
    pgsql/contrib/earthdistance:
        earthdistance.c (r1.14 -> r1.15)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/contrib/earthdistance/earthdistance.c?r1=1.14&r2=1.15)

pgsql-committers by date:

Previous
From: tgl@postgresql.org (Tom Lane)
Date:
Subject: pgsql: Allow float8, int8, and related datatypes to be passed by value
Next
From: tgl@postgresql.org (Tom Lane)
Date:
Subject: pgsql: Add FLOAT4PASSBYVAL/FLOAT8PASSBYVAL to pg_config.h.win32, as a