summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* 2003-05-29nobu2003-05-291-3/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3876 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* commit missnobu2003-05-291-2/+0
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3875 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (ev_const_defined, ev_const_get), variable.cnobu2003-05-296-156/+287
| | | | | | | | | | | | | | | | | | | | | | | | | | | (rb_const_get_at, rb_const_get, rb_mod_remove_const): use Qundef as autoload marker. [ruby-dev:18103], [ruby-dev:18184] * eval.c (rb_mod_autoload, rb_mod_autoload_p): new method; Module#autoload, Module#autoload?. * variable.c (rb_autoload, rb_autoload_load, rb_autoload_p): manage autoload constants per classes/modules. * variable.c (rb_const_defined_at, rb_const_defined): return false for autoloading constants. * class.c (rb_define_class, rb_define_module), eval.c (rb_eval), variable.c (rb_mod_const_at, rb_const_assign): removed autoload stuff. * intern.h: prototypes; rb_autoload, rb_autoload_load, rb_autoload_p. * lib/optparse.rb (OptionParser::Switch::PlacedArgument::parse): do not treat unmatched argument as an option. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3874 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2003-05-27eban2003-05-271-3/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3873 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c, util.c: removed duplicated includes/defines.nobu2003-05-273-13/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3872 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/socket.c (sock_addrinfo): get rid of SEGV at NULL ptrnobu2003-05-272-2/+7
| | | | | | | String. increase buffer size for 64bit platforms. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3871 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb, lib/optparse.rb, lib/tracer.rb: use Method#to_blocknobu2003-05-264-5/+10
| | | | | | | instead of deprecated Method#to_proc. (ruby-bugs-ja:PR#477) git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3870 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2003-05-26eban2003-05-261-3/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3869 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/optparse.rb (OptionParser::Switch::parse,nobu2003-05-262-3/+9
| | | | | | | | OptionParser::order): use {Block,Proc}#call instead of deprecated #yield. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3868 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (Init_Proc): Block/Proc separation. [huge change]matz2003-05-267-166/+337
| | | | | | | | | | | | | | * 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: http://svn.ruby-lang.org/repos/ruby/trunk@3867 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2003-05-25nobu2003-05-251-3/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3866 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bignum.c (rb_quad_pack): should negate negative bignum.nobu2003-05-252-0/+6
| | | | | | | (ruby-bugs-ja:PR#474) git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3865 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/smtp.rb: support LOGIN authentication. The patch is contributed ↵aamine2003-05-242-10/+45
| | | | | | by Kazuhiko Izawa. [ruby-talk:78981] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3863 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * wince/Makefile.sub: add eMbedded Visual C++ 4.0 support.uema22003-05-246-16/+64
| | | | | | | | | | | | | * wince/resource.rb: ditto. * wince/setup.mak: ditto. * wince/configure.bat: ditto. * wince/mkexports.rb: delete japanese comments. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3862 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (rb_longjmp): wrong jump.nobu2003-05-231-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3861 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (rb_longjmp): get rid of reentering while debug warning.nobu2003-05-232-5/+35
| | | | | | | (ruby-bugs-ja:PR473) git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3860 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (ruby_finalize): turn off ruby_debug flag before callingmatz2003-05-234-5/+12
| | | | | | | | | | 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: http://svn.ruby-lang.org/repos/ruby/trunk@3859 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * pack.c (pack_unpack): sign-extend if sizeof long is bigger thannobu2003-05-232-0/+23
| | | | | | | 32. (ruby-bugs-ja:PR#472) git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3858 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* removed trailing white spaces.nobu2003-05-231-180/+178
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3857 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/token.c: single- and double-quoted root-level fix.why2003-05-224-51/+100
| | | | | | | | | | * 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: http://svn.ruby-lang.org/repos/ruby/trunk@3856 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2003-05-23eban2003-05-221-3/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3855 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * object.c (rb_obj_clone): defer copying freezing state aftermatz2003-05-225-5/+11
| | | | | | | calling initialize_copy(). [ruby-dev:20276] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3854 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c (run_final): use rb_thread_critical instead of DEFER_INTS.matz2003-05-223-10/+19
| | | | | | | | | | [ruby-dev:20272] * marshal.c: try to make ArgumentError and TypeError consistent. [ruby-core:01068] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3853 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (rb_define_alloc_func): need not to disablematz2003-05-222-3/+8
| | | | | | | rb_call_super() for allocation functions. [ruby-core:1065] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3852 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/syck/rubyext.c (rb_syck_err_handler): raise ArgumentError onwhy2003-05-223-2/+11
| | | | | | | | | | malformed YAML. * lib/yaml/rubytypes.rb: String#to_yaml was missing space indicators at the end of a line. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3851 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/syck/rubyext.c (syck_parser_load): root-level false was returningwhy2003-05-225-119/+132
| | | | | | | | | | | | | 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: http://svn.ruby-lang.org/repos/ruby/trunk@3850 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2003-05-22eban2003-05-221-3/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3849 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* doubled.nobu2003-05-211-5/+0
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3848 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * error.c (rb_sys_fail): should not specify errno explicitly.matz2003-05-213-7/+13
| | | | | | | [ruby-dev:20264] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3847 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* commit missnobu2003-05-211-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3846 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (rb_eval): splat NODE_RESTARY. [ruby-dev:20268]nobu2003-05-212-2/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3845 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (rb_thread_fd_close): raise for writing threads.nobu2003-05-213-9/+32
| | | | | | | | | | | | [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: http://svn.ruby-lang.org/repos/ruby/trunk@3844 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (strings, word_list): must create new instance always.nobu2003-05-211-0/+7
| | | | | | | | | http://yowaken.dip.jp/tdiary/20030521.html#p02 * parse.y (yylex): slight optimization. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3843 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* *** empty log message ***nobu2003-05-211-3/+18
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3842 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2003-05-21nobu2003-05-211-3/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3841 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * Makefile.in, bcc32/Makefile.sub, win32/Makefile.sub,nobu2003-05-215-64/+74
| | | | | | | wince/Makefile.sub: update dependencies. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3840 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * error.c (syserr_initialize): prohibit specifying errno formatz2003-05-216-13/+32
| | | | | | | | | | | | 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: http://svn.ruby-lang.org/repos/ruby/trunk@3839 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/optparse.rb: get rid of warnings.nobu2003-05-216-14/+34
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3838 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (rb_thread_save_context): prohibit rb_gc_force_recycle()matz2003-05-202-0/+7
| | | | | | | on thread saved ruby_dyna_vars. [ruby-dev:20236] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3837 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * object.c (init_copy): call initialize_copy at the end of copymatz2003-05-202-2/+7
| | | | | | | process. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3836 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * error.c (syserr_initialize): use Errno constants as defaultnobu2003-05-202-2/+13
| | | | | | | errno for subclasses. [ruby-dev:20241] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3835 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * st.h: define ST_DATA_T_DEFINED for portability.eban2003-05-204-5/+25
| | | | | | | | | | | | | | | | * 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: http://svn.ruby-lang.org/repos/ruby/trunk@3834 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (rb_yield_0): give warning for multiple values for amatz2003-05-208-28/+83
| | | | | | | | | | | | | | | | | | | | | | | | | 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: http://svn.ruby-lang.org/repos/ruby/trunk@3833 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (kill): set errno after calling raise().usa2003-05-202-11/+22
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3832 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (rb_f_missing): create exception instance by ordinalnobu2003-05-203-36/+100
| | | | | | | | | | | | | | | | 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: http://svn.ruby-lang.org/repos/ruby/trunk@3831 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/token.c, lib/implicit.c: expanded character set to allow UTF-8,why2003-05-193-1488/+3181
| | | | | | | other Ruby encodings. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3830 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/syck.c, lib/syck.h, lib/token.c, lib/gram.c: count line numberswhy2003-05-195-69/+77
| | | | | | | only if line pointer has increased. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3829 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2003-05-20eban2003-05-191-3/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3825 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dir.c (push_braces): do not push_braces() unless rbrace is found.matz2003-05-192-1/+6
| | | | | | | (ruby-bugs-ja:PR#469) git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3824 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/pty/pty.c (pty_finalize_syswait): join (using Thread#value)matz2003-05-1910-68/+149
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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: http://svn.ruby-lang.org/repos/ruby/trunk@3823 b2dd03c8-39d4-4d8f-98ff-823fe69b080e