Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit153a49b

Browse files
committed
Remove endof macro
It has not been used in a long time, and it doesn't seem safe anyway, sodrop it.Reviewed-by: Michael Paquier <michael.paquier@gmail.com>Reviewed-by: Ryan Murphy <ryanfmurphy@gmail.com>
1 parentec3a437 commit153a49b

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
#definelengthof(array) (sizeof (array) / sizeof ((array)[0]))
559559

560-
/*
561-
* endof
562-
*Address of the element one past the last in an array.
563-
*/
564-
#defineendof(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)

[8]ページ先頭

©2009-2025 Movatter.jp