mirror of
https://github.com/postgres/postgres.git
synced 2025-07-31 22:04:40 +03:00
No more warnings on macros, thanks VAdim.
This commit is contained in:
@ -6,7 +6,7 @@
|
|||||||
*
|
*
|
||||||
* Copyright (c) 1994, Regents of the University of California
|
* Copyright (c) 1994, Regents of the University of California
|
||||||
*
|
*
|
||||||
* $Id: heapam.h,v 1.19 1997/09/14 03:59:44 momjian Exp $
|
* $Id: heapam.h,v 1.20 1997/10/30 23:37:01 momjian Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -101,10 +101,10 @@ typedef HeapAccessStatisticsData *HeapAccessStatistics;
|
|||||||
#define heap_getattr(tup, b, attnum, tupleDesc, isnull) \
|
#define heap_getattr(tup, b, attnum, tupleDesc, isnull) \
|
||||||
(AssertMacro((tup) != NULL) ? \
|
(AssertMacro((tup) != NULL) ? \
|
||||||
((attnum) > (int) (tup)->t_natts) ? \
|
((attnum) > (int) (tup)->t_natts) ? \
|
||||||
(((isnull) ? (*(isnull) = true) : (char)NULL), (Datum)NULL) : \
|
(((isnull) ? (*(isnull) = true) : (void)NULL), (Datum)NULL) : \
|
||||||
((attnum) > 0) ? \
|
((attnum) > 0) ? \
|
||||||
fastgetattr((tup), (attnum), (tupleDesc), (isnull)) : \
|
fastgetattr((tup), (attnum), (tupleDesc), (isnull)) : \
|
||||||
(((isnull) ? (*(isnull) = false) : (char)NULL), heap_getsysattr((tup), (b), (attnum))) : \
|
(((isnull) ? (*(isnull) = false) : (void)NULL), heap_getsysattr((tup), (b), (attnum))) : \
|
||||||
(Datum)NULL)
|
(Datum)NULL)
|
||||||
|
|
||||||
extern HeapAccessStatistics heap_access_stats; /* in stats.c */
|
extern HeapAccessStatistics heap_access_stats; /* in stats.c */
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
* Copyright (c) 1994, Regents of the University of California
|
* Copyright (c) 1994, Regents of the University of California
|
||||||
*
|
*
|
||||||
* $Id: c.h,v 1.25 1997/10/27 12:07:10 vadim Exp $
|
* $Id: c.h,v 1.26 1997/10/30 23:36:56 momjian Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -691,7 +691,7 @@ typedef struct Exception
|
|||||||
*/
|
*/
|
||||||
/* we do this so if the macro is used in an if action, it will work */
|
/* we do this so if the macro is used in an if action, it will work */
|
||||||
#define StrNCpy(dst,src,len) \
|
#define StrNCpy(dst,src,len) \
|
||||||
(strncpy((dst),(src),(len)),(len > 0) ? *((dst)+(len)-1)='\0' : NULL,(void)(dst))
|
(strncpy((dst),(src),(len)),(len > 0) ? *((dst)+(len)-1)='\0' : (void)NULL,(void)(dst))
|
||||||
|
|
||||||
/* Get a bit mask of the bits set in non-int32 aligned addresses */
|
/* Get a bit mask of the bits set in non-int32 aligned addresses */
|
||||||
#define INT_ALIGN_MASK (sizeof(int32) - 1)
|
#define INT_ALIGN_MASK (sizeof(int32) - 1)
|
||||||
|
Reference in New Issue
Block a user