diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-07-17 04:50:19 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-07-17 04:50:19 +0000 |
commit | 4bf3cb5ba9c0242bd5a6d0d55b7db9f837c09edf (patch) | |
tree | a203d15df3becb4afddb138d470d93433e129f3f | |
parent | 95bc02237635d3fe42532bfe53038257575cee75 (diff) | |
download | ruby-4bf3cb5ba9c0242bd5a6d0d55b7db9f837c09edf.tar.gz |
* ext/pathname/lib/pathname.rb: moved from lib/pathname.rb.
require pathname.so.
* ext/pathname/pathname.c: new file to define empty Pathname class.
* ext/pathname/extconf.rb: new file.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28663 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 9 | ||||
-rw-r--r-- | ext/.document | 2 | ||||
-rw-r--r-- | ext/pathname/extconf.rb | 2 | ||||
-rw-r--r-- | ext/pathname/lib/pathname.rb (renamed from lib/pathname.rb) | 2 | ||||
-rw-r--r-- | ext/pathname/pathname.c | 9 |
5 files changed, 24 insertions, 0 deletions
@@ -1,3 +1,12 @@ +Sat Jul 17 13:48:22 2010 Tanaka Akira <akr@fsij.org> + + * ext/pathname/lib/pathname.rb: moved from lib/pathname.rb. + require pathname.so. + + * ext/pathname/pathname.c: new file to define empty Pathname class. + + * ext/pathname/extconf.rb: new file. + Sat Jul 17 13:04:45 2010 Nobuyoshi Nakada <nobu@ruby-lang.org> * thread.c (rb_thread_wakeup_alive): split from rb_thread_wakeup. diff --git a/ext/.document b/ext/.document index 3e767d20a8..6f4f668ddf 100644 --- a/ext/.document +++ b/ext/.document @@ -47,6 +47,8 @@ openssl/ossl_x509req.c openssl/ossl_x509revoked.c openssl/ossl_x509store.c openssl/lib/openssl/buffering.rb +pathname/pathname.c +pathname/lib pty/pty.c pty/lib readline/readline.c diff --git a/ext/pathname/extconf.rb b/ext/pathname/extconf.rb new file mode 100644 index 0000000000..6720903e88 --- /dev/null +++ b/ext/pathname/extconf.rb @@ -0,0 +1,2 @@ +require 'mkmf' +create_makefile('pathname') diff --git a/lib/pathname.rb b/ext/pathname/lib/pathname.rb index f24fd4d76d..b150a31f69 100644 --- a/lib/pathname.rb +++ b/ext/pathname/lib/pathname.rb @@ -11,6 +11,8 @@ # <tt>pathname.rb</tt> is distributed with Ruby since 1.8.0. # +require 'pathname.so' + # # == Pathname # diff --git a/ext/pathname/pathname.c b/ext/pathname/pathname.c new file mode 100644 index 0000000000..36ad9c8708 --- /dev/null +++ b/ext/pathname/pathname.c @@ -0,0 +1,9 @@ +#include "ruby.h" + +static VALUE rb_cPathname; + +void +Init_pathname() +{ + rb_cPathname = rb_define_class("Pathname", rb_cObject); +} |