From b4198bb4483ded9af5b0b119dfa6737cc2971bb1 Mon Sep 17 00:00:00 2001 From: szdytom Date: Tue, 11 Jun 2024 19:18:31 +0800 Subject: [PATCH] make pkpy_Str__take_buf hidden --- include/pocketpy/common/str.h | 1 - src/common/sourcedata.c | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/include/pocketpy/common/str.h b/include/pocketpy/common/str.h index f6842c91..7fb2ca6b 100644 --- a/include/pocketpy/common/str.h +++ b/include/pocketpy/common/str.h @@ -34,7 +34,6 @@ inline int pkpy_Str__size(const pkpy_Str* self){ int pkpy_utils__u8_header(unsigned char c, bool suppress); void pkpy_Str__ctor(pkpy_Str* self, const char* data); void pkpy_Str__ctor2(pkpy_Str* self, const char* data, int size); -void pkpy_Str__take_buf(pkpy_Str *self, char *data, int size); void pkpy_Str__dtor(pkpy_Str* self); pkpy_Str pkpy_Str__copy(const pkpy_Str* self); pkpy_Str pkpy_Str__concat(const pkpy_Str* self, const pkpy_Str* other); diff --git a/src/common/sourcedata.c b/src/common/sourcedata.c index c38f1f90..51840a92 100644 --- a/src/common/sourcedata.c +++ b/src/common/sourcedata.c @@ -4,6 +4,8 @@ #include #include +void pkpy_Str__take_buf(pkpy_Str *self, char *data, int size); + void pkpy_SourceData__ctor(struct pkpy_SourceData* self, const char* source, int source_size,