Граф коммитов

7363 Коммитов

Автор SHA1 Сообщение Дата
eban e40aef464a * 2005-12-21
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9727 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-12-21 05:31:48 +00:00
akr c7f66bdef9 * test/pathname/test_pathname.rb (test_kernel_open): use
File.identical?.
  [ruby-talk:171804]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9726 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-12-21 03:14:39 +00:00
nobu 7c52d5f8cf * eval.c (eval_under_i): evaluate source in caller's frame.
[ruby-dev:28076]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9724 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-12-20 13:41:29 +00:00
why cda674e39c * ext/syck/rubyext.c (syck_emitter_reset): to ensure compatibility
with previous Ruby versions, documents are no longer headless.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9723 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-12-20 04:25:48 +00:00
ocean fb7f646086 * ext/syck/rubyext.c (syck_node_transform): ruby object holding
explicitly freed SyckNode caused SEGV. [ruby-dev:28067]

... I think syck GC problem was solved now!


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9720 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-12-20 03:34:39 +00:00
eban e4413741de * 2005-12-20
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9719 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-12-19 17:35:37 +00:00
akr 0e1642ebbf * io.c (rb_f_backquote): fix a GC problem on
IA64 with gcc 4.0.3 20051216 (prerelease) -O3.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9718 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-12-19 17:11:20 +00:00
ocean a88e840f77 no message
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9717 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-12-19 15:51:11 +00:00
nobu 6df4e18914 * parse.y (rb_symname_p): fixed wrong validation. [ruby-dev:28047]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9715 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-12-19 14:33:11 +00:00
nobu 47084e129c * Makefile.in (XCFLAGS): separated as well as win32/Makefile.sub.
* main.c (always_gc): dllimport is required for VC to import a DLL
  symbol.  fixed: [ruby-dev:28051]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9714 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-12-19 14:31:09 +00:00
ocean 9488784157 * ext/syck/syck.h (S_FREE): small hack. no need to check if pointer is
NULL or not before S_FREE.

* ext/syck/rubyext.c (syck_parser_assign_io): rb_check_string_type can
  return new RString. if so, it becomes unreachable from GC after
  returns syck_parser_assign_io, and can be freed by GC. (dangling
  in syck io system) so extends its life time till syck_parse is called.

* ext/syck/rubyext.c (syck_parser_s_alloc): always allocates bonus,
  so no need to check if NULL, and "volatile VALUE hash"
  is not needed. (bonus->port was not protected in syck_emitter_reset)

* ext/syck/rubyext.c (syck_mark_parser): ditto.

* ext/syck/rubyext.c (syck_parser_load): ditto.

* ext/syck/rubyext.c (syck_parser_load_documents): ditto.

* ext/syck/rubyext.c (syck_emitter_s_alloc): ditto.

* ext/syck/rubyext.c (syck_mark_emitter): ditto.

* ext/syck/rubyext.c (syck_emitter_reset): ditto.

* ext/syck/rubyext.c (syck_scalar_value_set): "should set newly
  allocated memory instead of RString's internal storage" stuff again.
  by this, should call syck_free_node instead of rb_syck_free_node.

* ext/syck/rubyext.c (syck_node_type_id_set): ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9713 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-12-19 14:13:27 +00:00
ocean 56479b7346 * st.c: uses malloc instead of xmalloc to avoid GC. syck uses st_insert
in gram.c to insert node from rb_syck_bad_anchor_handler into
  SyckParser's hash table. if GC occurs in st_insert, it's not under
  SyckParser's mark system yet. so RString can be released wrongly.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9712 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-12-19 14:10:36 +00:00
akr c6c0e6f26b simplify previous change.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9711 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-12-19 08:28:12 +00:00
akr dba8153266 * eval.c (FUNCTION_CALL_MAY_RETURN_TWICE): activate only
before gcc 4.0.3 on SPARC and IA64.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9710 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-12-19 03:23:24 +00:00
eban f511d52438 * 2005-12-19
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9709 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-12-19 03:14:19 +00:00
ocean af5edce080 * ext/syck/rubyext.c: sorry, I reverted my "should set newly
allocated memory instead of RString's internal storage" stuff.
  node allocated in rubyext.c seems to be freed by rb_syck_free_node
  not syck_free_node, and it won't free data.str->ptr and type_id.

 (I still think this is unsafe because RString(foo)->ptr becomes
  dangling pointer when RString is modified or freed, but anyway
  I misunderstood, so go back to original code for now)


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9708 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-12-19 02:42:33 +00:00
ocean 8ed2a927e8 * ext/syck/rubyext.c (syck_emitter_reset): should initialize
emitter->bonus->oid. otherwise rb_gc_mark crashes.

* ext/syck/rubyext.c (syck_mark_parser): should mark anchor nodes
  because they hold ruby objects. (ie: rb_syck_bad_anchor_handler)


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9707 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-12-17 12:57:05 +00:00
eban 74a077aaba * 2005-12-17
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9706 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-12-17 08:47:04 +00:00
akr de85bb0efe * bignum.c (rb_big_rshift): fix a GC problem on
IA64 with gcc 4.0.3 20051216 (prerelease).


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9705 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-12-16 18:59:31 +00:00
akr 3ab3b5b3c8 * eval.c (bmcall): fix a GC problem by tail call on
IA64 with gcc 4.0.3 20051216 (prerelease).


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9704 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-12-16 18:34:57 +00:00
ocean 44ebf5de34 * ext/syck/rubyext.c (rb_syck_compile): fixed memory leak.
* ext/syck/rubyext.c: should protect global variable from GC.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9702 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-12-16 08:56:09 +00:00
akr 5700ea57ff revert previous change.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9701 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-12-16 04:58:51 +00:00
akr 7d2880ddb3 refine "unknown data type" message.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9700 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-12-16 04:49:46 +00:00
ocean 87ea59c208 * ext/syck/rubyext.c (syck_scalar_value_set): should set newly
allocated memory instead of RString's internal storage.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9699 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-12-16 03:17:16 +00:00
eban f4f242b6d2 * 2005-12-16
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9698 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-12-16 02:47:32 +00:00
ocean 7680ca8d26 * ext/syck/rubyext.c (syck_resolver_tagurize): fixed memory leak.
* ext/syck/rubyext.c (syck_node_type_id_set): should set newly
  allocated memory instead of RString's internal storage.

... these fixes won't fix [ruby-dev:27839]. more work is needed.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9697 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-12-16 02:45:35 +00:00
matz 2d6dad4f4f * 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
2005-12-15 03:41:13 +00:00
akr 7d62299a27 require tempdir instead of tempfile.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9693 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-12-15 03:35:04 +00:00
eban 1d745974b1 * 2005-12-15
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9692 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-12-14 16:50:07 +00:00
akr 73b88f6be8 * ext/zlib/zlib.c (zstream_run): fix a GC problem by tail call on
x86_64 with gcc 4.0.3 20051111 (prerelease) (Debian 4.0.2-4)


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9691 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-12-14 16:37:56 +00:00
nobu 55c4223064 * lib/rdoc/parsers/parse_c.rb (find_class_comment): fix for class
document with prototypes.  [ruby-core:06863]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9690 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-12-14 14:50:42 +00:00
nobu 8e4090f4b5 * dir.c (has_magic): glob names contain alphabets to enable case fold
search.  [ruby-dev:27735]

* dir.c (Init_Dir): FNM_SYSCASE which is default case fold flag.
  [ruby-dev:23296]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9689 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-12-14 14:40:14 +00:00
eban 6e23e595cd * 2005-12-14
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9688 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-12-14 04:00:15 +00:00
akr 07611afdc2 * marshal.c (r_object0): fix a GC problem for reading a bignum on
IA64 with gcc 3.3.5 (Debian 1:3.3.5-13).


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9685 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-12-14 03:04:14 +00:00
akr 51f4d6645b * re.c (rb_reg_regcomp): fix a GC problem on x86_64 with
gcc 3.3.5 (Debian 1:3.3.5-13).


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9684 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-12-13 03:27:51 +00:00
akr 682292ea7d * array.c (rb_ary_diff): fix a GC problem on IA64 with
gcc 3.3.5 (Debian 1:3.3.5-13).
  When rb_ary_push is called, there was no register which contains
  `hash' but `&RHASH(hash)->tbl' instead.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9683 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-12-12 16:47:17 +00:00
eban d223611bff * 2005-12-13
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9682 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-12-12 15:12:12 +00:00
akr 2da40f048e * sprintf.c (rb_str_format): fix a GC problem.
[ruby-dev:28001]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9681 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-12-12 15:09:50 +00:00
gotoyuzo 2a0604d7b8 * test/openssl/test_ssl.rb (test_parallel): call GC.start to close
unused files. [ruby-dev:27981]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9680 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-12-12 06:56:08 +00:00
akr 0158c70645 remove unused variables.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9679 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-12-12 05:15:33 +00:00
eban a357c6a926 * 2005-12-12
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9678 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-12-12 03:49:46 +00:00
akr 87ebe712f7 indent "if" body.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9676 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-12-12 03:08:35 +00:00
akr c423d3cbf2 precedes registering global VALUE variables before initializing it.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9675 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-12-12 03:04:53 +00:00
matz 81be039884 * range.c (range_cover): new method Range#cover? added. the
method name might be changed.  thanks to takano32 at
  http://www.rubyist.net/~matz/20051210.html#c08 for name
  suggestion.  [ruby-talk:167182]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9674 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-12-12 01:01:29 +00:00
matz 4d467a0865 * ext/digest/digest.c (rb_digest_base_s_digest): add volatile to
protect temporary context object.  [ruby-dev:27979]

* ext/iconv/iconv.c (Init_iconv): rb_gc_register_address() should
  be called before actual variable initialization.
  [ruby-dev:27986]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9673 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-12-12 00:36:54 +00:00
nagai 1ca94a0307 * ext/tk/lib/tkextlib/SUPPORT_STATUS: update to support libraries in
ActiveTcl8.4.12.0.
* ext/tk/lib/tkextlib/tile/tnotebook.rb: add Tk::Tile::TNotebook#insert.
* ext/tk/sample/tkextlib/tile/demo.rb: improve the look of a part of the demo.
* ext/tk/sample/scrollframe.rb: add a new sample.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9669 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-12-11 14:59:49 +00:00
eban 5389506770 * 2005-12-11
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9668 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-12-11 13:25:58 +00:00
seki 5fdf643637 (test_remote_array_and_hash): pseudo remote objects are protected
against GC. [ruby-dev:27911]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9667 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-12-11 13:17:55 +00:00
keiju 937731e7f8 * lib/matrix.rb: add Matrix#determinant_e, Matrix#rank_e.
[ruby-dev:27820] and related thread.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9666 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-12-09 16:10:45 +00:00
nobu 00f96715f3 * eval.c (calling_scope_t): gave names to magic numbers for rb_call().
[ruby-dev:27978]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9665 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-12-09 15:32:00 +00:00