[PATCH v2 3/4] box: rename memtx_tree.c to memtx_tree_impl.h

Kirill Shcherbatov kshcherbatov at tarantool.org
Wed Feb 13 12:32:27 MSK 2019


File meta_tree.c that implements the template class memtx_tree,
renamed to memes_tree_impl.h due to the fact that the inclusion
of code in header files is more common.

Needed for #3961
---
 src/box/memtx_tree_decl.c                   | 2 +-
 src/box/{memtx_tree.c => memtx_tree_impl.h} | 0
 2 files changed, 1 insertion(+), 1 deletion(-)
 rename src/box/{memtx_tree.c => memtx_tree_impl.h} (100%)

diff --git a/src/box/memtx_tree_decl.c b/src/box/memtx_tree_decl.c
index 03e0e0ed7..084a0594f 100644
--- a/src/box/memtx_tree_decl.c
+++ b/src/box/memtx_tree_decl.c
@@ -60,7 +60,7 @@ struct memtx_tuple_tree_key_data {
 #define MEMTX_TREE_KEY_GET(key_ptr, part_count_ptr)				\
 	({*part_count_ptr = (key_ptr)->part_count; (key_ptr)->key;})
 
-#include "memtx_tree.c"
+#include "memtx_tree_impl.h"
 
 #undef memtx_tree_key
 #undef memtx_tree_elem
diff --git a/src/box/memtx_tree.c b/src/box/memtx_tree_impl.h
similarity index 100%
rename from src/box/memtx_tree.c
rename to src/box/memtx_tree_impl.h
-- 
2.20.1




More information about the Tarantool-patches mailing list