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

Commit34694ec

Browse files
committed
Convert macros to static inline functions (htup_details.h, itup.h)
Discussion:https://www.postgresql.org/message-id/flat/5b558da8-99fb-0a99-83dd-f72f05388517@enterprisedb.com
1 parentb15b8c5 commit34694ec

File tree

3 files changed

+352
-226
lines changed

3 files changed

+352
-226
lines changed

‎contrib/pageinspect/heapfuncs.c

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,14 @@
4242
* was used to upgrade from an older version, tuples might still have an
4343
* oid. Seems worthwhile to display that.
4444
*/
45-
#defineHeapTupleHeaderGetOidOld(tup) \
46-
( \
47-
((tup)->t_infomask & HEAP_HASOID_OLD) ? \
48-
*((Oid *) ((char *)(tup) + (tup)->t_hoff - sizeof(Oid))) \
49-
: \
50-
InvalidOid \
51-
)
45+
staticinlineOid
46+
HeapTupleHeaderGetOidOld(constHeapTupleHeaderData*tup)
47+
{
48+
if (tup->t_infomask&HEAP_HASOID_OLD)
49+
return*((Oid*) ((char*) (tup)+ (tup)->t_hoff-sizeof(Oid)));
50+
else
51+
returnInvalidOid;
52+
}
5253

5354

5455
/*

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp