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

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Make earthdistance use version-0 calling convention if not
Date: 2008-04-21 01:11:43
Message-ID: 20080421011143.43E637559CC@cvs.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2008-04-21 02:04:10 pgsql: Add FLOAT4PASSBYVAL/FLOAT8PASSBYVAL to pg_config.h.win32, as a
Previous Message Tom Lane 2008-04-21 00:26:47 pgsql: Allow float8, int8, and related datatypes to be passed by value