summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorunknown <joerg@mysql.com>2004-12-27 14:02:30 +0100
committerunknown <joerg@mysql.com>2004-12-27 14:02:30 +0100
commit75463050b90d829e044f014b9b317a20b9809bf2 (patch)
tree91470ab64867a0e07c5c6564278d9e2c49f548e6
parent6499169d811a041cdccd561cced7f1478a8e0719 (diff)
downloadmariadb-git-75463050b90d829e044f014b9b317a20b9809bf2.tar.gz
Ensure "bottom-up" order of "inline functions" within 'innobase/include/rem0rec.ic'.
This is a partial solution for bug#7464. innobase/include/rem0rec.ic: On several platforms, "inline functions" must be coded before being used, in "bottom-up" order. Ensure this for 'rec_get_status' and 'rec_offs_n_fields'.
-rw-r--r--innobase/include/rem0rec.ic78
1 files changed, 39 insertions, 39 deletions
diff --git a/innobase/include/rem0rec.ic b/innobase/include/rem0rec.ic
index 6c3dabf04a2..2a1f8c8a0db 100644
--- a/innobase/include/rem0rec.ic
+++ b/innobase/include/rem0rec.ic
@@ -374,6 +374,26 @@ rec_set_n_fields_old(
}
/**********************************************************
+The following function retrieves the status bits of a new-style record. */
+UNIV_INLINE
+ulint
+rec_get_status(
+/*===========*/
+ /* out: status bits */
+ rec_t* rec) /* in: physical record */
+{
+ ulint ret;
+
+ ut_ad(rec);
+
+ ret = rec_get_bit_field_1(rec, REC_NEW_STATUS,
+ REC_NEW_STATUS_MASK, REC_NEW_STATUS_SHIFT);
+ ut_ad((ret & ~REC_NEW_STATUS_MASK) == 0);
+
+ return(ret);
+}
+
+/**********************************************************
The following function is used to get the number of fields
in a record. */
UNIV_INLINE
@@ -485,26 +505,6 @@ rec_set_info_bits(
}
/**********************************************************
-The following function retrieves the status bits of a new-style record. */
-UNIV_INLINE
-ulint
-rec_get_status(
-/*===========*/
- /* out: status bits */
- rec_t* rec) /* in: physical record */
-{
- ulint ret;
-
- ut_ad(rec);
-
- ret = rec_get_bit_field_1(rec, REC_NEW_STATUS,
- REC_NEW_STATUS_MASK, REC_NEW_STATUS_SHIFT);
- ut_ad((ret & ~REC_NEW_STATUS_MASK) == 0);
-
- return(ret);
-}
-
-/**********************************************************
The following function is used to set the status bits of a new-style record. */
UNIV_INLINE
void
@@ -756,6 +756,25 @@ rec_offs_set_n_alloc(
offsets[0] = n_alloc;
}
+/**************************************************************
+The following function returns the number of fields in a record. */
+UNIV_INLINE
+ulint
+rec_offs_n_fields(
+/*===============*/
+ /* out: number of fields */
+ const ulint* offsets)/* in: array returned by rec_get_offsets() */
+{
+ ulint n_fields;
+ ut_ad(offsets);
+ n_fields = offsets[1];
+ ut_ad(n_fields > 0);
+ ut_ad(n_fields <= REC_MAX_N_FIELDS);
+ ut_ad(n_fields + REC_OFFS_HEADER_SIZE
+ <= rec_offs_get_n_alloc(offsets));
+ return(n_fields);
+}
+
/****************************************************************
Validates offsets returned by rec_get_offsets(). */
UNIV_INLINE
@@ -1203,25 +1222,6 @@ rec_get_data_size_old(
}
/**************************************************************
-The following function returns the number of fields in a record. */
-UNIV_INLINE
-ulint
-rec_offs_n_fields(
-/*===============*/
- /* out: number of fields */
- const ulint* offsets)/* in: array returned by rec_get_offsets() */
-{
- ulint n_fields;
- ut_ad(offsets);
- n_fields = offsets[1];
- ut_ad(n_fields > 0);
- ut_ad(n_fields <= REC_MAX_N_FIELDS);
- ut_ad(n_fields + REC_OFFS_HEADER_SIZE
- <= rec_offs_get_n_alloc(offsets));
- return(n_fields);
-}
-
-/**************************************************************
The following function sets the number of fields in offsets. */
UNIV_INLINE
void