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