Commit c0d9e7b9 authored by marko's avatar marko

branches/zip: Add proper comments to some file page accessors.

parent 70f15d3f
...@@ -4687,17 +4687,25 @@ fil_addr_is_null( ...@@ -4687,17 +4687,25 @@ fil_addr_is_null(
} }
/************************************************************************ /************************************************************************
Accessor functions for a file page */ Get the predecessor of a file page. */
UNIV_INTERN UNIV_INTERN
ulint ulint
fil_page_get_prev(const byte* page) fil_page_get_prev(
/*==============*/
/* out: FIL_PAGE_PREV */
const byte* page) /* in: file page */
{ {
return(mach_read_from_4(page + FIL_PAGE_PREV)); return(mach_read_from_4(page + FIL_PAGE_PREV));
} }
/************************************************************************
Get the successor of a file page. */
UNIV_INTERN UNIV_INTERN
ulint ulint
fil_page_get_next(const byte* page) fil_page_get_next(
/*==============*/
/* out: FIL_PAGE_NEXT */
const byte* page) /* in: file page */
{ {
return(mach_read_from_4(page + FIL_PAGE_NEXT)); return(mach_read_from_4(page + FIL_PAGE_NEXT));
} }
...@@ -4708,7 +4716,7 @@ UNIV_INTERN ...@@ -4708,7 +4716,7 @@ UNIV_INTERN
void void
fil_page_set_type( fil_page_set_type(
/*==============*/ /*==============*/
byte* page, /* in: file page */ byte* page, /* in/out: file page */
ulint type) /* in: type */ ulint type) /* in: type */
{ {
ut_ad(page); ut_ad(page);
......
...@@ -684,19 +684,28 @@ fil_addr_is_null( ...@@ -684,19 +684,28 @@ fil_addr_is_null(
/* out: TRUE if undefined */ /* out: TRUE if undefined */
fil_addr_t addr); /* in: address */ fil_addr_t addr); /* in: address */
/************************************************************************ /************************************************************************
Accessor functions for a file page */ Get the predecessor of a file page. */
UNIV_INTERN UNIV_INTERN
ulint ulint
fil_page_get_prev(const byte* page); fil_page_get_prev(
/*==============*/
/* out: FIL_PAGE_PREV */
const byte* page); /* in: file page */
/************************************************************************
Get the successor of a file page. */
UNIV_INTERN
ulint ulint
fil_page_get_next(const byte* page); fil_page_get_next(
/*==============*/
/* out: FIL_PAGE_NEXT */
const byte* page): /* in: file page */
/************************************************************************* /*************************************************************************
Sets the file page type. */ Sets the file page type. */
UNIV_INTERN UNIV_INTERN
void void
fil_page_set_type( fil_page_set_type(
/*==============*/ /*==============*/
byte* page, /* in: file page */ byte* page, /* in/out: file page */
ulint type); /* in: type */ ulint type); /* in: type */
/************************************************************************* /*************************************************************************
Gets the file page type. */ Gets the file page type. */
......
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