mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Fixed error messages and descriptions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2940 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
4e30ebe351
commit
840f8bcb9e
2 changed files with 5 additions and 5 deletions
|
@ -174,7 +174,7 @@ the class Handle keeps a handle to opened library.
|
||||||
|
|
||||||
== PtrData class
|
== PtrData class
|
||||||
|
|
||||||
* ptr = PtrData.new(addr, [free = nil])
|
* ptr = PtrData.new(addr, [size = 0, free = nil])
|
||||||
* returns the PtrData object representing the pointer which indicates the
|
* returns the PtrData object representing the pointer which indicates the
|
||||||
address addr. GC frees the memory using the free function.
|
address addr. GC frees the memory using the free function.
|
||||||
|
|
||||||
|
|
|
@ -197,8 +197,8 @@ rb_dlptr_initialize(int argc, VALUE argv[], VALUE self)
|
||||||
f = rb_dlsym2csym(sym);
|
f = rb_dlsym2csym(sym);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
rb_bug("rb_dlptr_s_new");
|
rb_bug("rb_dlptr_initialize");
|
||||||
};
|
}
|
||||||
|
|
||||||
if( p ){
|
if( p ){
|
||||||
Data_Get_Struct(self, struct ptr_data, data);
|
Data_Get_Struct(self, struct ptr_data, data);
|
||||||
|
@ -230,8 +230,8 @@ rb_dlptr_s_malloc(int argc, VALUE argv[], VALUE klass)
|
||||||
f = rb_dlsym2csym(sym);
|
f = rb_dlsym2csym(sym);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
rb_bug("rb_dlptr_s_new");
|
rb_bug("rb_dlptr_s_malloc");
|
||||||
};
|
}
|
||||||
|
|
||||||
obj = rb_dlptr_malloc(s,f);
|
obj = rb_dlptr_malloc(s,f);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue