We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b15b8c5 commit 34694ecCopy full SHA for 34694ec
contrib/pageinspect/heapfuncs.c
@@ -42,13 +42,14 @@
42
* was used to upgrade from an older version, tuples might still have an
43
* oid. Seems worthwhile to display that.
44
*/
45
-#define HeapTupleHeaderGetOidOld(tup) \
46
-( \
47
- ((tup)->t_infomask & HEAP_HASOID_OLD) ? \
48
- *((Oid *) ((char *)(tup) + (tup)->t_hoff - sizeof(Oid))) \
49
- : \
50
- InvalidOid \
51
-)
+static inline Oid
+HeapTupleHeaderGetOidOld(const HeapTupleHeaderData *tup)
+{
+ if (tup->t_infomask & HEAP_HASOID_OLD)
+ return *((Oid *) ((char *) (tup) + (tup)->t_hoff - sizeof(Oid)));
+ else
+ return InvalidOid;
52
+}
53
54
55
/*
0 commit comments