win32/deps/ruby211/ext/dl/dl.c
/*
 * call-seq: DL.realloc(addr, size)
 *
 * Change the size of the memory allocated at the memory location +addr+ to
 * +size+ bytes.  Returns the memory address of the reallocated memory, which
 * may be different than the address passed in.
 */
call-seq: DL.realloc(addr, size)
Change the size of the memory allocated at the memory location +addr+ to
+size+ bytes.  Returns the memory address of the reallocated memory, which
may be different than the address passed in.
call - seq : DL . realloc ( addr size ) Change the size of the memory allocated at the memory location + addr + to + size + bytes . Returns the memory address of the reallocated memory which may be different than the address passed in .
VALUE
rb_dl_realloc(VALUE self, VALUE addr, VALUE size)
{
    void *ptr = NUM2PTR(addr);
    ptr = (void*)ruby_xrealloc(ptr, NUM2INT(size));
    return PTR2NUM(ptr);
}
VALUE rb_dl_realloc ( VALUE self , VALUE addr , VALUE size ) { void * ptr = NUM2PTR ( addr ) ; ptr = ( void * ) ruby_xrealloc ( ptr , NUM2INT ( size ) ) ; return PTR2NUM ( ptr ) ; }
call-seq: DL.realloc(addr, size)
 Change the size of the memory allocated at the memory location +addr+ to
 +size+ bytes.
call - seq : DL . realloc ( addr size ) Change the size of the memory allocated at the memory location + addr + to + size + bytes .