Commit 5de9dc56 authored by marko's avatar marko

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

parent 92f615ae
......@@ -540,9 +540,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 */
/************************************************************************
Gets the number of system columns in a table in the dictionary cache. */
UNIV_INLINE
......@@ -551,7 +552,7 @@ dict_table_get_n_sys_cols(
/*======================*/
/* out: number of system (e.g.,
ROW_ID) columns of a table */
dict_table_t* table); /* in: table */
const dict_table_t* table); /* in: table */
/************************************************************************
Gets the number of all columns (also system) in a table in the dictionary
cache. */
......@@ -560,7 +561,7 @@ ulint
dict_table_get_n_cols(
/*==================*/
/* out: number of columns of a table */
dict_table_t* table); /* in: 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);
......@@ -225,7 +226,7 @@ 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 */
const dict_table_t* table __attribute__((unused))) /* in: table */
{
ut_ad(table);
ut_ad(table->magic_n == DICT_TABLE_MAGIC_N);
......@@ -242,7 +243,7 @@ ulint
dict_table_get_n_cols(
/*==================*/
/* out: number of columns of a table */
dict_table_t* table) /* in: 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