aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* * ext/dbm/dbm.c (each_pair): add prototype to avoid VC++ warnings.usa2003-04-173-0/+15
| | | | | | | | * ext/readline/readline.c (Init_readline): follow readline 4.2 prototype. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3690 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2003-04-17nobu2003-04-171-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3689 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (cond0): warn only range literals whose both side arenobu2003-04-172-1/+39
| | | | | | | literals. [ruby-core:00964] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3688 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/readline/readline.c: add the defined operator for bcc32.eban2003-04-172-3/+7
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3687 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * misc/ruby-mode.el (ruby-special-char-p): should test at thenobu2003-04-152-1/+7
| | | | | | | | point if no argument. fixed by Michael Scholz <scholz-micha@gmx.de>. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3686 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/fileutils.rb: rm_r should raise Errno::ENOENT if file not exist. ↵aamine2003-04-152-0/+6
| | | | | | [ruby-core:958] Thanks Johan Holmberg. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3685 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* (ruby-bugs:PR#758)nobu2003-04-151-0/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3684 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * struct.c (rb_struct_hash): new methods Struct#hash, Struct#eql?.nobu2003-04-152-0/+22
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3683 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2003-04-15eban2003-04-151-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3682 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * numeric.c (rb_fix2str): buffer was insufficient.nobu2003-04-152-1/+6
| | | | | | | (ruby-bugs-ja:PR#431) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3681 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * file.c (file_expand_path): root must follow buf whennobu2003-04-142-0/+7
| | | | | | | reallocated. [ruby-talk:69339], [ruby-dev:20025] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3680 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * rubyio.h (struct OpenFile): add error raise flag to finalizer.matz2003-04-146-23/+42
| | | | | | | | | | | | | | | | * io.c (Init_IO): define $/, $-0, and $\ as string-only variables. * string.c (rb_str_split_m): does not generate empty string if there's no match in the receiver. * io.c (fptr_finalize): should raise error on EBADF for readable IOs as well. * file.c (rb_stat): use rb_check_convert_type() to retrieve IO. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3679 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2003-04-14nobu2003-04-141-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3678 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bignum.c (rb_cstr_to_inum, rb_big2str): allow 2-36 as radix.nobu2003-04-145-69/+98
| | | | | | | | | * numeric.c (rb_fix2str): ditto. * string.c (rb_str_to_i): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3677 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (try_func): remove COMMON_HEADERS at first for performance.eban2003-04-122-1/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3676 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * misc/ruby-mode.el (ruby-forward-sexp): missed argument for forward-word.nobu2003-04-121-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3675 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * misc/ruby-mode.el (ruby-beginning-of-arg): substitutenobu2003-04-122-128/+163
| | | | | | | | | | | | | ruby-backward-arg. * misc/ruby-mode.el (ruby-calculate-indent): fixed wrong indentation in brace block and parentheses. * misc/ruby-mode.el (ruby-forward-sexp, ruby-backward-sexp): support special char literal, and negative arguments. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3674 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (rb_w32_stat): check arguments. [ruby-dev:20007]nobu2003-04-112-6/+13
| | | | | | | [ruby-win32:535] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3673 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * sample/test.rb: NaN comparison test.nobu2003-04-112-0/+26
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3672 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * numeric.c (coerce_rescue): prevent inspected String from GC.nobu2003-04-112-20/+43
| | | | | | | | * numeric.c (flo_eq, rb_dbl_cmp, flo_gt, flo_ge, flo_lt, flo_le, flo_eql): correct NaN comparison. (ruby-bugs:PR#744) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3671 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * file.c (rb_stat): dereference using StringValuePtr().matz2003-04-112-5/+8
| | | | | | | * file.c (rb_file_s_stat): use rb_stat(). [ruby-dev:20007] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3670 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2003-04-11eban2003-04-111-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3669 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/benchmark.rb (Benchmark::bm): get rid of warning.nobu2003-04-112-1/+6
| | | | | | | [ruby-talk:69124] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3668 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (set_stdin): assigned value must respond to "read" andnobu2003-04-102-7/+31
| | | | | | | | | | "getc". * io.c (set_outfile): assigned value must respond to "write". (ruby-bugs-ja:PR#425) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3667 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/pop.rb: Exception line was accidentaly removed. [ruby-dev:19989]aamine2003-04-102-0/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3666 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* added some checks for request size.tadf2003-04-102-0/+8
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3665 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * variable.c (rb_mod_name): always return empty string formatz2003-04-105-49/+55
| | | | | | | | | | | | | | anonymous class/module. (ruby-bugs-ja PR#424) * config.sub: stop forcing addition of -gnu to -linux. * variable.c (classname): refactoring. * variable.c (rb_class_path): __tmp__classpath__ handling moved from classname(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3664 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * variable.c (rb_mod_name): search module path if classname is notmatz2003-04-093-5/+10
| | | | | | | set yet. (ruby-bugs-ja PR#424) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3663 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (rb_obj_is_method): indefinite return value.nobu2003-04-092-0/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3662 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2003-04-10eban2003-04-091-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3661 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * regex.c (re_compile_pattern): /[\--\-]/ was warned. warn /]/.akr2003-04-093-4/+12
| | | | | | | * mkconfig.rb: escape `]' in regexp. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3660 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * time.c (time_strftime): RSTRING(format)->ptr might become NULL.nobu2003-04-092-2/+8
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3659 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * variable.c (rb_obj_remove_instance_variable): better message.matz2003-04-093-14/+42
| | | | | | | | | | | | | | | | | | [ruby-talk:68987] * variable.c (rb_mod_remove_const): ditto. * object.c (rb_obj_ivar_get): ditto. * object.c (rb_obj_ivar_set): ditto. * parse.y (yylex): ditto. * eval.c (rb_mod_define_method): Allow UnboundMethod as parameter. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3658 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c (rb_gc_mark_children): introduce this function again; thismatz2003-04-092-25/+40
| | | | | | | is required when stack was very tight. [ruby-talk:68916] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3657 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2003-04-09eban2003-04-091-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3655 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bignum.c (bigdivmod): small typo.matz2003-04-092-1/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3654 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bignum.c (BIGZEROP): macro to determine if x is a bignum zero.matz2003-04-095-31/+37
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3653 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/readline/readline.c: include <unistd.h> only whenusa2003-04-092-0/+7
| | | | | | | HAVE_UNISTD_H is defined. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3652 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * marshal.c (w_object): preserve extended module on struct.nobu2003-04-092-23/+26
| | | | | | | (ruby-bugs-ja:PR#422) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3651 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * random.c (rb_f_rand): normalize bignum argument.matz2003-04-083-1/+17
| | | | | | | | * sprintf.c (rb_f_sprintf): was decrementing width even if there is no sign character. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3650 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2003-04-08eban2003-04-081-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3649 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (Init_Proc): make Method and UnboundMethod independent.matz2003-04-085-6/+29
| | | | | | | | | | | | | | | | They are like instance and its class. [ruby-core:00941] * parse.y (yylex): disallow global variables like "$1ve". [ruby-core:00945] * marshal.c (marshal_dump): Marshal.dump(0, false) should cause an error. (ruby-bugs-ja PR#421) * regex.c (re_compile_pattern): warn if '-' is the edge of character range. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3648 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2003-04-07eban2003-04-071-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3647 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/socket.c (sock_s_unpack_sockaddr_in): remove structmatz2003-04-076-15/+31
| | | | | | | | | | | | | | | | | | | size check. getnameinfo(3) can handle. [ruby-dev:19967] * io.c (io_read): do not call rb_sys_fail() when required data length is zero. (ruby-bugs-ja PR#420) * eval.c (umethod_proc): should raise TypeError, instead of returning error causing Proc. Following the principle of "fail early". [ruby-core:00927] * pack.c (pack_pack): small but serious typo. * eval.c (backtrace): skip internal allocator frame. (ruby-bugs-ja PR#416) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3646 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * zlib.c (rb_gzreader_getc): the return value of GzipReader#getc must be ↵katsu2003-04-061-1/+1
| | | | | | unsigned. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3645 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * sample/exyacc.rb: use Regexp in gsub!.akr2003-04-052-2/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3644 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2003-04-04eban2003-04-041-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3643 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (assign): should prepare mrhs by svalue_to_mrhs().matz2003-04-044-5/+22
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3642 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2003-04-03eban2003-04-031-4/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3641 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (rb_f_missing): use "inspect" for T_OBJECT as well.matz2003-04-037-9/+26
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3640 b2dd03c8-39d4-4d8f-98ff-823fe69b080e