Commit 5de9dc56 authored by marko's avatar marko

branches/zip: Add const qualifiers to some dict_table_t* accessor functions.

parent 92f615ae
......@@ -540,18 +540,19 @@ UNIV_INLINE
ulint
dict_table_get_n_user_cols(
/*=======================*/
/* out: number of user-defined (e.g., not
ROW_ID) columns of a table */
dict_table_t* table); /* in: table */
/* out: number of user-defined
(e.g., not ROW_ID)
columns of a table */
const dict_table_t* table); /* in: table */
/************************************************************************
Gets the number of system columns in a table in the dictionary cache. */
UNIV_INLINE
ulint
dict_table_get_n_sys_cols(
/*======================*/
/* out: number of system (e.g.,
ROW_ID) columns of a table */
dict_table_t* table); /* in: table */
/* out: number of system (e.g.,
ROW_ID) columns of a table */
const dict_table_t* table); /* in: table */
/************************************************************************
Gets the number of all columns (also system) in a table in the dictionary
cache. */
......@@ -559,8 +560,8 @@ UNIV_INLINE
ulint
dict_table_get_n_cols(
/*==================*/
/* out: number of columns of a table */
dict_table_t* table); /* in: table */
/* out: number of columns of a table */
const dict_table_t* table); /* in: table */
#ifdef UNIV_DEBUG
/************************************************************************
Gets the nth column of a table. */
......
......@@ -207,9 +207,10 @@ UNIV_INLINE
ulint
dict_table_get_n_user_cols(
/*=======================*/
/* out: number of user-defined (e.g., not
ROW_ID) columns of a table */
dict_table_t* table) /* in: table */
/* out: number of user-defined
(e.g., not ROW_ID)
columns of a table */
const dict_table_t* table) /* in: table */
{
ut_ad(table);
ut_ad(table->magic_n == DICT_TABLE_MAGIC_N);
......@@ -223,9 +224,9 @@ UNIV_INLINE
ulint
dict_table_get_n_sys_cols(
/*======================*/
/* out: number of system (e.g.,
ROW_ID) columns of a table */
dict_table_t* table __attribute__((unused))) /* in: table */
/* out: number of system (e.g.,
ROW_ID) columns of a table */
const dict_table_t* table __attribute__((unused))) /* in: table */
{
ut_ad(table);
ut_ad(table->magic_n == DICT_TABLE_MAGIC_N);
......@@ -241,8 +242,8 @@ UNIV_INLINE
ulint
dict_table_get_n_cols(
/*==================*/
/* out: number of columns of a table */
dict_table_t* table) /* in: table */
/* out: number of columns of a table */
const dict_table_t* table) /* in: table */
{
ut_ad(table);
ut_ad(table->magic_n == DICT_TABLE_MAGIC_N);
......
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