Skip to content

Commit eee32f0

Browse files
committed
cleanup: clean code from excessive use of "inline"
There is serious "inline disease" in the code. It seems that "inline" is set to all static function. The patch clears the tarantool_schema.c file.
1 parent 9a2dd3b commit eee32f0

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/tarantool_schema.c

+8-8
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ schema_index_value_free(const struct schema_index_value *val) {
6969
}
7070
}
7171

72-
static inline void
72+
static void
7373
schema_index_free(struct mh_schema_index_t *schema) {
7474
int pos = 0;
7575
mh_int_t index_slot = 0;
@@ -146,7 +146,7 @@ mh_spacecmp_key_eq(
146146
#define MH_DEBUG 1
147147
#include "third_party/mhash.h"
148148

149-
static inline void
149+
static void
150150
schema_space_value_free(const struct schema_space_value *val) {
151151
if (val) {
152152
pefree(val->space_name, 1);
@@ -161,7 +161,7 @@ schema_space_value_free(const struct schema_space_value *val) {
161161
}
162162
}
163163

164-
static inline void
164+
static void
165165
schema_space_free(struct mh_schema_space_t *schema) {
166166
int pos = 0;
167167
mh_int_t space_slot = 0;
@@ -212,7 +212,7 @@ int parse_field_type(const char *sfield, size_t sfield_len) {
212212
return FT_OTHER;
213213
}
214214

215-
static inline int
215+
static int
216216
parse_schema_space_value_value(struct schema_field_value *fld,
217217
const char **tuple) {
218218
uint32_t sfield_len = 0;
@@ -240,7 +240,7 @@ parse_schema_space_value_value(struct schema_field_value *fld,
240240
return -1;
241241
}
242242

243-
static inline int
243+
static int
244244
parse_schema_space_value(struct schema_space_value *space_string,
245245
const char **tuple) {
246246
uint32_t fmp_tmp_len = 0;
@@ -269,7 +269,7 @@ parse_schema_space_value(struct schema_space_value *space_string,
269269
return -1;
270270
}
271271

272-
static inline int
272+
static int
273273
parse_schema_index_value(struct schema_index_value *index_string,
274274
const char **tuple) {
275275
if (mp_typeof(**tuple) != MP_ARRAY)
@@ -304,7 +304,7 @@ parse_schema_index_value(struct schema_index_value *index_string,
304304
return -1;
305305
}
306306

307-
static inline int
307+
static int
308308
schema_add_space(
309309
struct mh_schema_space_t *schema,
310310
const char **data
@@ -421,7 +421,7 @@ tarantool_schema_add_spaces(
421421
return -1;
422422
}
423423

424-
static inline int schema_add_index(
424+
static int schema_add_index(
425425
struct mh_schema_space_t *schema,
426426
const char **data
427427
) {

0 commit comments

Comments
 (0)