[tarantool-patches] [PATCH 1/4] Move space_is_system helper from CPP define guard

Nikita Pettik korablev at tarantool.org
Mon Mar 19 21:10:37 MSK 2018


It uses no C++ functionality, so should be available from C source
files.
---
 src/box/schema.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/box/schema.h b/src/box/schema.h
index 9df4d4e24..b612b8b6f 100644
--- a/src/box/schema.h
+++ b/src/box/schema.h
@@ -92,6 +92,9 @@ space_foreach(int (*func)(struct space *sp, void *udata), void *udata);
 const char *
 schema_find_name(enum schema_object_type type, uint32_t object_id);
 
+bool
+space_is_system(struct space *space);
+
 #if defined(__cplusplus)
 } /* extern "C" */
 
@@ -116,9 +119,6 @@ space_cache_replace(struct space *space);
 struct space *
 space_cache_delete(uint32_t id);
 
-bool
-space_is_system(struct space *space);
-
 void
 schema_init();
 
-- 
2.15.1





More information about the Tarantool-patches mailing list