From 1e3e04cd657c35fdd8d95096195d6b72b64e516c Mon Sep 17 00:00:00 2001 From: Peter Zhu Date: Mon, 15 Sep 2025 10:47:14 -0400 Subject: Move rb_imemo_tmpbuf_new to imemo.c --- imemo.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'imemo.c') diff --git a/imemo.c b/imemo.c index 1bef7a71a6..1fc49c434a 100644 --- a/imemo.c +++ b/imemo.c @@ -48,6 +48,12 @@ rb_imemo_new(enum imemo_type type, VALUE v0, size_t size) return (VALUE)obj; } +VALUE +rb_imemo_tmpbuf_new(void) +{ + return rb_imemo_new(imemo_tmpbuf, 0, sizeof(rb_imemo_tmpbuf_t)); +} + void * rb_alloc_tmp_buffer_with_count(volatile VALUE *store, size_t size, size_t cnt) { -- cgit v1.2.3