[PATCH v3 6/7] memtx: rename memtx_tree.c to memtx_tree_impl.h

Kirill Shcherbatov kshcherbatov at tarantool.org
Fri Feb 22 18:42:31 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 dd7684d8e..82209eaab 100644
--- a/src/box/memtx_tree_decl.c
+++ b/src/box/memtx_tree_decl.c
@@ -62,7 +62,7 @@ struct memtx_basic_tree_key_data {
 #define MEMTX_TREE_IDENTICAL(elem_a_ptr, elem_b_ptr)				\
 	({*elem_a_ptr == *elem_b_ptr;})
 
-#include "memtx_tree.c"
+#include "memtx_tree_impl.h"
 
 #undef memtx_tree_key_t
 #undef memtx_tree_elem_t
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