mirror of
				https://github.com/postgres/postgres.git
				synced 2025-10-31 00:03:57 -04:00 
			
		
		
		
	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>
This commit is contained in:
		
							parent
							
								
									ec3a437596
								
							
						
					
					
						commit
						153a49bb33
					
				| @ -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, | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user