Commit ba051c35 authored by marko's avatar marko

branches/zip: Add const qualifiers to the dict_index_t* parameters of

rec_get_n_fields(), rec_offs_validate(), and rec_offs_make_valid().
parent 30fe641e
......@@ -118,9 +118,9 @@ UNIV_INLINE
ulint
rec_get_n_fields(
/*=============*/
/* out: number of data fields */
const rec_t* rec, /* in: physical record */
dict_index_t* index); /* in: record descriptor */
/* out: number of data fields */
const rec_t* rec, /* in: physical record */
const dict_index_t* index); /* in: record descriptor */
/**********************************************************
The following function is used to get the number of records owned by the
previous directory record. */
......@@ -372,10 +372,11 @@ UNIV_INLINE
ibool
rec_offs_validate(
/*==============*/
/* out: TRUE if valid */
const rec_t* rec, /* in: record or NULL */
dict_index_t* index, /* in: record descriptor or NULL */
const ulint* offsets);/* in: array returned by rec_get_offsets() */
/* out: TRUE if valid */
const rec_t* rec, /* in: record or NULL */
const dict_index_t* index, /* in: record descriptor or NULL */
const ulint* offsets);/* in: array returned by
rec_get_offsets() */
/****************************************************************
Updates debug data in offsets, in order to avoid bogus
rec_offs_validate() failures. */
......@@ -383,9 +384,10 @@ UNIV_INLINE
void
rec_offs_make_valid(
/*================*/
const rec_t* rec, /* in: record */
dict_index_t* index,/* in: record descriptor */
ulint* offsets);/* in: array returned by rec_get_offsets() */
const rec_t* rec, /* in: record */
const dict_index_t* index, /* in: record descriptor */
ulint* offsets);/* in: array returned by
rec_get_offsets() */
/****************************************************************
The following function is used to get the offset to the nth
......
......@@ -464,9 +464,9 @@ UNIV_INLINE
ulint
rec_get_n_fields(
/*=============*/
/* out: number of data fields */
const rec_t* rec, /* in: physical record */
dict_index_t* index) /* in: record descriptor */
/* out: number of data fields */
const rec_t* rec, /* in: physical record */
const dict_index_t* index) /* in: record descriptor */
{
ut_ad(rec);
ut_ad(index);
......@@ -923,10 +923,11 @@ UNIV_INLINE
ibool
rec_offs_validate(
/*==============*/
/* out: TRUE if valid */
const rec_t* rec, /* in: record or NULL */
dict_index_t* index, /* in: record descriptor or NULL */
const ulint* offsets)/* in: array returned by rec_get_offsets() */
/* out: TRUE if valid */
const rec_t* rec, /* in: record or NULL */
const dict_index_t* index, /* in: record descriptor or NULL */
const ulint* offsets)/* in: array returned by
rec_get_offsets() */
{
ulint i = rec_offs_n_fields(offsets);
ulint last = ULINT_MAX;
......@@ -978,11 +979,11 @@ UNIV_INLINE
void
rec_offs_make_valid(
/*================*/
const rec_t* rec __attribute__((unused)),
const rec_t* rec __attribute__((unused)),
/* in: record */
dict_index_t* index __attribute__((unused)),
const dict_index_t* index __attribute__((unused)),
/* in: record descriptor */
ulint* offsets __attribute__((unused)))
ulint* offsets __attribute__((unused)))
/* in: array returned by rec_get_offsets() */
{
ut_ad(rec);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment