mirror of
				https://github.com/postgres/postgres.git
				synced 2025-11-03 09:13:20 +03:00 
			
		
		
		
	Rename USE_INLINE to PG_USE_INLINE
The former name was too likely to conflict with symbols from external headers; and, as seen in recent buildfarm failures in member spoonbill, it has now happened at least in plpython.
This commit is contained in:
		@@ -75,12 +75,12 @@ struct ListCell
 | 
			
		||||
 * if supported by the compiler, or as regular functions otherwise.
 | 
			
		||||
 * See STATIC_IF_INLINE in c.h.
 | 
			
		||||
 */
 | 
			
		||||
#ifndef USE_INLINE
 | 
			
		||||
#ifndef PG_USE_INLINE
 | 
			
		||||
extern ListCell *list_head(const List *l);
 | 
			
		||||
extern ListCell *list_tail(List *l);
 | 
			
		||||
extern int	list_length(const List *l);
 | 
			
		||||
#endif   /* USE_INLINE */
 | 
			
		||||
#if defined(USE_INLINE) || defined(PG_LIST_INCLUDE_DEFINITIONS)
 | 
			
		||||
#endif   /* PG_USE_INLINE */
 | 
			
		||||
#if defined(PG_USE_INLINE) || defined(PG_LIST_INCLUDE_DEFINITIONS)
 | 
			
		||||
STATIC_IF_INLINE ListCell *
 | 
			
		||||
list_head(const List *l)
 | 
			
		||||
{
 | 
			
		||||
@@ -98,7 +98,7 @@ list_length(const List *l)
 | 
			
		||||
{
 | 
			
		||||
	return l ? l->length : 0;
 | 
			
		||||
}
 | 
			
		||||
#endif	/* USE_INLINE || PG_LIST_INCLUDE_DEFINITIONS */
 | 
			
		||||
#endif   /*-- PG_USE_INLINE || PG_LIST_INCLUDE_DEFINITIONS */
 | 
			
		||||
 | 
			
		||||
/*
 | 
			
		||||
 * NB: There is an unfortunate legacy from a previous incarnation of
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user