@@ -138,10 +138,8 @@ static inline enum imemo_type imemo_type(VALUE imemo);
138138static inline int imemo_type_p (VALUE imemo , enum imemo_type imemo_type );
139139static inline bool imemo_throw_data_p (VALUE imemo );
140140static 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 );
142141static inline void * RB_IMEMO_TMPBUF_PTR (VALUE v );
143142static 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 );
145143static inline void MEMO_V1_SET (struct MEMO * m , VALUE v );
146144static inline void MEMO_V2_SET (struct MEMO * m , VALUE v );
147145
@@ -201,7 +199,7 @@ rb_vm_ifunc_proc_new(rb_block_call_func_t func, const void *data)
201199}
202200
203201static inline VALUE
204- rb_imemo_tmpbuf_auto_free_pointer (void )
202+ rb_imemo_tmpbuf_new (void )
205203{
206204 return rb_imemo_new (imemo_tmpbuf , 0 , sizeof (rb_imemo_tmpbuf_t ));
207205}
@@ -220,7 +218,7 @@ rb_imemo_tmpbuf_set_ptr(VALUE v, void *ptr)
220218}
221219
222220static 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 )
224222{
225223 const void * src ;
226224 VALUE imemo ;
@@ -230,7 +228,7 @@ rb_imemo_tmpbuf_auto_free_pointer_new_from_an_RString(VALUE str)
230228
231229 StringValue (str );
232230 /* create tmpbuf to keep the pointer before xmalloc */
233- imemo = rb_imemo_tmpbuf_auto_free_pointer ();
231+ imemo = rb_imemo_tmpbuf_new ();
234232 tmpbuf = (rb_imemo_tmpbuf_t * )imemo ;
235233 len = RSTRING_LEN (str );
236234 src = RSTRING_PTR (str );
0 commit comments