summaryrefslogtreecommitdiff
path: root/src/include/c.h
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2017-08-17 12:39:20 -0400
committerPeter Eisentraut <peter_e@gmx.net>2017-09-05 14:52:55 -0400
commit153a49bb331005bf70b1e76e69fe28f1c417cc91 (patch)
treee06c457dd117102b3cb2c6521747d9949849c1b1 /src/include/c.h
parentec3a4375961abaa209116162966bc7af2d51148a (diff)
downloadpostgresql-153a49bb331005bf70b1e76e69fe28f1c417cc91.tar.gz
Remove endof macro
It has not been used in a long time, and it doesn't seem safe anyway, so drop it. Reviewed-by: Michael Paquier <michael.paquier@gmail.com> Reviewed-by: Ryan Murphy <ryanfmurphy@gmail.com>
Diffstat (limited to 'src/include/c.h')
-rw-r--r--src/include/c.h10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/include/c.h b/src/include/c.h
index 56e7f792d2..630dfbfc41 100644
--- a/src/include/c.h
+++ b/src/include/c.h
@@ -30,7 +30,7 @@
* 2) bool, true, false, TRUE, FALSE
* 3) standard system types
* 4) IsValid macros for system types
- * 5) offsetof, lengthof, endof, alignment
+ * 5) offsetof, lengthof, alignment
* 6) assertions
* 7) widely useful macros
* 8) random stuff
@@ -537,7 +537,7 @@ typedef NameData *Name;
/* ----------------------------------------------------------------
- * Section 5: offsetof, lengthof, endof, alignment
+ * Section 5: offsetof, lengthof, alignment
* ----------------------------------------------------------------
*/
/*
@@ -557,12 +557,6 @@ typedef NameData *Name;
*/
#define lengthof(array) (sizeof (array) / sizeof ((array)[0]))
-/*
- * endof
- * Address of the element one past the last in an array.
- */
-#define endof(array) (&(array)[lengthof(array)])
-
/* ----------------
* Alignment macros: align a length or address appropriately for a given type.
* The fooALIGN() macros round up to a multiple of the required alignment,