Commit dd1f1c3f 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 e82202fc
...@@ -118,9 +118,9 @@ UNIV_INLINE ...@@ -118,9 +118,9 @@ UNIV_INLINE
ulint ulint
rec_get_n_fields( rec_get_n_fields(
/*=============*/ /*=============*/
/* out: number of data fields */ /* out: number of data fields */
const rec_t* rec, /* in: physical record */ const rec_t* rec, /* in: physical record */
dict_index_t* index); /* in: record descriptor */ const dict_index_t* index); /* in: record descriptor */
/********************************************************** /**********************************************************
The following function is used to get the number of records owned by the The following function is used to get the number of records owned by the
previous directory record. */ previous directory record. */
...@@ -372,10 +372,11 @@ UNIV_INLINE ...@@ -372,10 +372,11 @@ UNIV_INLINE
ibool ibool
rec_offs_validate( rec_offs_validate(
/*==============*/ /*==============*/
/* out: TRUE if valid */ /* out: TRUE if valid */
const rec_t* rec, /* in: record or NULL */ const rec_t* rec, /* in: record or NULL */
dict_index_t* index, /* in: record descriptor or NULL */ const dict_index_t* index, /* in: record descriptor or NULL */
const ulint* offsets);/* in: array returned by rec_get_offsets() */ const ulint* offsets);/* in: array returned by
rec_get_offsets() */
/**************************************************************** /****************************************************************
Updates debug data in offsets, in order to avoid bogus Updates debug data in offsets, in order to avoid bogus
rec_offs_validate() failures. */ rec_offs_validate() failures. */
...@@ -383,9 +384,10 @@ UNIV_INLINE ...@@ -383,9 +384,10 @@ UNIV_INLINE
void void
rec_offs_make_valid( rec_offs_make_valid(
/*================*/ /*================*/
const rec_t* rec, /* in: record */ const rec_t* rec, /* in: record */
dict_index_t* index,/* in: record descriptor */ const dict_index_t* index, /* in: record descriptor */
ulint* offsets);/* in: array returned by rec_get_offsets() */ ulint* offsets);/* in: array returned by
rec_get_offsets() */
/**************************************************************** /****************************************************************
The following function is used to get the offset to the nth The following function is used to get the offset to the nth
......
...@@ -464,9 +464,9 @@ UNIV_INLINE ...@@ -464,9 +464,9 @@ UNIV_INLINE
ulint ulint
rec_get_n_fields( rec_get_n_fields(
/*=============*/ /*=============*/
/* out: number of data fields */ /* out: number of data fields */
const rec_t* rec, /* in: physical record */ const rec_t* rec, /* in: physical record */
dict_index_t* index) /* in: record descriptor */ const dict_index_t* index) /* in: record descriptor */
{ {
ut_ad(rec); ut_ad(rec);
ut_ad(index); ut_ad(index);
...@@ -923,10 +923,11 @@ UNIV_INLINE ...@@ -923,10 +923,11 @@ UNIV_INLINE
ibool ibool
rec_offs_validate( rec_offs_validate(
/*==============*/ /*==============*/
/* out: TRUE if valid */ /* out: TRUE if valid */
const rec_t* rec, /* in: record or NULL */ const rec_t* rec, /* in: record or NULL */
dict_index_t* index, /* in: record descriptor or NULL */ const dict_index_t* index, /* in: record descriptor or NULL */
const ulint* offsets)/* in: array returned by rec_get_offsets() */ const ulint* offsets)/* in: array returned by
rec_get_offsets() */
{ {
ulint i = rec_offs_n_fields(offsets); ulint i = rec_offs_n_fields(offsets);
ulint last = ULINT_MAX; ulint last = ULINT_MAX;
...@@ -978,11 +979,11 @@ UNIV_INLINE ...@@ -978,11 +979,11 @@ UNIV_INLINE
void void
rec_offs_make_valid( rec_offs_make_valid(
/*================*/ /*================*/
const rec_t* rec __attribute__((unused)), const rec_t* rec __attribute__((unused)),
/* in: record */ /* in: record */
dict_index_t* index __attribute__((unused)), const dict_index_t* index __attribute__((unused)),
/* in: record descriptor */ /* in: record descriptor */
ulint* offsets __attribute__((unused))) ulint* offsets __attribute__((unused)))
/* in: array returned by rec_get_offsets() */ /* in: array returned by rec_get_offsets() */
{ {
ut_ad(rec); 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