diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-12-20 08:33:17 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-12-20 08:33:17 +0000 |
commit | 64eba95e4076f0a66b41bddcc5c524151d5db729 (patch) | |
tree | 023b7da77738e7e049de5002eade542b7f17e930 /dir.c | |
parent | 264d879c202be0d5552001d4fa305b48a99927f3 (diff) | |
download | ruby-64eba95e4076f0a66b41bddcc5c524151d5db729.tar.gz ruby-64eba95e4076f0a66b41bddcc5c524151d5db729.tar.xz ruby-64eba95e4076f0a66b41bddcc5c524151d5db729.zip |
* parse.y (do_block): split "do" block and tLBRACE_ARG block.
* parse.y (cmd_brace_block): new tLBRACE_ARG block rule
* parse.y (command): can take optional cmd_brace_block; use %prec
to resolve shift/reduce conflict. (ruby-bugs-ja PR#372)
* eval.c (ruby_finalize): trace_func should be cleared here (after
executing exit procs and finalizers).
* eval.c (rb_define_alloc_func): new allocation framework, based
on Nobu's work [ruby-dev:19116]. "allocate" method is no longer
used for object allocation.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3188 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'dir.c')
-rw-r--r-- | dir.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1074,7 +1074,7 @@ Init_Dir() rb_include_module(rb_cDir, rb_mEnumerable); - rb_define_singleton_method(rb_cDir, "allocate", dir_s_alloc, 0); + rb_define_alloc_func(rb_cDir, dir_s_alloc); rb_define_singleton_method(rb_cDir, "open", dir_s_open, 1); rb_define_singleton_method(rb_cDir, "foreach", dir_foreach, 1); rb_define_singleton_method(rb_cDir, "entries", dir_entries, 1); |