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

7280 Коммитов

Автор SHA1 Сообщение Дата
ocean 1a61008f18 * rubysig.h (CHECK_INTS): fixed typo. (I believe bit-or is improper)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9437 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-21 10:23:03 +00:00
matz 5b014a7427 * bin/erb (ERB::Main::run): typo fixed. [ruby-core:06337]
* env.h: move struct METHOD and struct BLOCK from eval.c to
  support NodeWrap and ParseTree.

* rubysig.h (CHECK_INTS): prevent signal handler to run during
  critical section.  [ruby-core:04039]

* eval.c (load_wait): need not to call rb_thread_schedule()
  explicitly.  [ruby-core:04039]

* eval.c (rb_thread_schedule): clear rb_thread_critical.
  [ruby-core:04039]

* eval.c (rb_obj_instance_exec): create instance_exec and
  module_exec which pass arguments to the block.

* eval.c (rb_f_funcall): rename fcall to funcall to follow
  tradition.

* st.c (st_free_table): do not call free() but xfree().
  [ruby-core:06205]

* eval.c (splat_value): call rb_Array() to convert svalue to
  values.  [ruby-dev:27397]

* lib/cgi.rb (CGI::Cookie::parse): Cookies from Nokia devices may
  not be parsed correctly.  A patch from August Z. Flatby
  (augustzf) in [ruby-Patches-2595].  [ruby-core:06183]

* object.c (rb_Array): Array() to raise error for objects without
  to_ary, nor to_a.

* object.c (nil_to_a): revert NilClass#to_a.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9436 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-21 09:00:02 +00:00
ocean 73f94bb851 * intern.h, struct.c (rb_struct_iv_get): constified.
* marshal.c: avoid one VC++6 warning for implicit conversion
  from int to char.

* ruby.h: ANSI styled.

* bcc32/Makefile.sub (HAVE_HYPOT): added.

* ext/socket/extconf.rb: BeOS is only one platform should call
  closesocket, so check __BEOS__ macro directly. (I was worried
  accidently HAVE_CLOSESOCKET is defined on windows again because
  it has it)

* ext/socket/{getaddrinfo.c,socket.c}: ditto.

... these are all cosmetic changes.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9435 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-21 06:46:41 +00:00
ocean b4236d6e71 * time.c: should use LONG_LONG instead of `long long'.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9433 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-21 06:33:00 +00:00
ocean ee2434851b * bignum.c (bignew_1): convertion from `int' to `char' discards
upper bits, (ie. (char)0xff00 -> 0) so it's better to test if
  nonzero and set 0 or 1 instead of simply casting ... as a flag usage.
  (but I believe this won't cause actual bug in current implementation)
  [ruby-dev:27055]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9432 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-21 06:28:41 +00:00
eban 9857cc6036 * 2005-10-21
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9431 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-21 06:28:21 +00:00
nobu d284e44687 * ext/ripper/tools/preproc.rb (prelude): do not append surplus
newlines to fix line numbers.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9430 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-20 13:23:26 +00:00
nobu 14029df930 * parser.y (struct parser_params): parser never modify input string.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9429 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-20 13:15:19 +00:00
ocean e29bce0750 * class.c, eval.c, hash.c, st.c, variable.c: changed /* ??? */ stuff
protoize generated to ANYARGS.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9428 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-20 02:56:22 +00:00
ocean 64c8c730d7 * eval.c, file.c, ruby.c: removed strchr, strrchr, strstr definition
because they are defined in missing.h.

* missing.h, missing/strchr.c, missing/strstr.c: ANSI styled.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9427 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-20 02:22:50 +00:00
ocean 7f60c0289c * lib/mkmf.rb (create_makefile): Borland make seems not to allow
empty dependency list. If this change is not good, please correct
  it.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9426 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-20 00:42:43 +00:00
nobu efbe6c1d7d * 2005-10-20
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9425 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-19 22:57:23 +00:00
nobu 834bd9db0b * lib/mkmf.rb (create_makefile): get rid of a restriction
of Borland make.  fixed: [ruby-dev:27460]

* ext/ripper/depend: ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9423 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-19 22:55:51 +00:00
nobu c033f534c6 * ChangeLog: wrong log.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9420 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-19 15:07:04 +00:00
nobu 23ac67ac43 * lib/mkmf.rb (create_makefile): do not create unnecessary empty
directories. fixed: [ruby-dev:27451]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9419 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-19 14:58:57 +00:00
nobu d32dc2b9fe * lib/mkmf.rb (create_makefile): do not unnecessary empty directories.
fixed: [ruby-dev:27451]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9418 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-19 14:58:51 +00:00
nobu 62de00b7d1 * file.c (rb_file_join): elements may contain null pointer strings.
report and fixed by Lloyd Zusman (hippoman): [ruby-core:06326]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9415 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-18 23:29:24 +00:00
eban 41771ae6c1 * 2005-10-19
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9414 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-18 17:37:47 +00:00
nobu 9c871d5a5a * enumerator.c, eval.c, gc.c, parse.y, regparse.c, sjis.c, time.c:
made internal symbols static.  [ruby-dev:27435]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9412 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-18 17:35:18 +00:00
usa 404faedbaa * sorry, commit miss.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9409 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-18 02:03:50 +00:00
usa 0245c7aa16 * ext/dl/depend, ext/dl/extconf.rb, ext/socket/depend,
ext/socket/extconf.rb: shouldn't define DESTCLEANFILES in depend,
  use $distcleanfiles in extconf.rb.

* win32/Makefile.sub (distclean-local): should remove .config.h.time.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9408 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-18 02:01:24 +00:00
usa a2f8339f6f * 2005-10-18
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9407 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-18 01:18:29 +00:00
usa 2b8887590d * mkconfig.rb: forgotten to commit.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9406 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-18 01:18:05 +00:00
usa 71aa77ef8a * 2005-10-17
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9402 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-17 00:45:19 +00:00
usa fa31502b80 * mkconfig.rb: fixup configure_args for mswin32 configure.
* win32/configure.bat (srcdir, target): ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9401 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-17 00:44:54 +00:00
nobu 64a1809ce2 * ext/extmk.rb: omit non-existing directories.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9400 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-16 13:17:43 +00:00
seki 898f094d8d check remote hash tuple
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9398 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-16 05:43:19 +00:00
usa 6de9ca7651 * 2005-10-16
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9396 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-15 15:16:22 +00:00
usa 45cab7d104 * win32/configure.bat: remove unnecessary line which prevents
creating Makefile.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9395 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-15 15:15:58 +00:00
shugo 65867866a8 * lib/net/ftp.rb: (getbinaryfile): allow nil for localfile, and
returns retrieved data if localfile is nil.
* lib/net/ftp.rb: (gettextfile): ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9394 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-15 14:54:03 +00:00
eban 190909c0ce * 2005-10-15
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9393 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-15 11:07:17 +00:00
seki 59f296ffb4 typo fixed, again. thanks, Doug Kearns.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9392 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-15 10:57:50 +00:00
nobu f76f6155e1 * win32/Makefile.sub (MKFILES): update MKFILES if configure files get
changed.

* win32/configure.bat, win32/setup.mak (configure_args): store
  arguments to configure files.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9391 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-14 14:10:08 +00:00
usa b367743e92 * win32/win32.c (ioctl): should set errno.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9390 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-14 13:09:11 +00:00
eban 55aba8a1fc * 2005-10-14
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9387 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-14 07:43:37 +00:00
gotoyuzo 8c293539cd * lib/webrick/config.rb (Config::FileHandler): :UserDir should be nil.
It is harmful to permit the access to ~/public_html by default.
  suggested by Hiroyuki Iwatsuki.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9386 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-14 07:40:47 +00:00
eban 1f15b5fb48 * 2005-10-13
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9385 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-13 14:35:58 +00:00
nobu 61bd5fb4dc * ext/iconv/charset_alias.rb (charset_alias): create wrapper libray
even if no target matched.

* ext/iconv/extconf.rb: create wrapper library under RUBYARCHDIR
  directly.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9384 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-13 14:33:30 +00:00
nobu 0ccc5dbe83 * io.c, pack.c, ext/syck/rubyext.c, ext/syck/syck.h, missing/isinf.c:
get rid of warnings.  fixed: [ruby-core:06247]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9383 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-13 14:30:54 +00:00
nobu ee499a8745 * parse.y (HEAPCNT): bison allocates indivisible size.
fixed: [ruby-core:06261]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9382 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-13 14:26:00 +00:00
gotoyuzo ff2b8b31c2 * ext/openssl/ossl.c (Init_openssl): should call OpenSSL_add_ssl_algorithms().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9381 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-12 03:56:04 +00:00
eban b559d863a5 * file.c (rb_f_test): typos in RDoc comments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9380 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-12 02:26:52 +00:00
eban 94e64bd88d * 2005-10-12
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9379 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-12 02:15:06 +00:00
eban fea2b2378f * file.c (rb_f_test): typo in RDoc comments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9378 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-12 02:14:50 +00:00
nobu cc2334bd7b * eval.c (rb_obj_respond_to): check if obj responds to the given
method with the given visibility.  [ruby-dev:27408]

* eval.c (rb_respond_to): conform to Object#respond_to?.  [ruby-dev:27411]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9376 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-11 12:42:50 +00:00
eban a3cb2093ef * 2005-10-11
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9375 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-11 12:39:26 +00:00
nobu 1b03efee58 * array.c, enum.c, eval.c, util.c: safer function pointer usage.
fixed: [ruby-core:06143]

* util.h (qsort): removed the definition incompatible to ANSI.
  fixed: [ruby-core:06147]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9374 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-11 12:30:48 +00:00
nobu 32f264bfef * configure.in (RUBY_FUNC_ATTRIBUTE): check prefixed attribute form
first.  [ruby-dev:27398]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9373 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-11 12:29:11 +00:00
nobu 1f6620a6b9 * test/soap/ssl/test_ssl.rb (test_verification, test_property, test_ciphers):
use standard assert_raise.

* test/testunit/test_assertions.rb (test_assert_send): send no longer
  calls private methods.

* test/uri/test_generic.rb (test_parse): corrected path in FTP URI.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9371 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-10 04:24:07 +00:00
eban a01e8895a4 * 2005-10-10
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9369 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-09 16:23:00 +00:00