From 7861d72ea204ef4085861f79f9c1749597160f72 Mon Sep 17 00:00:00 2001 From: Alvaro Herrera Date: Fri, 18 Apr 2008 18:43:09 +0000 Subject: Modify the float4 datatype to be pass-by-val. Along the way, remove the last uses of the long-deprecated float32 in contrib/seg; the definitions themselves are still there, but no longer used. fmgr/README updated to match. I added a CREATE FUNCTION to account for existing seg_center() code in seg.c too, and some tests for it and the neighbor functions. At the same time, remove checks for NULL which are not needed (because the functions are declared STRICT). I had to do some adjustments to contrib's btree_gist too. The choices for representation there are not ideal for changing the underlying types :-( Original patch by Zoltan Boszormenyi, with some adjustments by me. --- src/include/c.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/include/c.h') diff --git a/src/include/c.h b/src/include/c.h index f9b0acf957..e2697099cb 100644 --- a/src/include/c.h +++ b/src/include/c.h @@ -12,7 +12,7 @@ * Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/c.h,v 1.224 2008/03/17 19:44:41 petere Exp $ + * $PostgreSQL: pgsql/src/include/c.h,v 1.225 2008/04/18 18:43:09 alvherre Exp $ * *------------------------------------------------------------------------- */ @@ -253,8 +253,8 @@ typedef uint32 bits32; /* >= 32 bits */ * Floating point number, AT LEAST N BITS IN SIZE, * used for numerical computations. * - * Since sizeof(floatN) may be > sizeof(char *), always pass - * floatN by reference. + * Since sizeof(float8) may be > sizeof(char *), always pass + * float8 by reference. float4 is passed by value. * * XXX: these typedefs are now deprecated in favor of float4 and float8. * They will eventually go away. -- cgit v1.2.1