aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * parse.y (stmt): local variable declaration order was changedmatz2002-02-1312-106/+289
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | since 1.6 * parse.y (arg): ditto. * pack.c (pack_pack): add templates 'q' and 'Q'. * pack.c (pack_unpack): ditto. * bignum.c (rb_quad_pack): new utility function. * bignum.c (rb_quad_unpack): ditto. * parse.y (assignable): should emit CVASGN within the method body. * dir.c (dir_s_glob): should not warn even if no match found. * eval.c (rb_eval): clean up class variable behavior. * eval.c (assign): ditto. * eval.c (is_defined): ditto. * variable.c (rb_mod_class_variables): need not to call rb_cvar_singleton(). * variable.c (rb_cvar_singleton): removed. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2063 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ruby.c (load_file): avoid SEGV on '#' only input.nobu2002-02-103-2/+7
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2062 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2002-02-09nobu2002-02-091-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2061 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (rb_eval): singleton chech should be moved from yycompilematz2002-02-093-21/+30
| | | | | | | | | to here. * eval.c (is_defined): check should be added here too. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2060 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2002-02-08nobu2002-02-081-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2059 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (yycompile): should inherit "in_single" if eval happenedmatz2002-02-083-1/+13
| | | | | | | | | | | in a singleton method. * eval.c (rb_eval): class variables from singleton methods defined within singleton class statement should work like ones defined by sington def statements. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2058 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* aamineaamine2002-02-073-43/+62
| | | | | | | | * lib/net/http.rb: HTTP.Proxy should use self for proxy-class's super class. * lib/net/http.rb: initialize HTTP.proxy_port by HTTP.port. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2056 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2002-02-07nobu2002-02-071-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2055 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* uri-0.9.5akira2002-02-074-4/+27
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2053 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (io_write): flag when buffered write is done.matz2002-02-073-4/+32
| | | | | | | | * io.c (fptr_finalize): do not raise error on EBADF if write buffer is empty. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2052 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in: keep old config.h unless changed.nobu2002-02-062-2/+10
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2050 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (rb_io_readlines): avoid calling GetOpenFile() repeatedly.matz2002-02-065-90/+144
| | | | | | | | | | | * io.c (rb_io_each_line): ditto. * io.c (argf_getline): ditto. * process.c: should include <time.h> to get proper CLK_TCK. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2049 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/imap.rb: OpenSSL support.shugo2002-02-062-14/+63
| | | | | | | * lib/net/imap.rb (setquota): unset quota if the second argument is nil. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2048 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (fptr_finalize): ignore EBADF when f and f2 use samenobu2002-02-052-7/+16
| | | | | | | descriptor. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2047 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (fptr_finalize): should raise error when fclose fails.matz2002-02-056-45/+81
| | | | | | | | * eval.c (method_inspect): proper output format to distinguish methods and singleton methods. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2046 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * file.c (rb_file_s_expand_path): should terminate.nobu2002-02-042-0/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2045 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2002-02-04eban2002-02-041-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2043 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * object.c (rb_class_real): should not follow ICLASS linkmatz2002-02-046-33/+52
| | | | | | | * variable.c (classname): should follow ICLASS link explicitly. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2042 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * intern.h: prototypes for new functions; rb_cstr_to_inum(),nobu2002-02-018-91/+183
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | rb_str_to_inum(), rb_cstr_to_dbl(), rb_str_to_dbl() * bignum.c (rb_cstr_to_inum): changed from rb_cstr2inum(), and added argument badcheck to be consistent with parser. [new] * bignum.c (rb_str_to_inum): ditto. * bignum.c (rb_cstr2inum): wapper of rb_cstr_to_inum() now. * bignum.c (rb_str2inum): ditto. * object.c (rb_cstr_to_dbl): float number parser. [new] * object.c (rb_str_to_dbl): ditto. * object.c (rb_Float): use rb_cstr_to_dbl() for strict check. * object.c (rb_Integer): use rb_str_to_inum() for strict check. * string.c (rb_str_to_f): use rb_str_to_dbl() with less check. * string.c (rb_str_to_i): use rb_str_to_inum() with less check. * string.c (rb_str_hex): ditto. * string.c (rb_str_oct): ditto. * sprintf.c (rb_f_sprintf): ditto. * time.c (obj2long): ditto. * parse.y (yylex): use rb_cstr_to_inum() for strict check. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2041 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * regex.c (mbc_startpos): become macro.nobu2002-02-012-78/+84
| | | | | | | | | | | * regex.c (euc_startpos): added for improvement. * regex.c (sjis_startpos): ditto. * regex.c (utf8_startpos): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2040 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2002-02-01nobu2002-02-011-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2039 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * file.c (rb_stat_inspect): print dev, rdev in hexadecimal.matz2002-02-016-10/+23
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2038 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (dir_config): prior --with flag.nobu2002-01-312-18/+14
| | | | | | | | * lib/mkmf.rb (arg_config): avoid special variables for font-lock-mode. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2036 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* refine previous change.akr2002-01-311-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2035 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/pp.rb (File::Stat#pretty_print): print rdev_major and rdev_minor.akr2002-01-312-2/+12
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2034 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * regex.c (re_adjust_startpos): fix for SJIS and UTF-8.nobu2002-01-301-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2033 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * regex.c (re_adjust_startpos): fix for SJIS.nobu2002-01-302-7/+25
| | | | | | | * regex.c (mbc_startpos): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2032 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * regex.c (re_adjust_startpos): search start of multibytenobu2002-01-293-24/+127
| | | | | | | | | backward. * regex.c (mbc_startpos): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2031 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Add wresize, resizeterm and KEY_RESIZE.ttate2002-01-292-1/+32
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2030 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/pp.rb: don't print a mode File::Stat as decimal number.akr2002-01-292-3/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2029 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * file.c: `major' and `minor' macro needs sys/mkdev.h on SunOS 5.x.akr2002-01-293-1/+12
| | | | | | | * configure.in: add check for `sys/mkdev.h'. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2028 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * file.c (rb_stat_rdev_major): added. [new]matz2002-01-295-104/+283
| | | | | | | | | * file.c (rb_stat_rdev_minor): added. [new] * file.c (rb_stat_inspect): print mode in octal. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2027 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (rb_ary_fill): shouldn't yield unless block given.nobu2002-01-282-1/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2025 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (yylex): strict check for numbers.nobu2002-01-282-44/+65
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2024 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (is_defined): defined?(Foo::Baz) should check constantsmatz2002-01-2814-28/+110
| | | | | | | | | | | | | | | | | | | | | 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: svn+ssh://ci.ruby-lang.org/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: svn+ssh://ci.ruby-lang.org/ruby/trunk@2018 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in (solaris): add '-shared' only for GNU ld.eban2002-01-253-4/+11
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2017 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * class.c (rb_include_module): detect cyclic module inclusion.matz2002-01-2511-22/+87
| | | | | | | | | | | | | | | | | | | | | | * 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@2015 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (Init_Array): remove Array#filter.matz2002-01-2313-42/+102
| | | | | | | | | | | | | * 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@2014 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2002-01-23nobu2002-01-231-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2013 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (rb_yield_0): restore source file/line after yield.nobu2002-01-232-0/+8
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2012 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * signal.c (ruby_signal): must define sighandler_t unlessnobu2002-01-212-1/+6
| | | | | | | POSIX_SIGNAL. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2011 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2002-01-21eban2002-01-211-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2010 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (ruby_stop): should not trace error handler.matz2002-01-216-27/+76
| | | | | | | | | | | | * 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@2009 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2002-01-19usa2002-01-191-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2007 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (rb_eval): need not to clar method cache for NODE_CLASS,matz2002-01-196-9/+20
| | | | | | | | | | NODE_SCLASS. * gc.c (obj_free): need not to clear method cache on class/module finalization. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2006 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2002-01-18nobu2002-01-181-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2005 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (rb_io_s_new): block check moved from initialize to thismatz2002-01-188-109/+116
| | | | | | | | | | | | | | | | | | | | | | | | | | 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@2004 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/socket.c (tcp_svr_s_open): fix typo.usa2002-01-182-1/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2003 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (block_pass): allow "retry" from within argument passedmatz2002-01-175-79/+191
| | | | | | | | | | | | | | | | | | | | | 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@2002 b2dd03c8-39d4-4d8f-98ff-823fe69b080e