@@ -262,14 +262,14 @@ pycall_pyptr_is_none(VALUE obj)
262
262
}
263
263
264
264
static VALUE
265
- pycall_pyptr_get_address (VALUE obj )
265
+ pycall_pyptr_get_ptr_address (VALUE obj )
266
266
{
267
267
PyObject * pyobj = get_pyobj_ptr (obj );
268
268
return PTR2NUM (pyobj );
269
269
}
270
270
271
271
static VALUE
272
- pycall_pyptr_get_refcnt (VALUE obj )
272
+ pycall_pyptr_get_ob_refcnt (VALUE obj )
273
273
{
274
274
PyObject * pyobj = get_pyobj_ptr (obj );
275
275
if (pyobj )
@@ -278,7 +278,7 @@ pycall_pyptr_get_refcnt(VALUE obj)
278
278
}
279
279
280
280
static VALUE
281
- pycall_pyptr_get_type (VALUE obj )
281
+ pycall_pyptr_get_ob_type (VALUE obj )
282
282
{
283
283
PyObject * pyobj = get_pyobj_ptr (obj );
284
284
if (pyobj ) {
@@ -333,9 +333,9 @@ Init_pyptr(void)
333
333
rb_define_singleton_method (cPyPtr , "new" , pycall_pyptr_s_new , 1 );
334
334
rb_define_method (cPyPtr , "null?" , pycall_pyptr_is_null , 0 );
335
335
rb_define_method (cPyPtr , "none?" , pycall_pyptr_is_none , 0 );
336
- rb_define_method (cPyPtr , "__address__" , pycall_pyptr_get_address , 0 );
337
- rb_define_method (cPyPtr , "__refcnt__ " , pycall_pyptr_get_refcnt , 0 );
338
- rb_define_method (cPyPtr , "__type__ " , pycall_pyptr_get_type , 0 );
336
+ rb_define_method (cPyPtr , "__address__" , pycall_pyptr_get_ptr_address , 0 );
337
+ rb_define_method (cPyPtr , "__ob_refcnt__ " , pycall_pyptr_get_ob_refcnt , 0 );
338
+ rb_define_method (cPyPtr , "__ob_type__ " , pycall_pyptr_get_ob_type , 0 );
339
339
rb_define_method (cPyPtr , "inspect" , pycall_pyptr_inspect , 0 );
340
340
rb_define_method (cPyPtr , "kind_of?" , pycall_pyptr_is_kind_of , 1 );
341
341
rb_define_method (cPyPtr , "is_a?" , pycall_pyptr_is_kind_of , 1 );
0 commit comments