From af13e892ad6263ff3d68a84484b926678e8f9374 Mon Sep 17 00:00:00 2001 From: Petr Porazil Date: Tue, 24 Nov 2015 14:41:27 +0100 Subject: [PATCH] Adapted to changed inline function inclusion in gcc output. Signed-off-by: Petr Porazil --- ulut/ul_gavlchk.c | 2 +- ulut/ul_gsachk.c | 2 +- ulut/ul_hashtabchk.c | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/ulut/ul_gavlchk.c b/ulut/ul_gavlchk.c index 66deb31..a1fc05b 100644 --- a/ulut/ul_gavlchk.c +++ b/ulut/ul_gavlchk.c @@ -134,7 +134,7 @@ GAVL_FLES_INT_DEC(cust2, cust2_root_t, cust2_item_t, cust2_key_t, my_root, my_node, my_val, cust2_cmp_fnc) #endif /*GAVL_TEST_FLES*/ -inline int +static inline int cust2_cmp_fnc(const cust2_key_t *a, const cust2_key_t *b) { if (*a>*b) return 1; diff --git a/ulut/ul_gsachk.c b/ulut/ul_gsachk.c index 3a16c3d..59d6102 100644 --- a/ulut/ul_gsachk.c +++ b/ulut/ul_gsachk.c @@ -42,7 +42,7 @@ typedef int cust2_key_t; GSA_CUST_DEC(cust2, cust2_root_t, cust2_item_t, cust2_key_t, my_root, my_val, cust2_cmp_fnc) -inline int +static inline int cust2_cmp_fnc(const cust2_key_t *a, const cust2_key_t *b) { if (*a>*b) return 1; diff --git a/ulut/ul_hashtabchk.c b/ulut/ul_hashtabchk.c index 3312fd0..3e5e24e 100644 --- a/ulut/ul_hashtabchk.c +++ b/ulut/ul_hashtabchk.c @@ -36,7 +36,7 @@ typedef int cust3_key_t; UL_HASTAB_CUST_NODE_INT_DEC(cust3, cust3_table_t, cust3_item_t, cust3_key_t, my_table, my_node, my_val, cust3_cmp_fnc) -inline int +static inline int cust3_cmp_fnc(const cust3_key_t *a, const cust3_key_t *b) { if (*a>*b) return 1; @@ -44,13 +44,13 @@ cust3_cmp_fnc(const cust3_key_t *a, const cust3_key_t *b) return 0; } -inline ul_hashtab_hashval_t +static inline ul_hashtab_hashval_t cust3_hash_fnc(const cust3_key_t *a) { return *a; } -inline ul_hashtab_hashval_t +static inline ul_hashtab_hashval_t cust3_hash_get_fnc(const cust3_item_t *item) { #ifdef UL_HASHTAB_WITH_HASHVAL @@ -60,7 +60,7 @@ cust3_hash_get_fnc(const cust3_item_t *item) #endif /*UL_HASHTAB_WITH_HASHCACHE*/ } -inline void +static inline void cust_hash_prep_fnc(cust3_item_t *item) { #ifdef UL_HASHTAB_WITH_HASHVAL -- 2.39.2