Commit c6c4a96a authored by Christian Rober's avatar Christian Rober Committed by Yoni Fogel

[t:4570] Removing inline function declarations to enable building on Darwin.

git-svn-id: file:///svn/toku/tokudb@44298 c7de825b-a66e-492c-adef-691d508d4ae1
parent 576d0976
...@@ -555,27 +555,27 @@ just_decompress_sub_block(struct sub_block *sb); ...@@ -555,27 +555,27 @@ just_decompress_sub_block(struct sub_block *sb);
/* Beginning of ft-node-deserialize.c helper functions. */ /* Beginning of ft-node-deserialize.c helper functions. */
// //
inline void void
initialize_ftnode(FTNODE node, BLOCKNUM blocknum); initialize_ftnode(FTNODE node, BLOCKNUM blocknum);
// //
inline int int
read_and_check_magic(struct rbuf *rb); read_and_check_magic(struct rbuf *rb);
// //
inline int int
read_and_check_version(FTNODE node, struct rbuf *rb); read_and_check_version(FTNODE node, struct rbuf *rb);
// //
inline void void
read_node_info(FTNODE node, struct rbuf *rb, int version); read_node_info(FTNODE node, struct rbuf *rb, int version);
// //
inline void void
allocate_and_read_partition_offsets(FTNODE node, struct rbuf *rb, FTNODE_DISK_DATA *ndd); allocate_and_read_partition_offsets(FTNODE node, struct rbuf *rb, FTNODE_DISK_DATA *ndd);
// //
inline int int
check_node_info_checksum(struct rbuf *rb); check_node_info_checksum(struct rbuf *rb);
//////////////// <CER> //////////////// <CER>
......
...@@ -34,7 +34,7 @@ initialize_ftnode(FTNODE node, BLOCKNUM blocknum) ...@@ -34,7 +34,7 @@ initialize_ftnode(FTNODE node, BLOCKNUM blocknum)
// 2. Read and check the 'magic' bytes on disk. Returns an error if // 2. Read and check the 'magic' bytes on disk. Returns an error if
// the magic does not match. // the magic does not match.
// //
inline int int
read_and_check_magic(struct rbuf *rb) read_and_check_magic(struct rbuf *rb)
{ {
int r = 0; int r = 0;
...@@ -50,7 +50,7 @@ read_and_check_magic(struct rbuf *rb) ...@@ -50,7 +50,7 @@ read_and_check_magic(struct rbuf *rb)
//////////////////// ////////////////////
// 3. // 3.
inline int int
read_and_check_version(FTNODE node, struct rbuf *rb) read_and_check_version(FTNODE node, struct rbuf *rb)
{ {
int r = 0; int r = 0;
...@@ -65,7 +65,7 @@ read_and_check_version(FTNODE node, struct rbuf *rb) ...@@ -65,7 +65,7 @@ read_and_check_version(FTNODE node, struct rbuf *rb)
//////////////////// ////////////////////
// 4. // 4.
inline void void
read_node_info(FTNODE node, struct rbuf *rb, int version) read_node_info(FTNODE node, struct rbuf *rb, int version)
{ {
node->layout_version = version; node->layout_version = version;
...@@ -77,7 +77,7 @@ read_node_info(FTNODE node, struct rbuf *rb, int version) ...@@ -77,7 +77,7 @@ read_node_info(FTNODE node, struct rbuf *rb, int version)
//////////////////// ////////////////////
// 5. // 5.
// <CER> Should these be two seperate functions? // <CER> Should these be two seperate functions?
inline void void
allocate_and_read_partition_offsets(FTNODE node, struct rbuf *rb, FTNODE_DISK_DATA *ndd) allocate_and_read_partition_offsets(FTNODE node, struct rbuf *rb, FTNODE_DISK_DATA *ndd)
{ {
XMALLOC_N(node->n_children, node->bp); XMALLOC_N(node->n_children, node->bp);
...@@ -92,7 +92,7 @@ allocate_and_read_partition_offsets(FTNODE node, struct rbuf *rb, FTNODE_DISK_DA ...@@ -92,7 +92,7 @@ allocate_and_read_partition_offsets(FTNODE node, struct rbuf *rb, FTNODE_DISK_DA
//////////////////// ////////////////////
// 6. Check the node info checksum. // 6. Check the node info checksum.
inline int int
check_node_info_checksum(struct rbuf *rb) check_node_info_checksum(struct rbuf *rb)
{ {
int r = 0; int r = 0;
......
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