summaryrefslogtreecommitdiff
path: root/src/include/c.h
diff options
context:
space:
mode:
authorAlvaro Herrera2008-04-18 18:43:09 +0000
committerAlvaro Herrera2008-04-18 18:43:09 +0000
commit7861d72ea204ef4085861f79f9c1749597160f72 (patch)
treed778614447739d8388ed9726b48422e623868571 /src/include/c.h
parentb8e5581d762acceda22dd7347ed43d2e013a6df1 (diff)
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.
Diffstat (limited to 'src/include/c.h')
-rw-r--r--src/include/c.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/include/c.h b/src/include/c.h
index f9b0acf9571..e2697099cbd 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.