Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
5de9dc56
Commit
5de9dc56
authored
Aug 08, 2007
by
marko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
branches/zip: Add const qualifiers to some dict_table_t* accessor functions.
parent
92f615ae
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
16 deletions
+18
-16
include/dict0dict.h
include/dict0dict.h
+9
-8
include/dict0dict.ic
include/dict0dict.ic
+9
-8
No files found.
include/dict0dict.h
View file @
5de9dc56
...
...
@@ -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. */
...
...
include/dict0dict.ic
View file @
5de9dc56
...
...
@@ -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);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment