Commit a1475f69 authored by marko's avatar marko

branches/zip: dict_table_copy_types(), dict_index_copy_types(): Add const

qualifiers.  Correct the documentation of the parameters.
parent abc7f6c9
......@@ -1572,9 +1572,10 @@ Copies types of fields contained in index to tuple. */
void
dict_index_copy_types(
/*==================*/
dtuple_t* tuple, /* in: data tuple */
dict_index_t* index, /* in: index */
ulint n_fields) /* in: number of field types to copy */
dtuple_t* tuple, /* in/out: data tuple */
const dict_index_t* index, /* in: index */
ulint n_fields) /* in: number of
field types to copy */
{
ulint i;
......@@ -1585,7 +1586,7 @@ dict_index_copy_types(
}
for (i = 0; i < n_fields; i++) {
dict_field_t* ifield;
const dict_field_t* ifield;
dtype_t* dfield_type;
ifield = dict_index_get_nth_field(index, i);
......@@ -1603,8 +1604,8 @@ Copies types of columns contained in table to tuple. */
void
dict_table_copy_types(
/*==================*/
dtuple_t* tuple, /* in: data tuple */
dict_table_t* table) /* in: index */
dtuple_t* tuple, /* in/out: data tuple */
const dict_table_t* table) /* in: table */
{
dtype_t* dfield_type;
ulint i;
......
......@@ -633,8 +633,8 @@ Copies types of columns contained in table to tuple. */
void
dict_table_copy_types(
/*==================*/
dtuple_t* tuple, /* in: data tuple */
dict_table_t* table); /* in: index */
dtuple_t* tuple, /* in/out: data tuple */
const dict_table_t* table); /* in: table */
/**************************************************************************
Looks for an index with the given id. NOTE that we do not reserve
the dictionary mutex: this function is for emergency purposes like
......@@ -813,9 +813,10 @@ Copies types of fields contained in index to tuple. */
void
dict_index_copy_types(
/*==================*/
dtuple_t* tuple, /* in: data tuple */
dict_index_t* index, /* in: index */
ulint n_fields); /* in: number of field types to copy */
dtuple_t* tuple, /* in/out: data tuple */
const dict_index_t* index, /* in: index */
ulint n_fields); /* in: number of
field types to copy */
/*************************************************************************
Gets the field column. */
UNIV_INLINE
......
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