From 463f1f5cdaecf229dcd1d3d16e969bf3a7aa9a73 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Tue, 1 Aug 2000 18:29:35 +0000 Subject: 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. --- src/backend/commands/variable.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/backend/commands/variable.c') diff --git a/src/backend/commands/variable.c b/src/backend/commands/variable.c index d7e730544b0..a70dfcad9bb 100644 --- a/src/backend/commands/variable.c +++ b/src/backend/commands/variable.c @@ -9,7 +9,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/commands/variable.c,v 1.39 2000/07/14 15:35:44 thomas Exp $ + * $Header: /cvsroot/pgsql/src/backend/commands/variable.c,v 1.40 2000/08/01 18:29:29 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -566,7 +566,7 @@ parse_random_seed(char *value) else { sscanf(value, "%lf", &seed); - setseed(&seed); + DirectFunctionCall1(setseed, Float8GetDatum(seed)); } return (TRUE); } @@ -583,7 +583,7 @@ reset_random_seed(void) { double seed = 0.5; - setseed(&seed); + DirectFunctionCall1(setseed, Float8GetDatum(seed)); return (TRUE); } -- cgit v1.2.3