matz
db0b2bb241
* object.c (rb_mod_cmp): stupid comparison fixed.
...
* io.c (Init_IO): ARGF.path added (alias to ARGF.filename).
[ruby-dev:20197]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3821 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-19 06:27:06 +00:00
matz
6e52d10fe6
* object.c (init_copy): rename copy_object as initialize_copy,
...
since it works as copy constructor.
* eval.c (rb_add_method): initialize_copy should always be
private, like initialize.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3820 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-19 05:41:08 +00:00
aamine
81882bac13
modify ChangeLog.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3819 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-19 05:05:17 +00:00
eban
3c9389778f
2003-05-19
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3818 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-19 05:01:17 +00:00
matz
f4ff7ccddf
* array.c (get_inspect_tbl): check whether inspect_tbl value is a
...
valid array. (ruby-bugs-ja PR#65)
* array.c (inspect_ensure,rb_protect_inspect,rb_inspecting_p):
use get_inspect_tbl().
* eval.c (rb_f_abort): call exit(1) if exception is raised. This
patch was made by Nobuyoshi Nakada <nobu.nokada@softhome.net> on
2002-05-30. (ruby-bugs-ja PR#236)
* signal.c: disable Ruby's interrupt handler at the beginning.
(ruby-bugs-ja PR#236)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3817 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-19 04:52:55 +00:00
aamine
f50984366b
* re.c (rb_reg_quote): \n \r \f \v quoting was wrong.
...
* re.c (rb_reg_quote): rb_reg_quote(" ") should be "\\ ", not "\\s".
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3816 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-19 04:48:57 +00:00
tadf
fd2f7ab576
use warn() instead of $stderr.puts().
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3815 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-18 23:13:15 +00:00
tadf
03f8ef900a
use $deferr instead of $stderr.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3814 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-18 15:30:32 +00:00
suke
7e190d7568
add WIN32OLE_TYPE#to_s method.
...
add WIN32OLE_VARIABLE#to_s method.
add WIN32OLE_METHOD#to_s method.
add WIN32OLE_PARAM#to_s method.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3813 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-17 13:49:08 +00:00
eban
8d67caddea
2003-05-17
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3812 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-17 12:15:27 +00:00
matz
25fd1d7ff2
* object.c (rb_class_allocate_instance): singleton class check
...
moved to rb_obj_alloc(). (ruby-bugs-ja PR#345)
* re.c (rb_reg_quote): should escape white space characters,
\t, \f, \n, \r. (ruby-bugs-ja PR#231)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3811 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-16 23:28:31 +00:00
nobu
ae8463b03c
* lib/rational.rb (Integer::denominator): fixed typo. (ruby-bugs-ja:PR#466)
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3810 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-16 17:19:41 +00:00
nobu
e9d1dd8388
* ext/socket/socket.c (ruby_connect): connect() after EINPROGRESS
...
returns EINVAL on some platforms, need to check true error
status. [ruby-core:01037]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3809 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-16 15:18:14 +00:00
matz
6cbcafb9b9
* eval.c (block_pass): chain previous block to the pushing block.
...
* time.c (time_cmp): does not compare with numbers for
interchangeability. (ruby-bugs-ja PR#458)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3808 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-16 05:13:17 +00:00
why
c601cf5318
* lib/gram.c: fixes to one-line documents and end of stream documents.
...
* lib/syck.c, lib/syck.h: add root_on_error to parser struct, specifying
the symbol to be returned on a parse error.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3807 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-15 21:46:47 +00:00
nobu
d8bd0ea32e
re-indented & tabified
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3804 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-15 10:23:52 +00:00
akr
131c29ffff
* lib/open-uri.rb (OpenURI::Redirect#initialize): call super to
...
initialize mesg.
* lib/open-uri.rb (OpenURI::Meta#charset): call block to guess charset
if block is given and charset is not given.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3803 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-15 09:48:12 +00:00
matz
068170e47a
* object.c (rb_mod_le): returns nil if two classes/modules are not
...
in class-superclass relationship.
* object.c (rb_mod_cmp): uses new rb_mod_le() behavior.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3802 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-15 07:57:07 +00:00
why
42fd4ff686
* ext/ruby/ext/syck/rubyext.c, lib/implicit.re: timestamp repairs to
...
timezone and milliseconds.
* lib/syck.c (syck_parser_reset_levels): duplicate string literal to avoid warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3801 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-15 07:38:10 +00:00
usa
d81342e3af
2003-05-15
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3800 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-15 04:47:24 +00:00
matz
c92a8f21a6
* io.c (set_stdio): better message.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3799 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-15 04:27:14 +00:00
matz
2046e06513
* io.c (set_stdio): $stdin, $stdout, $stderr now became read-only.
...
* variable.c (readonly_setter): message changed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3798 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-15 04:20:31 +00:00
usa
8bdfa739ad
* ext/syck/syck.c (syck_parser_pop_level): add prototype.
...
* ext/syck/syck.c (syck_strndup): should return value.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3797 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-15 00:52:28 +00:00
usa
277d89447a
* win32/win32.c (kill): fix typo and add signal 0 support.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3796 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-15 00:33:57 +00:00
why
f5a6a36471
* ext/syck/gram.c: sequence-in-map shortcut, transfer methods on
...
sequence-in-sequence, memory leak in mapping merge. [0.28]
* ext/syck/syck.c: memory leak in domain anchoring. [0.28]
* lib/yaml/rubytypes.rb, lib/yaml/types.rb: eliminated 1.6.x code.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3795 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-14 20:01:09 +00:00
eban
cf13323ff4
2003-05-14
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3794 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-14 11:47:24 +00:00
usa
1b92c12743
* ext/syck/rubyext.c: add prototypes to avoid VC++ warnings.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3793 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-14 10:57:42 +00:00
matz
d0507efdc1
* regex.c (re_match_exec): \Z changed to be consistent with new $
...
(endbuf) behavior.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3792 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-14 09:44:14 +00:00
aamine
ee6a0ecbcb
* lib/net/http.rb (Net::HTTP#start): should check whether HTTP session is opened before finishing. (ruby-bugs-ja:PR#463)
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3791 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-14 03:20:16 +00:00
aamine
445c938f7b
* lib/net/http.rb: reduce warning. (ruby-bugs-ja:PR#462)
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3790 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-14 00:11:25 +00:00
why
17f705e8cd
* lib/yaml/rubytypes.rb, lib/yaml/types.rb: using Object#object_id
...
rather than deprecated Object#id.
* ext/token.c: changed ASCII escapes to octal notation.
* ext/Setup*: added entries for static linking of Syck extension.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3789 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-13 22:29:52 +00:00
eban
bee670e33a
ext/syck/handler.c (syck_hdlr_add_alias): add cast to avoid warning.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3788 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-13 16:25:41 +00:00
eban
43b1770ed6
* ext/syck/handler.c: add proper casts.
...
* ext/syck/syck.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3787 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-13 11:41:19 +00:00
eban
e4ada45df1
* configure.in: add '--Wl,--enable-auto-import' to DLDFLAGS
...
on Cygwin/MinGW.
* configure.in: add '-D_USE_CRTIMP' to XCFLAGS on MinGW.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3786 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-13 11:34:48 +00:00
usa
161e19ded9
* configure.in, bcc32/Makefile.sub, win32/Makefile.sub: define
...
HAVE_FSYNC.
* win32/win32.h (fsync): define as _commit().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3785 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-13 08:59:36 +00:00
why
bd810795c5
* lib/yaml/rubytypes.rb: object and struct loading
...
* lib/yaml.rb: YAML::detect_implicit will discover typing for a Ruby string
* ext/syck/: Fixed portable comments, misuse of NULL and methods without return VALUEs.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-13 06:34:18 +00:00
eban
cea30a129a
2003-05-13
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3783 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-13 05:55:17 +00:00
matz
5e8a9873a2
* eval.c (error_pos): use $deferr for output instead of stderr
...
directly.
* eval.c (error_print,error_handle,rb_longjmp,rb_thread_schedule):
ditto.
* io.c (Init_IO): new variable $deferr which is default output
port of error messages.
* io.c (rb_warn_m): new method "warn". [new]
* error.c (warn_print): use $deferr.
* error.c (rb_bug): ditto.
* error.c (err_append): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3782 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-13 05:53:08 +00:00
why
e44e2ef2e8
* ext/syck/implicit.c, ext/syck/rubyext.c: transfer methods applied to native loading
...
* ext/syck/token.c: fix for transfer methods on same indentation as nested mapping
* lib/yaml/rubytypes.rb: all type names in lowercase
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3781 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-11 06:32:13 +00:00
akr
0b5d8d2d66
* lib/pp.rb: refine to_s test.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3780 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-11 04:53:57 +00:00
akr
93aa87568b
* lib/pp.rb (PP::ObjectMixin#pretty_print): refine to_s handling.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3779 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-10 20:53:58 +00:00
why
4b25d0d2cb
* ext/syck/gram.c ext/syck/handler.c ext/syck/implicit.c
...
ext/syck/node.c ext/syck/rubyext.c ext/syck/syck.c
ext/syck/syck.h ext/syck/token.c: updated to Syck 0.27
* lib/yaml/loader.rb: new YAML::Loader class
* lib/yaml.rb: loading of type families leverages YAML::DefaultLoader
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3778 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-10 19:55:18 +00:00
uema2
b2bb895aab
Sat May 10 19:01:00 2003 Takaaki Uematsu <uema2x@jcom.home.ne.jp>
...
* wince/string.c: file removed.
* wince/stdlib.c: file added.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3777 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-10 09:59:11 +00:00
eban
45278aeb76
lib/yaml/ypath.rb: escape '['.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3776 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-10 09:43:54 +00:00
eban
304a99ff65
* ext/syck/MANIFEST: new file.
...
* ext/syck/.cvsignore: new file.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3775 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-10 09:29:26 +00:00
shugo
46b2fa3ef4
* net/imap.rb: use DataFormatError in u16tou8/u8tou16.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3774 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-10 07:55:57 +00:00
shugo
afb9ea97ea
* lib/net/imap.rb (decode_utf7): new method.
...
* lib/net/imap.rb (encode_utf7): new method.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3773 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-10 07:19:35 +00:00
why
55f4dc4c9a
Initial checkin of YAML substances.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3772 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-09 21:25:50 +00:00
nobu
605adb86e2
2003-05-09
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3771 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-09 12:34:54 +00:00
matz
4870c89f77
* io.c (rb_io_reopen): It should be possible to reopen closed IO.
...
[ruby-talk:70941]
* io.c (rb_io_reopen): inherit original file mode unless specified.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3770 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-09 08:12:52 +00:00