diff options
| author | Peter Zhu <peter@peterzhu.ca> | 2025-09-15 10:47:14 -0400 |
|---|---|---|
| committer | Peter Zhu <peter@peterzhu.ca> | 2025-09-15 11:43:05 -0400 |
| commit | 1e3e04cd657c35fdd8d95096195d6b72b64e516c (patch) | |
| tree | 6620e9ab91b63fd61e46c31a84399cfacb41e652 /imemo.c | |
| parent | 61df125325c4f5cad0fd63a831f7afd4c3e71dba (diff) | |
Move rb_imemo_tmpbuf_new to imemo.c
Diffstat (limited to 'imemo.c')
| -rw-r--r-- | imemo.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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) { |
