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

Commitb6bd3da

Browse files
committed
Macro cleanup of heap_getattr.
1 parentfd3ad7d commitb6bd3da

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

‎src/include/access/heapam.h

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*
77
* Copyright (c) 1994, Regents of the University of California
88
*
9-
* $Id: heapam.h,v 1.16 1997/09/1204:09:03 momjian Exp $
9+
* $Id: heapam.h,v 1.17 1997/09/1205:58:18 momjian Exp $
1010
*
1111
*-------------------------------------------------------------------------
1212
*/
@@ -95,13 +95,12 @@ typedef HeapAccessStatisticsData *HeapAccessStatistics;
9595
*pointer to the structure describing the row and all its fields.
9696
* ---------------- */
9797
#defineheap_getattr(tup,b,attnum,tupleDesc,isnull) \
98-
(AssertMacro((tup) != NULL) ? \
99-
((attnum) > (int) (tup)->t_natts) ? \
100-
(((isnull) ? (*(isnull) = true) : (char)NULL), (Datum)NULL) : \
101-
((attnum) > 0) ? \
102-
fastgetattr((tup), (attnum), (tupleDesc), (isnull)) : \
103-
(((isnull) ? (*(isnull) = false) : (char)NULL), heap_getsysattr((tup), (b), (attnum))) : \
104-
(Datum)NULL)
98+
(AssertMacro((tup) != NULL) && \
99+
((attnum) > (int) (tup)->t_natts) ? \
100+
((isnull && (*(isnull) = true)), (Datum)NULL) : \
101+
((attnum) > 0) ? \
102+
fastgetattr((tup), (attnum), (tupleDesc), (isnull)) : \
103+
((isnull && (*(isnull) = false)), heap_getsysattr((tup), (b), (attnum))))
105104

106105
externHeapAccessStatisticsheap_access_stats;/* in stats.c */
107106

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp