@@ -138,10 +138,8 @@ static inline enum imemo_type imemo_type(VALUE imemo);
138
138
static inline int imemo_type_p (VALUE imemo , enum imemo_type imemo_type );
139
139
static inline bool imemo_throw_data_p (VALUE imemo );
140
140
static inline struct vm_ifunc * rb_vm_ifunc_proc_new (rb_block_call_func_t func , const void * data );
141
- static inline VALUE rb_imemo_tmpbuf_auto_free_pointer (void );
142
141
static inline void * RB_IMEMO_TMPBUF_PTR (VALUE v );
143
142
static inline void * rb_imemo_tmpbuf_set_ptr (VALUE v , void * ptr );
144
- static inline VALUE rb_imemo_tmpbuf_auto_free_pointer_new_from_an_RString (VALUE str );
145
143
static inline void MEMO_V1_SET (struct MEMO * m , VALUE v );
146
144
static inline void MEMO_V2_SET (struct MEMO * m , VALUE v );
147
145
@@ -201,7 +199,7 @@ rb_vm_ifunc_proc_new(rb_block_call_func_t func, const void *data)
201
199
}
202
200
203
201
static inline VALUE
204
- rb_imemo_tmpbuf_auto_free_pointer (void )
202
+ rb_imemo_tmpbuf_new (void )
205
203
{
206
204
return rb_imemo_new (imemo_tmpbuf , 0 , sizeof (rb_imemo_tmpbuf_t ));
207
205
}
@@ -220,7 +218,7 @@ rb_imemo_tmpbuf_set_ptr(VALUE v, void *ptr)
220
218
}
221
219
222
220
static inline VALUE
223
- rb_imemo_tmpbuf_auto_free_pointer_new_from_an_RString (VALUE str )
221
+ rb_imemo_tmpbuf_new_from_an_RString (VALUE str )
224
222
{
225
223
const void * src ;
226
224
VALUE imemo ;
@@ -230,7 +228,7 @@ rb_imemo_tmpbuf_auto_free_pointer_new_from_an_RString(VALUE str)
230
228
231
229
StringValue (str );
232
230
/* create tmpbuf to keep the pointer before xmalloc */
233
- imemo = rb_imemo_tmpbuf_auto_free_pointer ();
231
+ imemo = rb_imemo_tmpbuf_new ();
234
232
tmpbuf = (rb_imemo_tmpbuf_t * )imemo ;
235
233
len = RSTRING_LEN (str );
236
234
src = RSTRING_PTR (str );
0 commit comments