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

508 Коммитов

Автор SHA1 Сообщение Дата
eban e9f9915a4c gcc-2.95.2-7(cygwin) support.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-01-31 14:27:37 +00:00
matz 35e5ddf6cf * eval.c (block_pass): return from block jumps directory to
block invoker.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1154 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-01-29 06:12:56 +00:00
matz 2f0faf671d * string.c (str_independent): should not clear str->orig here.
it's too early.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1153 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-01-29 05:10:42 +00:00
matz 161e3313d2 * parse.y: clarify do ambiguity, bit more complex but natural
from my point of view.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1151 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-01-26 05:02:19 +00:00
matz 74273daffb * eval.c (POP_BLOCK_TAG): call rb_gc_force_recycle() if block has
not been objectified.

* eval.c (rb_callcc): should nail down block->tag history to avoid
  rb_gc_force_recycle().


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1150 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-01-24 06:32:10 +00:00
knu 0dc1a293fd * lib/cgi.rb: fix the problem that when running under mod_ruby
header() outputs only one Set-Cookie line.

Approved by:	wakou, matz


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1149 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-01-24 06:01:47 +00:00
matz e111bdb9d3 * gc.c (rb_gc_call_finalizer_at_exit): should finalize objects in
deferred_final_list too.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1147 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-01-23 09:55:10 +00:00
eban 2455b077df 2001-01-23
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1146 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-01-23 09:14:50 +00:00
matz 7635ff6a05 * gc.c (os_live_obj): do not list terminated object.
* gc.c (os_obj_of): ditto.

* gc.c (rb_gc_mark): support new T_BLKTAG tag.

* gc.c (obj_free): ditto.

* eval.c (new_blktag): creation of new block tag, which holds
  destination of global jump and orphan status.

* eval.c (block_pass): break from orphan Proc object will raise a
  LocalJumpError exception.

* eval.c (block_pass): behavior consistency with proc_call(). do
  not propagate `break'.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1145 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-01-23 08:08:59 +00:00
eban 9d0bba43bb * mkconfig.rb: autoconf 2.49 support.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1143 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-01-22 07:37:14 +00:00
matz 6aa451b9dd * parse.y (block_call): syntax restructure.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1142 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-01-20 14:02:28 +00:00
matz 77b8745d4a * parse.y (yylex): fixed serious syntax misbehavior. do's
preceding was too high.  a block in `foo bar do .. end' should
  be passed to `foo', not `bar'.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1141 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-01-19 19:00:28 +00:00
eban 72d9a8598d 2001-01-18
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1139 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-01-18 12:57:08 +00:00
eban 0232870f7d 2000-01-18
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1138 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-01-18 12:36:19 +00:00
matz 0b3092922d * io.c (rb_io_s_read): new method to call IO#read from
pathname.  In addition, it accepts third optional argument to
  specify starting point.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1137 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-01-18 08:43:14 +00:00
eban 24a286efe1 * mkconfig.rb, win32/config.status.in: remove DEFS definition.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1136 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-01-17 04:45:49 +00:00
eban 3fff54d2a0 * win32/config.status.in: remove DEFS definition.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1135 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-01-17 04:45:38 +00:00
eban 71e591aed6 * mkconfig.rb: remove DEFS definition.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1134 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-01-17 04:45:22 +00:00
eban 70e3e77f3b * configure.in: remove DEFS definition.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1133 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-01-17 04:33:29 +00:00
aamine 7adcec68b1 aamine
* lib/net/protocol.rb: ignore EOFError for read.
* lib/net/http.rb: user specified header was not used.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1132 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-01-16 07:57:43 +00:00
eban c46cf18e3b 2001-01-15
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1129 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-01-15 08:26:34 +00:00
matz 971a4d94f0 Mon Jan 15 16:00:07 2001 Yukihiro Matsumoto <matz@ruby-lang.org>
* pack.c (pack_unpack): should check associated pointer packed by
	  pack("P").  restriction added.

Sun Jan 14 21:49:28 2001  Koji Arai  <JCA02266@nifty.ne.jp>

	* sprintf.c (rb_f_sprintf): simple typo.  binary base should be 2,
	  not '2'.

	* re.c (rb_reg_s_last_match): should explicitly return nth match.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1127 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-01-15 07:01:00 +00:00
usa ac8a2a31c2 *** empty log message ***
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1126 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-01-14 09:22:24 +00:00
aamine 0c717d6a58 aamine
* lib/net/protocol.rb (adding): too few "yield" in case of arg is not String/File.
* lib/net/http.rb: add http request object.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1125 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-01-13 19:07:15 +00:00
eban e9c8b36b1e * re.c (rb_reg_desc): separate RE_OPTION_MULTILINE
* re.c (rb_reg_options): add RE_OPTION_{POSIXLINE,RE_OPTION_MULTILINE,
  RE_OPTION_EXTENDED}


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1123 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-01-13 10:47:12 +00:00
eban e63525e97e eban
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1122 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-01-13 10:46:35 +00:00
eban fdcbe32f27 eban
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1118 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-01-11 08:32:54 +00:00
eban 6ee84cbabe NORETURN, INLINE
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1117 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-01-11 01:56:08 +00:00
eban 8bbfa6fa4c INLINE
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1116 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-01-11 01:55:18 +00:00
eban d08c50dcc4 m17n cleanup
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1115 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-01-11 01:21:25 +00:00
matz 5a9b26eb9c mbclen2 fix
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1114 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-01-10 10:10:43 +00:00
matz 3ea9ef023b inline fix
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1113 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-01-10 10:07:31 +00:00
matz 4c09e12b04 m17n cleanup ;_;
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1112 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-01-10 09:52:13 +00:00
eban fd8eadd2af 2001-01-10
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1110 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-01-10 08:22:22 +00:00
eban 74d0eaf6a2 NORETURN
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1109 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-01-10 08:09:01 +00:00
matz 81ef4309a2 * m17n baseline.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1107 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-01-10 07:52:46 +00:00
eban 6b5ad7c5b2 setres[ug]id, NORETURN
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1106 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-01-10 07:30:18 +00:00
eban ab9be24857 eban
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1104 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-01-10 04:49:41 +00:00
eban 51173d8ae4 * ruby.c (load_file): typo(rb_load_fail -> rb_load_failed).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1103 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-01-10 02:30:41 +00:00
knu c7b4e9f262 Ignore configure and rbconfig.rb too.
Don't ignore .cvsignore itself.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1102 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-01-09 17:19:05 +00:00
knu cf4d89f23b Add .cvsignore's.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1099 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-01-09 17:11:36 +00:00
matz a404ead89e * string.c (rb_str_reverse_bang): forgot to call rb_str_modify().
* object.c (rb_obj_taint): check frozen status before modifying
  taint status.

* object.c (rb_obj_untaint): ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1097 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-01-09 16:55:50 +00:00
matz 254004fd9e * error.c: typo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1096 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-01-09 08:24:35 +00:00
matz d110e3f551 * file.c (path_check_1): should restore modified path.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1093 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-01-09 08:04:39 +00:00
eban 818b4db148 eban
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1092 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-01-09 07:32:00 +00:00
matz 87beea4496 * enum.c (enum_inject): new method.
* gc.c (rb_gc_call_finalizer_at_exit): clear klass member of
  terminating object.

* eval.c (rb_call): raise exception for terminated object.

* bignum.c (bigdivrem): t2 might be too big for signed long; do
  not use rb_int2big(), but rb_uint2big().

* error.c (rb_load_fail): new func to report LoadError.

* ruby.c (load_file): use rb_load_fail.

* eval.c (ruby_finalize): should enclosed by PUSH_TAG/POP_TAG.

* gc.c (rb_gc_mark): link 2 of NODE_IFUNC should not be explicitly
  marked.  it may contain non object pointer.

* re.c (reg_s_last_match): Regexp::last_match(nth) returns nth
  substring of the match  (alternative for $& and $<digit>).

* eval.c (rb_mod_define_method): wrong comparison for blocks.

* gc.c (id2ref): should handle Symbol too.

* gc.c (id2ref): should print original ptr value

* eval.c (rb_iterate): NODE_CFUNC does not protect its data
  (nd_tval), so create new node NODE_IFUNC for iteration C
  function.

* eval.c (rb_yield_0): use NODE_IFUNC.

* gc.c (rb_gc_mark): support NODE_IFUNC.

* gc.c (mem_error): prohibit recursive mem_error().
  (ruby-bugs-ja:PR#36)

* eval.c (rb_thread_fd_writable): should not switch context if
  rb_thread_critical is set.

* eval.c (rb_thread_wait_fd): ditto.

* eval.c (rb_thread_wait_for): ditto.

* eval.c (rb_thread_select): ditto.

* eval.c (rb_thread_join): join during critical section causes
  deadlock.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1090 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-01-09 07:26:21 +00:00
eban 39711489a4 eban
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1089 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-01-05 15:24:13 +00:00
matz 7d10fe689c * eval.c (rb_iterate): NODE_CFUNC does not protect its data
(nd_tval), so create new node NODE_IFUNC for iteration C
  function.

* eval.c (rb_yield_0): use NODE_IFUNC.

* gc.c (rb_gc_mark): support NODE_IFUNC.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1088 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-12-29 18:23:22 +00:00
matz 4c1441870e * gc.c (mem_error): prohibit recursive mem_error().
(ruby-bugs-ja:PR#36)


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1086 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-12-29 02:47:07 +00:00
matz 2cafd39ed2 thread_critical bug reported by Dave - matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1085 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-12-29 02:46:12 +00:00