summaryrefslogtreecommitdiff
path: root/src/include/utils/cash.h
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2000-08-01 18:29:35 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2000-08-01 18:29:35 +0000
commit463f1f5cdaecf229dcd1d3d16e969bf3a7aa9a73 (patch)
treee212492457fbf4f54cb12c160cc3f8a602256871 /src/include/utils/cash.h
parent92bd532c1e8b65f4f4d09ffb453782b29d6d1e42 (diff)
Convert all remaining float4 and float8 functions to new fmgr style.
At this point I think it'd be possible to make float4 be pass-by-value without too much work --- and float8 too on machines where Datum is 8 bytes. Something to try when the mood strikes, anyway.
Diffstat (limited to 'src/include/utils/cash.h')
-rw-r--r--src/include/utils/cash.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/include/utils/cash.h b/src/include/utils/cash.h
index cc612961d29..4a5829b090c 100644
--- a/src/include/utils/cash.h
+++ b/src/include/utils/cash.h
@@ -25,13 +25,13 @@ extern bool cash_ge(Cash *c1, Cash *c2);
extern Cash *cash_pl(Cash *c1, Cash *c2);
extern Cash *cash_mi(Cash *c1, Cash *c2);
-extern Cash *cash_mul_flt8(Cash *c, float8 *f);
-extern Cash *cash_div_flt8(Cash *c, float8 *f);
-extern Cash *flt8_mul_cash(float8 *f, Cash *c);
+extern Datum cash_mul_flt8(PG_FUNCTION_ARGS);
+extern Datum cash_div_flt8(PG_FUNCTION_ARGS);
+extern Datum flt8_mul_cash(PG_FUNCTION_ARGS);
-extern Cash *cash_mul_flt4(Cash *c, float4 *f);
-extern Cash *cash_div_flt4(Cash *c, float4 *f);
-extern Cash *flt4_mul_cash(float4 *f, Cash *c);
+extern Datum cash_mul_flt4(PG_FUNCTION_ARGS);
+extern Datum cash_div_flt4(PG_FUNCTION_ARGS);
+extern Datum flt4_mul_cash(PG_FUNCTION_ARGS);
extern Datum cash_mul_int4(PG_FUNCTION_ARGS);
extern Datum cash_div_int4(PG_FUNCTION_ARGS);