1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* lib/tmpdir.rb: merged RDoc patch from Eric Hodel <drbrain at

segment7.net>.  [ruby-core:06894]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9694 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2005-12-15 03:41:13 +00:00
parent 7d62299a27
commit 2d6dad4f4f
4 changed files with 10 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Thu Dec 15 12:35:14 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
* lib/tmpdir.rb: merged RDoc patch from Eric Hodel <drbrain at
segment7.net>. [ruby-core:06894]
Thu Dec 15 01:33:31 2005 Tanaka Akira <akr@m17n.org> Thu Dec 15 01:33:31 2005 Tanaka Akira <akr@m17n.org>
* ext/zlib/zlib.c (zstream_run): fix a GC problem by tail call on * ext/zlib/zlib.c (zstream_run): fix a GC problem by tail call on

2
gc.c
View file

@ -596,7 +596,7 @@ gc_mark_rest(void)
MEMCPY(tmp_arry, mark_stack, VALUE, MARK_STACK_MAX); MEMCPY(tmp_arry, mark_stack, VALUE, MARK_STACK_MAX);
init_mark_stack(); init_mark_stack();
while(p != tmp_arry){ while (p != tmp_arry){
p--; p--;
gc_mark_children(*p, 0); gc_mark_children(*p, 0);
} }

View file

@ -39,5 +39,6 @@ thread.rb
thwait.rb thwait.rb
time.rb time.rb
timeout.rb timeout.rb
tmpdir.rb
uri uri
yaml.rb yaml.rb

View file

@ -24,6 +24,9 @@ class Dir
rescue LoadError rescue LoadError
end end
##
# Returns the operating system's temporary file path.
def Dir::tmpdir def Dir::tmpdir
tmp = '.' tmp = '.'
if $SAFE > 0 if $SAFE > 0