From 94b20e3128eaac566abfd7c0c773bb4c076c453e Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Thu, 3 Apr 2025 10:46:27 +0800 Subject: git2d: Use extern inline for utf8_decode --- git2d/utf8.c | 3 +++ git2d/utf8.h | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 git2d/utf8.c (limited to 'git2d') diff --git a/git2d/utf8.c b/git2d/utf8.c new file mode 100644 index 0000000..2937cb6 --- /dev/null +++ b/git2d/utf8.c @@ -0,0 +1,3 @@ +#include "utf8.h" + +extern inline void *utf8_decode(void *buf, uint32_t *c, int *e); diff --git a/git2d/utf8.h b/git2d/utf8.h index 894cbd5..56c6285 100644 --- a/git2d/utf8.h +++ b/git2d/utf8.h @@ -26,7 +26,7 @@ * occurs, this pointer will be a guess that depends on the particular * error, but it will always advance at least one byte. */ -static void * +inline void * utf8_decode(void *buf, uint32_t *c, int *e) { static const char lengths[] = { -- cgit v1.2.3