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

5475 Коммитов

Автор SHA1 Сообщение Дата
suke ad2c05f1c0 ext/win32ole/win32ole.c: add WIN32OLE_TYPELIB class. add
WIN32OLE#ole_typelib method.

ext/win32ole/tests/testOLETYPELIB.rb: add WIN32OLE_TYPELIB class.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7144 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-30 06:25:00 +00:00
akr 7dc3169658 add a test for a problem of [ruby-talk:116455]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7142 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-29 23:22:57 +00:00
akr 1bc4363c5e add test for [ruby-dev:24643].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7141 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-29 22:45:13 +00:00
nobu 9f5f676d82 * io.c (rb_io_check_initialized): new function to check uninitialized
object.  [ruby-talk:118234]

* file.c (rb_file_path), io.c (rb_io_closed): check if initialized.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7140 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-29 12:28:32 +00:00
naruse b99f22f196 obsoleted by nkf-utf8/nkf.c.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7139 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-29 10:59:34 +00:00
naruse bf31fe3ed0 * ext/nkf: follow nkf2.0.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7138 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-29 10:11:22 +00:00
nobu 6b8e5b303f * CR stripped.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7137 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-29 08:43:10 +00:00
usa 61edd31bf6 * parse.y (ripper_s_allocate): add prototype for Microsoft compiler.
* range.c (range_step, range_each): need cast.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7136 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-29 08:19:50 +00:00
matz 7c04db1d3c * eval.c (rb_thread_start_0): forget to free some memory chunks.
[ruby-core:03611]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7135 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-29 08:08:16 +00:00
naruse 6d25a97ca0 from nkf 2.0.4
http://sourceforge.jp/projects/nkf/


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7133 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-29 06:55:08 +00:00
naruse 35b917f3ee follow to nkf 2.0.4
:new constants
  NKF::VERSION
  NKF::ASCII
  NKF::UTF8
  NKF::UTF16
  NKF::UTF32
:new methods
  NFK.guess1 (guess)
  NKF.guess2 (from nkf2)


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7132 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-29 06:51:33 +00:00
naruse 640fad68cc follow to nkf 2.0.4
:new constants
  NKF::VERSION
  NKF::ASCII
  NKF::UTF8
  NKF::UTF16
  NKF::UTF32
:new metHods
  NFK.guess1 (guess)
  NKF.guess2 (from nkf2)


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7131 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-29 06:51:33 +00:00
nobu 1b66559c66 * parse.y (rb_parser_append_print, rb_parser_while_loop): body node
can be empty.  [ruby-dev:24628]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7130 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-29 02:35:11 +00:00
eban e954bfb6ef * 2004-10-29
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7129 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-29 02:13:36 +00:00
matz b0dee8f90d * eval.c (ruby_cleanup): ruby_finalize_1 may cause exception,
should be wrapped by PUSH_TAG/POP_TAG().  [ruby-dev:24627]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7127 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-29 01:06:37 +00:00
eban 80e9b8f295 * 2004-10-28
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7124 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-27 16:42:43 +00:00
nobu 4fabf11840 * string.c (str_gsub): use STR_NOCAPA.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7123 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-27 15:23:16 +00:00
matz 018837b84f * node.h (NODE_TYPESHIFT): allow 4 more bits for line numbers.
[ruby-talk:117841]

* ruby.h (FL_ABLE): nodes are not subject for flag operations.

* io.c (ARGF_FORWARD): should have specified argv explicitly,
  since we no longer have frame->argv saved.  [ruby-dev:24602]

* string.c (RESIZE_CAPA): check string attribute before modifying
  capacity member of string structure.  [ruby-dev:24594]

* ext/zlib/zlib.c (gzreader_gets): use memchr() to to gain
  performance.  [ruby-talk:117701]

* sprintf.c (rb_f_sprintf): raise ArgumentError for extra
  arguments, unless (digit)$ style used.

* io.c (rb_io_fptr_finalize): leave stdin/stdout/stderr open in
  interpreter termination.  [ruby-dev:24579]

* eval.c (frame_free): Guy Decoux solved the leak problem.
  Thanks.  [ruby-core:03549]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7121 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-27 09:29:26 +00:00
nobu 6ffdbac5ed * 2004-10-27
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7118 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-27 00:19:40 +00:00
nobu ee51d0f9fd * string.c (str_gsub): use a string object for exception safeness.
[ruby-dev:24601]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7117 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-27 00:18:08 +00:00
eban c7b31b0048 * 2004-10-26
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7116 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-26 14:59:41 +00:00
dave 3ecf38f376 Restore correct :nodoc: behavior with nested classes
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7113 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-26 14:33:17 +00:00
eban b088595db7 * win32/win32.c (isUNCRoot): should check NUL after '.'.
[ruby-dev:24590]
* win32/win32.c (isUNCRoot): fixed buffer overrun.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7112 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-25 09:40:55 +00:00
nobu cdb66dc248 2004-10-25
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7111 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-25 00:03:22 +00:00
nobu da1265564a * eval.c (get_backtrace): ignore illegal backtrace. [ruby-dev:24587]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7109 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-24 23:04:04 +00:00
nagai 9f196e03cb * ext/tk/sample/tkextlib/bwidget/tree.rb: bug fix
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7108 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-24 13:13:12 +00:00
eban eba5641496 * 2004-10-24
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7107 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-23 15:43:25 +00:00
nobu d0c2e3c7c9 * eval.c (rb_load, search_required, rb_require_safe, rb_require): use
frozen shared string to avoid outside modification.  [ruby-dev:24580]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7106 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-23 15:41:17 +00:00
matz 9c65d88c0e * ext/zlib/zlib.c (zstream_append_input): clear klass for z->input
to avoid potential vulnerability.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7105 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-23 06:53:11 +00:00
eban a0f6bcf93f * 2004-10-23
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7104 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-23 06:21:26 +00:00
ttate 0748ee8b90 Use NUM2INT to convert short values.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7103 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-23 06:05:15 +00:00
matz 3377aebed4 * ext/zlib/zlib.c (zstream_run): always use zstream_append_input()
to avoid SEGV.  [ruby-dev:24568]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7102 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-22 15:28:13 +00:00
matz 1419b789ab * eval.c (rb_alias): was warning for wrong condition.
[ruby-dev:24565]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7101 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-22 03:05:10 +00:00
gotoyuzo e7a1207dcd * lib/webrick/httprequest.rb (WEBrick::HTTPRequest#meta_vars):
should check if path_info is not nil. [webrickja:126]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7100 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-22 01:38:42 +00:00
matz d9d60e8c12 * ext/zlib/zlib.c (zstream_shift_buffer): should restore class
field of a buffer.  [ruby-dev:24562]

* eval.c (rb_alias): should warn on method discarding.
  [ruby-dev:24546]

* ext/zlib/zlib.c (zstream_expand_buffer_into): hide internal
  string buffer by clearing klass.  [ruby-dev:24548]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7099 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-21 16:13:32 +00:00
eban 9cd654ea26 * 2004-10-22
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7097 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-21 15:23:57 +00:00
nobu 0f3decb071 * string.c (rb_str_include): should not treat char as negative value.
[ruby-dev:24558]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7096 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-21 15:21:08 +00:00
suke 9ec1f6d27e remove ext/win32ole/.document.
add win32ole ext/.document.
create .document dynamically by extconf.rb.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7095 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-21 15:10:06 +00:00
gotoyuzo b8f68de2be * lib/webrick/httpresponse.rb (WEBrick::HTTPResponse#send_body_io):
ensure to close @body. (http://bugs.debian.org/277520)


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7094 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-21 10:10:52 +00:00
eban 2870c4d1a6 * io.c (pipe_open): variable name "fpw" is conflicted.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7093 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-21 04:16:40 +00:00
eban e84d895ad4 * 2004-10-21
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7092 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-20 16:10:42 +00:00
matz 7d7d82463d * parse.y (lex_getline): should not touch ruby_debug_lines if
RIPPER is defined.  [ruby-dev:24547]

* string.c (str_gsub): 	reentrant check.  [ruby-dev:24432]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7091 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-20 15:44:06 +00:00
nobu 93931a0d93 commit miss
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7089 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-20 10:40:26 +00:00
matz fbdc2bf5f7 * parse.y (lex_getline): should update ruby_debug_lines.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7087 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-20 06:53:42 +00:00
nobu 3054488377 * io.c (rb_io_getline): rs modification check should not interfere in the loop.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7085 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-20 03:42:53 +00:00
eban e447cd5add * 2004-10-20
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7084 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-20 01:39:17 +00:00
eban db318b86b9 * MANIFEST: add ext/.document.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7083 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-20 01:39:04 +00:00
nobu 3f075b9ac9 rdoc
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7082 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-20 01:38:04 +00:00
nobu c1c101e752 rdoc
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7081 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-20 00:52:42 +00:00
matz 39ecad1339 * ext/dbm/dbm.c (fdbm_delete_if): should check if deleting element
is a string.  [ruby-dev:24490]

* ext/sdbm/init.c (fsdbm_delete_if): ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7080 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-19 19:49:49 +00:00