Browse Source

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

qualifiers.  Correct the documentation of the parameters.
pull/374/head
marko 19 years ago
parent
commit
a1475f6990
  1. 15
      dict/dict0dict.c
  2. 11
      include/dict0dict.h

15
dict/dict0dict.c

@ -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,8 +1586,8 @@ dict_index_copy_types(
}
for (i = 0; i < n_fields; i++) {
dict_field_t* ifield;
dtype_t* dfield_type;
const dict_field_t* ifield;
dtype_t* dfield_type;
ifield = dict_index_get_nth_field(index, i);
dfield_type = dfield_get_type(dtuple_get_nth_field(tuple, 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;

11
include/dict0dict.h

@ -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

Loading…
Cancel
Save