summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorttate <ttate@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-10-07 01:09:50 +0000
committerttate <ttate@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-10-07 01:09:50 +0000
commited699e6b86bee3c78079476016c57b262d75a883 (patch)
tree54a1e53a18413523b0d66679b8527b0252aea720
parentb937c16e4346fe1792fc01cdb9e4904d819ffa54 (diff)
downloadruby-ed699e6b86bee3c78079476016c57b262d75a883.tar.gz
ruby-ed699e6b86bee3c78079476016c57b262d75a883.tar.xz
ruby-ed699e6b86bee3c78079476016c57b262d75a883.zip
Fixed error messages and descriptions.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2940 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ext/dl/doc/dl.txt2
-rw-r--r--ext/dl/ptr.c8
2 files changed, 5 insertions, 5 deletions
diff --git a/ext/dl/doc/dl.txt b/ext/dl/doc/dl.txt
index 44499bba1..51da92c49 100644
--- a/ext/dl/doc/dl.txt
+++ b/ext/dl/doc/dl.txt
@@ -174,7 +174,7 @@ the class Handle keeps a handle to opened library.
== 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
address addr. GC frees the memory using the free function.
diff --git a/ext/dl/ptr.c b/ext/dl/ptr.c
index 21a703c24..2ad022067 100644
--- a/ext/dl/ptr.c
+++ b/ext/dl/ptr.c
@@ -197,8 +197,8 @@ rb_dlptr_initialize(int argc, VALUE argv[], VALUE self)
f = rb_dlsym2csym(sym);
break;
default:
- rb_bug("rb_dlptr_s_new");
- };
+ rb_bug("rb_dlptr_initialize");
+ }
if( p ){
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);
break;
default:
- rb_bug("rb_dlptr_s_new");
- };
+ rb_bug("rb_dlptr_s_malloc");
+ }
obj = rb_dlptr_malloc(s,f);