OSDN Git Service

Fix the symbol not found error.
authorMasaoFujii <masao.fujii@gmail.com>
Thu, 22 Aug 2019 17:45:53 +0000 (02:45 +0900)
committerMasaoFujii <masao.fujii@gmail.com>
Thu, 22 Aug 2019 17:45:53 +0000 (02:45 +0900)
This commit declares three "inline" functions as "static inline" for the fix.

lib/ql.c
lib/str.c

index 93ced41..5d7ab06 100644 (file)
--- a/lib/ql.c
+++ b/lib/ql.c
@@ -3496,7 +3496,7 @@ mk_atom(sen_ctx *ctx, char *str, unsigned int len)
   }
 }
 
-inline sen_obj *
+static inline sen_obj *
 json_readstr(sen_ctx *ctx, jctx *jc)
 {
   char *start, *end;
@@ -3523,7 +3523,7 @@ json_readstr(sen_ctx *ctx, jctx *jc)
   }
 }
 
-inline sen_obj *
+static inline sen_obj *
 json_readstrexp(sen_ctx *ctx, jctx *jc)
 {
   sen_obj *res;
index 66ffebe..158721b 100644 (file)
--- a/lib/str.c
+++ b/lib/str.c
@@ -73,7 +73,7 @@ suffix_init(void)
   }
 }
 
-inline size_t
+static inline size_t
 sen_str_charlen_utf8(const unsigned char *str, const unsigned char *end)
 {
   /* MEMO: This function allows non-null-terminated string as str. */