Skip to content

Commit 153a49b

Browse files
committed
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>
1 parent ec3a437 commit 153a49b

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

src/include/c.h

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
* 2) bool, true, false, TRUE, FALSE
3131
* 3) standard system types
3232
* 4) IsValid macros for system types
33-
* 5) offsetof, lengthof, endof, alignment
33+
* 5) offsetof, lengthof, alignment
3434
* 6) assertions
3535
* 7) widely useful macros
3636
* 8) random stuff
@@ -537,7 +537,7 @@ typedef NameData *Name;
537537

538538

539539
/* ----------------------------------------------------------------
540-
* Section 5: offsetof, lengthof, endof, alignment
540+
* Section 5: offsetof, lengthof, alignment
541541
* ----------------------------------------------------------------
542542
*/
543543
/*
@@ -557,12 +557,6 @@ typedef NameData *Name;
557557
*/
558558
#define lengthof(array) (sizeof (array) / sizeof ((array)[0]))
559559

560-
/*
561-
* endof
562-
* Address of the element one past the last in an array.
563-
*/
564-
#define endof(array) (&(array)[lengthof(array)])
565-
566560
/* ----------------
567561
* Alignment macros: align a length or address appropriately for a given type.
568562
* The fooALIGN() macros round up to a multiple of the required alignment,

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy