1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-11 20:28:21 +03:00

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.
This commit is contained in:
Tom Lane
2000-08-01 18:29:35 +00:00
parent 92bd532c1e
commit 463f1f5cda
10 changed files with 910 additions and 1163 deletions

View File

@ -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);
}