eban
144caca6bb
2003-05-27
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3873 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-27 13:00:56 +00:00
nobu
dc2bab2207
* eval.c, util.c: removed duplicated includes/defines.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3872 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-27 11:33:46 +00:00
nobu
aa37cc7127
* ext/socket/socket.c (sock_addrinfo): get rid of SEGV at NULL ptr
...
String. increase buffer size for 64bit platforms.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3871 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-27 11:07:57 +00:00
nobu
7712407048
* lib/mkmf.rb, lib/optparse.rb, lib/tracer.rb: use Method#to_block
...
instead of deprecated Method#to_proc. (ruby-bugs-ja:PR#477)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3870 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-26 13:17:07 +00:00
eban
c0eb57417c
2003-05-26
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3869 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-26 13:10:02 +00:00
nobu
6e242d868e
* lib/optparse.rb (OptionParser::Switch::parse,
...
OptionParser::order): use {Block,Proc}#call instead of deprecated
#yield.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3868 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-26 12:21:24 +00:00
matz
b4fd4d6018
* eval.c (Init_Proc): Block/Proc separation. [huge change]
...
* eval.c (block_arity): returns exact arity number for Procs out
of methods. also gives 1 for {|a|..}.
* string.c (rb_str_match): revert use of String#index for
invocation like string =~ string.
* eval.c (rb_Array): move Object#to_a exclusion hack from
splat_value(). need to be in eval.c for a while.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3867 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-26 08:22:33 +00:00
nobu
ea325deab0
2003-05-25
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3866 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-25 14:52:18 +00:00
nobu
c13ca74520
* bignum.c (rb_quad_pack): should negate negative bignum.
...
(ruby-bugs-ja:PR#474)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3865 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-25 14:48:26 +00:00
aamine
d5d2ca754b
* lib/net/smtp.rb: support LOGIN authentication. The patch is contributed by Kazuhiko Izawa. [ruby-talk:78981]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3863 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-24 18:24:26 +00:00
uema2
0ece2407d2
* wince/Makefile.sub: add eMbedded Visual C++ 4.0 support.
...
* wince/resource.rb: ditto.
* wince/setup.mak: ditto.
* wince/configure.bat: ditto.
* wince/mkexports.rb: delete japanese comments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3862 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-24 09:17:35 +00:00
nobu
8a82c68e5b
* eval.c (rb_longjmp): wrong jump.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3861 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-23 09:39:13 +00:00
nobu
0cc87df01c
* eval.c (rb_longjmp): get rid of reentering while debug warning.
...
(ruby-bugs-ja:PR473)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3860 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-23 09:34:09 +00:00
matz
cec20793cb
* eval.c (ruby_finalize): turn off ruby_debug flag before calling
...
at_exit procs and finalizers. (ruby-bugs-ja:PR473)
* ext/tcltklib/tcltklib.c (lib_mainloop_core): OK to block if
there's no other thread. (ruby-bugs:PR#861)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3859 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-23 08:11:21 +00:00
nobu
228604473d
* pack.c (pack_unpack): sign-extend if sizeof long is bigger than
...
32. (ruby-bugs-ja:PR#472)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3858 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-23 06:16:20 +00:00
nobu
2e4ffa7a44
removed trailing white spaces.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3857 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-23 05:25:00 +00:00
why
9bb4160189
* lib/token.c: single- and double-quoted root-level fix.
...
* lib/yaml.rb (YAML::object_maker): can create object attributes (such as
found in Exception class)
* lib/yaml/rubytypes.rb: roundtripping of Exception and subclasses.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3856 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-22 17:56:30 +00:00
eban
3458bf4328
2003-05-23
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3855 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-22 16:43:57 +00:00
matz
c3584231ba
* object.c (rb_obj_clone): defer copying freezing state after
...
calling initialize_copy(). [ruby-dev:20276]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3854 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-22 16:37:22 +00:00
matz
717302e2c4
* gc.c (run_final): use rb_thread_critical instead of DEFER_INTS.
...
[ruby-dev:20272]
* marshal.c: try to make ArgumentError and TypeError consistent.
[ruby-core:01068]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3853 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-22 08:30:58 +00:00
matz
df62bb4fc9
* eval.c (rb_define_alloc_func): need not to disable
...
rb_call_super() for allocation functions. [ruby-core:1065]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3852 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-22 07:45:53 +00:00
why
9780fc27d9
* ext/syck/rubyext.c (rb_syck_err_handler): raise ArgumentError on
...
malformed YAML.
* lib/yaml/rubytypes.rb: String#to_yaml was missing space indicators at
the end of a line.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3851 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-22 06:14:17 +00:00
why
5e1c96af53
* ext/syck/rubyext.c (syck_parser_load): root-level false was returning
...
nil.
* ext/syck/token.c: root-level transfer method bug.
* ext/syck/gram.c: root-level empty gave a parse error.
* lib/yaml/rubytypes.rb: Symbol#to_yaml generating method call error.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3850 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-22 05:41:06 +00:00
eban
a2cd1bbf3e
2003-05-22
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3849 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-22 02:25:51 +00:00
nobu
b80c02b4f1
doubled.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3848 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-21 18:27:35 +00:00
matz
9cf879d7a5
* error.c (rb_sys_fail): should not specify errno explicitly.
...
[ruby-dev:20264]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3847 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-21 18:04:11 +00:00
nobu
63a5a45a01
commit miss
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3846 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-21 17:49:18 +00:00
nobu
d547df4c53
* eval.c (rb_eval): splat NODE_RESTARY. [ruby-dev:20268]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3845 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-21 17:46:42 +00:00
nobu
874eca3c04
* eval.c (rb_thread_fd_close): raise for writing threads.
...
[ruby-dev:20269]
* io.c (rb_io_close, io_reopen): ditto.
* io.c (io_reopen): keep stdio objects for stdin, stdout,
and stderr. [ruby-dev:19442]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3844 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-21 17:42:56 +00:00
nobu
1359207bf8
* parse.y (strings, word_list): must create new instance always.
...
http://yowaken.dip.jp/tdiary/20030521.html#p02
* parse.y (yylex): slight optimization.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3843 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-21 16:11:18 +00:00
nobu
498365d0ee
*** empty log message ***
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3842 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-21 16:01:49 +00:00
nobu
77324837a3
2003-05-21
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3841 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-21 11:51:59 +00:00
nobu
a4d277f554
* Makefile.in, bcc32/Makefile.sub, win32/Makefile.sub,
...
wince/Makefile.sub: update dependencies.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3840 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-21 11:51:56 +00:00
matz
062351e6bb
* error.c (syserr_initialize): prohibit specifying errno for
...
subclasses of SystemCallError. in addition, if initialize is
called for SystenCallError instance, its class be changed.
[ruby-dev:20257]
* gc.c (run_final): to protect thread context switch, finalizers
are wrapped in DEFER_INTS/ENABLE_INTS.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3839 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-21 08:48:05 +00:00
nobu
564c80b10a
* lib/optparse.rb: get rid of warnings.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3838 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-21 04:27:06 +00:00
matz
bec6d3b1b9
* eval.c (rb_thread_save_context): prohibit rb_gc_force_recycle()
...
on thread saved ruby_dyna_vars. [ruby-dev:20236]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3837 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-20 10:02:06 +00:00
matz
56a4cc27ed
* object.c (init_copy): call initialize_copy at the end of copy
...
process.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3836 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-20 08:40:50 +00:00
nobu
fdc0d3306c
* error.c (syserr_initialize): use Errno constants as default
...
errno for subclasses. [ruby-dev:20241]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3835 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-20 08:18:16 +00:00
eban
b614db0432
* st.h: define ST_DATA_T_DEFINED for portability.
...
* ext/syck/syck.h: add typedef, st_data_t for Ruby 1.6.
* ext/syck/syck.c (syck_st_free_nodes): return int.
* ext/syck/syck.c (syck_add_sym): cast the data to st_data_t
to avoid error on bcc32.
* ext/syck/syck.c (syck_lookup_sym): ditto.
* ext/syck/syck.c (syck_free_parser): NULL is not integer.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3834 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-20 06:48:04 +00:00
matz
82cf98939f
* eval.c (rb_yield_0): give warning for multiple values for a
...
block parameter.
* eval.c (rb_yield_values): a function to yield multiple values.
* array.c (sort_1): use rb_yield_values.
* enum.c (min_ii, max_ii): ditto.
* hash.c (rb_hash_update_block_i, delete_if_i, select_i,
each_pair_i, env_each, env_reject_bang, env_select,
env_update_i): ditto.
* struct.c (rb_struct_each_pair): ditto.
* eval.c (top_include): should include module in the current self,
not ruby_top_self. [ruby-dev:20198]
* eval.c (top_include): stop inclusion to ruby_wrapper; give
warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3833 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-20 06:29:23 +00:00
usa
3b68b107e9
* win32/win32.c (kill): set errno after calling raise().
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3832 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-20 04:32:52 +00:00
nobu
7f425b216b
* eval.c (rb_f_missing): create exception instance by ordinal
...
method.
* error.c (rb_name_error, rb_sys_fail): ditto.
* error.c (exc_to_s, exit_status, name_err_name,
nometh_err_args, syserr_errno, syserr_eqq): access
attributes.
* error.c (name_err_initialize, nometh_err_initialize,
syserr_initialize): initialize attributes.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3831 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-20 01:51:32 +00:00
why
340e5082e2
* lib/token.c, lib/implicit.c: expanded character set to allow UTF-8,
...
other Ruby encodings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3830 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-19 18:46:57 +00:00
why
f5b2e6b149
* lib/syck.c, lib/syck.h, lib/token.c, lib/gram.c: count line numbers
...
only if line pointer has increased.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3829 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-19 16:37:20 +00:00
eban
6f55b68681
2003-05-20
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3825 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-19 16:05:18 +00:00
matz
9ac15a773d
* dir.c (push_braces): do not push_braces() unless rbrace is found.
...
(ruby-bugs-ja:PR#469)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3824 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-19 15:54:37 +00:00
matz
7e35911e10
* ext/pty/pty.c (pty_finalize_syswait): join (using Thread#value)
...
before detach pid. [ruby-talk:71519]
* eval.c (PUSH_FRAME): save outer ruby_block. [ruby-list:37677],
[ruby-dev:20202]
* eval.c (BEGIN_CALLARGS): restore outer block by using
ruby_block->outer.
* eval.c (block_pass): do not alter block->prev, but block->outer.
* array.c (get_inspect_tbl): warning on wrong condition.
* eval.c (localjump_xvalue): renamed exitstatus to exit_value
since it's not exit "status" after all.
* eval.c (localjump_error): add reason to LocalJumpError.
* compar.c (rb_cmpint): raise error via rb_cmperr(), if cmp value
is nil. now take new 2 arguments.
* time.c (time_cmp): 2003-05-16 fix was incomplete.
(ruby-bugs-ja:PR#458)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3823 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-19 15:45:46 +00:00
aamine
e08bc0a22a
* class.c: add #include "version.h".
...
* hash.c: ditto.
* string.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3822 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-19 07:11:48 +00:00
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