summaryrefslogtreecommitdiffstats
path: root/ChangeLog
Commit message (Collapse)AuthorAgeFilesLines
...
* * regex.c (re_adjust_startpos): fix for SJIS.nobu2002-01-301-0/+6
| | | | | | | * regex.c (mbc_startpos): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2032 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * regex.c (re_adjust_startpos): search start of multibytenobu2002-01-291-0/+7
| | | | | | | | | backward. * regex.c (mbc_startpos): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2031 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/pp.rb: don't print a mode File::Stat as decimal number.akr2002-01-291-0/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2029 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * file.c: `major' and `minor' macro needs sys/mkdev.h on SunOS 5.x.akr2002-01-291-0/+6
| | | | | | | * configure.in: add check for `sys/mkdev.h'. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2028 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * file.c (rb_stat_rdev_major): added. [new]matz2002-01-291-0/+8
| | | | | | | | | * file.c (rb_stat_rdev_minor): added. [new] * file.c (rb_stat_inspect): print mode in octal. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2027 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (rb_ary_fill): shouldn't yield unless block given.nobu2002-01-281-0/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2025 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (yylex): strict check for numbers.nobu2002-01-281-0/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2024 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (is_defined): defined?(Foo::Baz) should check constantsmatz2002-01-281-0/+23
| | | | | | | | | | | | | | | | | | | | | only, no methods. * eval.c (is_defined): should not dump core on defined?(a::b) where a is not a class nor a module. * object.c (Init_Object): remove dup and clone from TrueClass, FalseClass, and NilClass. * array.c (rb_ary_fill): Array#fill takes block to get the value to fill. * string.c (rb_str_to_i): to_i(0) auto-detects base radix. * array.c (rb_ary_initialize): fill by the block evaluation value if block is given. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2021 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in (solaris): add '-shared' only for GNU ld.eban2002-01-251-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2018 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in (solaris): add '-shared' only for GNU ld.eban2002-01-251-0/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2017 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * class.c (rb_include_module): detect cyclic module inclusion.matz2002-01-251-0/+27
| | | | | | | | | | | | | | | | | | | | | | * eval.c (rb_thread_cleanup): need not to free thread stacks at process termination. * array.c (rb_ary_fetch): use the block to get the default value if the block is given. * eval.c (rb_thread_schedule): should check time only if BOTH WAIT_SELECT and WAIT_TIME. * eval.c (umethod_bind): should update rklass field. * hash.c (rb_hash_update): if a block is given, yields [key, value1, value2] to the block to resolve conflict. * string.c (rb_str_split_m): no need to consider KANJI characters, if the length of separator is 1 (byte). git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2015 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (Init_Array): remove Array#filter.matz2002-01-231-2/+18
| | | | | | | | | | | | | * object.c (rb_mod_initialize): should accept zero argument. * object.c (rb_mod_cmp): should raise ArgumentError if inheritance/inclusion relation between two classes/modules is not defined. [new] * io.c (rb_io_fsync): new method. [new] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2014 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (rb_yield_0): restore source file/line after yield.nobu2002-01-231-0/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2012 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * signal.c (ruby_signal): must define sighandler_t unlessnobu2002-01-211-0/+5
| | | | | | | POSIX_SIGNAL. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2011 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (ruby_stop): should not trace error handler.matz2002-01-211-0/+11
| | | | | | | | | | | | * signal.c (install_sighandler): do not install sighandler unless the old value is SIG_DFL. * io.c (io_write): should not raise exception on O_NONBLOCK io. * dir.c (dir_set_pos): seek should return dir, pos= should not. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2009 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (rb_eval): need not to clar method cache for NODE_CLASS,matz2002-01-191-0/+13
| | | | | | | | | | NODE_SCLASS. * gc.c (obj_free): need not to clear method cache on class/module finalization. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2006 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (rb_io_s_new): block check moved from initialize to thismatz2002-01-181-0/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | method. * io.c (rb_io_s_open): open should call initialize too. IO#for_fd also calls initialize. [new] * error.c (rb_sys_fail): replace INT2FIX() by INT2NUM() since errno value may not fit in Fixnum size on Hurd. * error.c (set_syserr): ditto. * dir.c (dir_s_glob): returns nil if block given. * io.c (rb_io_each_byte): should return self. * io.c (rb_io_close_m): close check added. * dir.c (dir_seek): should return pos. * parse.y (fixpos): orig may be (NODE*)1, which should not be dereferenced. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2004 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/socket.c (tcp_svr_s_open): fix typo.usa2002-01-181-0/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2003 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (block_pass): allow "retry" from within argument passedmatz2002-01-171-2/+23
| | | | | | | | | | | | | | | | | | | | | block. [new] * eval.c (localjump_error): should preserve exit status in the exception object. [new] * eval.c (proc_invoke): should raise exception for "break" if it's yielding, not calling. [new] * eval.c (block_pass): should NOT raise exception for "break". [new] * eval.c (block_pass): should allow block argument relay even in the tainted mode. * ext/socket/socket.c: support subclassing by proper "initialize" calling convention. [new] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2002 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * st.c: primes should be primes.matz2002-01-161-0/+17
| | | | | | | | | | | | * eval.c (is_defined): method defined? check should honor protected too. * eval.c (block_pass): should not pass tainted block, if $SAFE > 0. * variable.c (rb_mod_remove_cvar): should pass the char*. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1996 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/timeout.rb (timeout): new optional argument to specify anakr2002-01-161-0/+8
| | | | | | | | | | exception class. * lib/resolv.rb: use Resolv::ResolvTimeout for internal timeout to avoid problem with timeout of application. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1994 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * object.c (rb_Float): remove underscores between digits.nobu2002-01-161-0/+9
| | | | | | | | | | * bignum.c (rb_cstr2inum): reject prefix followed by spaces only. * class.c (rb_class_inherited): should use Object when no super class. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1993 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * re.c (match_select): should propagate taintness.matz2002-01-111-0/+16
| | | | | | | | | | | | | * hash.c (rb_hash_set_default): Hash#default= should return the new value. * string.c (rb_str_to_i): accepts optional base argument. [new] * numeric.c (rb_fix2str): should not handle negative fixnum values int32 via calling sprintf() directly. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1985 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * class.c (rb_make_metaclass): [new]nobu2002-01-101-0/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * class.c (rb_define_class_id): use rb_make_metaclass(), don't call Class#inherited hook. * class.c (rb_class_inherited): [new] * class.c (rb_define_class): call Class#inherited hook here. * class.c (rb_define_class_under): ditto after class path is set. * class.c (rb_singleton_class): use rb_make_metaclass(). * eval.c (rb_eval): same as rb_define_class_under(). * intern.h: prototypes of rb_make_metaclass() and rb_class_inherited(). * object.c (rb_class_s_new): use rb_make_metaclass() and rb_class_inherited(). * object.c (Init_Object): use rb_make_metaclass(). * struct.c (make_struct): use rb_class_inherited(). git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1983 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (rb_add_method): should clear cache by id always.nobu2002-01-101-0/+19
| | | | | | | | | | | | | | | | | | | | * eval.c (rb_disable_super): no longer need to clear cache before rb_add_method(). * eval.c (rb_export_method): ditto. * eval.c (rb_attr): ditto. * eval.c (rb_undef): ditto. * eval.c (rb_eval): ditto. * eval.c (rb_mod_modfunc): ditto. * eval.c (rb_mod_define_method): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1981 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/resource.rb: Modify copyright in resource script.usa2002-01-101-0/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1978 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * misc/ruby-mode.el (ruby-calculate-indent): indentation afternobu2002-01-091-0/+8
| | | | | | | | | | comment at beginning of buffer failed. * misc/ruby-mode.el (font-lock-defaults): unless XEmacs, set font-lock variables in ruby-mode-hook. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1976 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (rb_add_method): clear replaced method from the cache.nobu2002-01-081-0/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1974 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_str_new2): NULL pointer check added.matz2002-01-071-0/+9
| | | | | | | | * class.c (rb_define_module_under): should locate predefined module using rb_const_defined_at(). git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1969 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/time.rb (Time#xmlschema): new optional argumentakr2002-01-071-0/+6
| | | | | | | | fractional_seconds to specify a number of digits of fractional part of the time. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1968 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* misordered.nobu2002-01-051-4/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1967 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * range.c (range_member): beginning check wasnobu2002-01-051-0/+5
| | | | | | | wrong. [ruby-talk:30252] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1966 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * misc/ruby-mode.el (ruby-forward-string): forward a string. [new]nobu2002-01-051-0/+14
| | | | | | | | | | | | | * misc/ruby-mode.el (ruby-parse-region): handle nested parentheses in a string and terminators in #{}. * misc/ruby-mode.el (ruby-calculate-indent): ditto. * misc/ruby-mode.el (ruby-font-lock-syntactic-keywords): fix font-lock problem [ruby-talk:29296]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1965 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (yycompile): strdup()'ed twice.nobu2002-01-041-0/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1963 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (rb_f_system): abandon vfork.matz2002-01-031-0/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | * io.c (pipe_open): ditto. * defines.h: sparc linux needs different FLUSH_REGISTER_WINDOWS * regex.c (re_search): abandon stclass optimization. * bignum.c (rb_cstr2inum): deny "0_". * bignum.c (rb_cstr2inum): allow "0\n" and so on. * error.c (rb_invalid_str): utility function to show inspect()'ed string. * bignum.c (rb_cstr2inum): prints invalid strings in inspect()'ed format. * object.c (rb_Float): ditto. * object.c (rb_convert_type): no longer use rb_rescue(). * re.c (rb_reg_search): initialize taint status of match object. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1957 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (create_makefile): add -I. to CPPFLAGS.eban2002-01-021-0/+6
| | | | | | | * lib/mkmf.rb (create_makefile): srcdir support(.def and depend file). git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1955 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/curses/extconf.rb: add dir_config.eban2001-12-311-9/+6
| | | | | | | * Makefile.in (fake.rb): set RUBY_VERSION. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1954 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (yycompile): always store copy of filename.nobu2001-12-311-0/+6
| | | | | | | * parse.y (rb_compile_file): no longer need to strdup() here. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1952 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* aamineaamine2001-12-301-0/+15
| | | | | | | | | | | * lib/net/protocol.rb: Protocol#start returns the return value of block. * lib/net/protocol.rb: set timeout limit by default. * lib/net/protocol.rb: new methods WriteAdapter#write, puts, print, printf. * lib/net/http.rb: rename HTTP#get2 to request_get, post2 to request_post ... * lib/net/smtp.rb: should not resolve HELO domain automatically. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1951 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/extmk.rb.in, lib/mkmf.rb (have_library): accept -lmeban2001-12-291-0/+5
| | | | | | | unconditionally on mswin32/mingw32. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1945 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (rb_cmpint): fixed typo.nobu2001-12-281-0/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1944 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bignum.c (rb_cstr2inum): deny "0_".nobu2001-12-271-0/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1943 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bignum.c (rb_cstr2inum): allow "0\n" and so on.nobu2001-12-261-0/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1942 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/pp.rb, lib/prettyprint.rb: new files.akr2001-12-241-0/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1937 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * time.c (time_timeval): wrong cast to time_t.matz2001-12-221-0/+6
| | | | | | | * time.c (time_plus): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1935 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (str_extend): make up "#$;" handling.matz2001-12-221-0/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1934 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * time.c (time_plus): result should not be negative unlessmatz2001-12-211-0/+24
| | | | | | | | | | | | | | | | | | | | | | NEGATIVE_TIME_T is defined. * time.c (time_new_internal): should check tv_sec overflow too. * time.c (time_timeval): should check time_t range when time is initialized from float. * time.c (time_plus): uses modf(3). * variable.c (rb_cvar_set): add frozen class/module check. * variable.c (rb_cvar_declare): add frozen class/module check. * re.c (match_to_a): should propagate taint. * re.c (rb_reg_s_quote): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1933 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dln.h, ruby.h, util.h: enable prototypes in C++.nobu2001-12-211-0/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1931 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (rb_mod_define_method): must not convert Method to Proc.nobu2001-12-201-0/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1929 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (with_destdir): new.nobu2001-12-201-0/+8
| | | | | | | | | * lib/mkmf.rb: prefix target directories with $(DESTDIR) all. * lib/mkmf.rb: no need to mkdir $(libdir) git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1928 b2dd03c8-39d4-4d8f-98ff-823fe69b080e