aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * lib/getopts.rb: single_options can be nil[*], and is not notknu2002-03-133-2/+18
| | | | | | | optional. ([*]Pointed out by gotoken) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2189 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2002-03-12nobu2002-03-121-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2188 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * regex.c (re_compile_pattern): '\0111' should be '\011' plus '1',matz2002-03-124-24/+9
| | | | | | | | | | | | | | | | | | | | | | | | | since octal literals are formed by three digits at most. * marshal.c (w_object): module inclusion using extend() should also be detected. * eval.c (rb_eval_cmd): cbase should not be NULL; it should be either ruby_wrapper or Object. * enum.c (enum_each_with_index): should return self. * process.c (proc_setpgrp): should return value for non-void function. * process.c (proc_getpgid): should raise exception if getpgid() return -1. * string.c (rb_str_ljust): should return a duplicated string. * string.c (rb_str_rjust): ditto. * string.c (rb_str_center): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2187 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/resolv.rb: don't complete domains for absolute FQNs.akr2002-03-122-30/+35
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2185 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Remove the entries that have already been merged into the stableknu2002-03-111-12/+0
| | | | | | | | | | branch. [Note that the NEWS file on this branch should note the differences from the latest snapshot of the stable branch] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2184 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* tsort description modifed.akr2002-03-111-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2181 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* tsort library added.akr2002-03-111-0/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2180 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/tsort.rb: new file.akr2002-03-114-0/+295
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2179 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* StringIO.nobu2002-03-111-0/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2178 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2002-03-11nobu2002-03-111-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2177 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* StringIOnobu2002-03-111-0/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2176 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Initial revisionnobu2002-03-112-0/+890
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2173 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * marshal.c (w_object): module inclusion using extend() shouldmatz2002-03-1110-28/+65
| | | | | | | | | | | | | | | | | | | | | | also be detected. * eval.c (rb_eval_cmd): cbase should not be NULL; it should be either ruby_wrapper or Object. * enum.c (enum_each_with_index): should return self. * process.c (proc_setpgrp): should return value for non-void function. * process.c (proc_getpgid): should raise exception if getpgid() return -1. * string.c (rb_str_ljust): should return a duplicated string. * string.c (rb_str_rjust): ditto. * string.c (rb_str_center): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2172 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/extconf.rb (have_struct_member): don't print checkedakr2002-03-082-4/+9
| | | | | | | result. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2171 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2002-03-08eban2002-03-081-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2170 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (cvar_cbase): utility function to find innermost nonmatz2002-03-0814-88/+180
| | | | | | | | | | | | | | | | | | | | | | | | | | | singleton cbase. * eval.c (is_defined): adopt new cvar behavior. * eval.c (rb_eval): ditto. * eval.c (assign): ditto. * class.c (rb_mod_clone): should not call rb_obj_clone(), since Module does not provide "allocate". * class.c (rb_singleton_class): should crate new singleton class if obj is a class or module and attached object is different, which means metaclass of singleton class is sought. * time.c (time_s_alloc): now follows allocation framework. * eval.c (rb_eval): should initialize outer class variables from methods in singleton class definitions. * eval.c (assign): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2169 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/resolv.rb: use its own thread group for background threads.akr2002-03-082-1/+10
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2167 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c (rb_source_filename): added. holds unique strings for filenobu2002-03-077-8/+82
| | | | | | | | | | | | | | | | | | | | | | | | | | | names with GC space. * gc.c (rb_gc_mark): mark source file name. * gc.c (gc_sweep): ditto. * gc.c (Init_GC): initialize source file name table. * intern.h (rb_source_filename): added. * eval.c (rb_eval_string): use rb_source_filename(). * parse.y (yycompile): ditto. * ruby.c (proc_options): ditto. * ruby.c (load_file): ditto. * ruby.c (ruby_script): ditto. * ruby.c (ruby_prog_init): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2166 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dln.c (dln_load): use LoadLibrary instead of LoadLibraryEx.eban2002-03-063-4/+7
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2165 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* - Slightly fix one of the last entries. (stdin -> stdin or stdout)knu2002-03-041-9/+10
| | | | | | | - Fix indentation. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2164 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/getopts.rb: Rewrite to fix some bugs and complete features.knu2002-03-042-75/+75
| | | | | | | | | | | | | - Accept options with the colon in the first argument; getopts("a:bcd:") is equivalent to getopts("bc", "a:", "d:"). - Do not discard the argument that caused an error. - Do not discard '-', which commonly stands for stdin. - Allow specifying a long option with a value using '='. (command --long-option=value) - Stop reading options when it meets a non-option argument. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2163 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/extmk.rb.in (dir_config): Sync with mkmf.rb: Fix a bug whereknu2002-03-042-13/+11
| | | | | | | | --with-xx-{include,lib} is ignored when --with-xx-dir is specified. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2161 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Make cvs ignore mkmf.log.knu2002-03-0413-0/+14
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2160 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix method name.akr2002-03-031-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2159 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2002-03-01eban2002-03-011-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/{addinfo.h,getaddrinfo.c} (gai_strerror): add consteban2002-03-013-2/+13
| | | | | | | qualifier only for uClibc. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2154 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ChangeLog: fixed the description of getacl.shugo2002-03-011-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2153 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/imap.rb: added document.shugo2002-03-012-9/+176
| | | | | | | | | | * lib/net/imap.rb (getquotaroot): new method. * lib/net/imap.rb (setacl): remove the rights if the rights parameter is nil. * lib/net/imap.rb (getacl): return a MailboxACLItem object. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2152 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dln.c (dln_load): fix typo.akr2002-02-282-1/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2151 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/extconf.rb (have_struct_member): new method.akr2002-02-283-0/+247
| | | | | | | | | | | | | | check msg_control and msg_accrights in struct msghdr. check sys/uio.h. * socket/socket.c: include sys/uio.h if available. (thread_read_select): new function. (unix_send_io): ditto. (unix_recv_io): ditto. (unix_s_socketpair): ditto. (Init_socket): define UNIXSocket#send_io, UNIXSocket#recv_io, git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2150 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2002-02-28eban2002-02-281-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2148 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (rb_mod_include): load modules in argument order.matz2002-02-289-398/+397
| | | | | | | | | | * st.c (st_init_table_with_size): num_bins should be prime numbers (no decrement). * st.c (rehash): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2147 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dbm/dbm.c (fdbm_select): 1.7 behavior.matz2002-02-279-201/+405
| | | | | | | | | | | | | | | | | | | | * ext/gdbm/gdbm.c (fgdbm_select): ditto. * ext/sdbm/sdbm.c (fsdbm_select): ditto. * ext/dbm/dbm.c (fdbm_delete): adopt Hash#delete behavior. * ext/sdbm/sdbm.c (fsdbm_delete): ditto. * ext/gdbm/gdbm.c: need not to dup key to the block. * ext/sdbm/sdbm.c : replace RuntimeError with SDBMError. * eval.c (rb_f_missing): NoMethod error messages for true, false, nil must respond visibility like for other objects. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2145 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (READ_DATA_PENDING): uClibc support.eban2002-02-276-5/+15
| | | | | | | | * random.c (rand_init): ditto. * ext/socket/{addinfo.h,getaddrinfo.c} (gai_strerror): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2143 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/digest/sha2/sha2.c: Merge from rough. Fix a couple ofknu2002-02-262-3/+12
| | | | | | | | | | | off-by-one errors in Aaron Gifford's code. Obtained from: KAME via FreeBSD KAME PR: 393 FreeBSD PR: kern/34242 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2142 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2002-02-26usa2002-02-261-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2141 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bignum.c (rb_big_2comp): void function cannot return any value.usa2002-02-262-1/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2140 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (rb_eval): call trace_func for if/while conditions.matz2002-02-264-37/+56
| | | | | | | * marshal.c (r_object): separate r_regist from proc calling. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2139 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/uri/generic.rb: merge0 shuld return [oth, oth] if oth is absolute URI.akira2002-02-263-2/+22
| | | | | | | * lib/uri/generic.rb: registry part must not be allowed for any schemes for the Internet. (RFC2396, section 3.2.2 and 3.2.1.) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2138 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Corrected mis-indentation. Try diff -w to find that these are the same withoutnahi2002-02-251-704/+704
| | | | | | | indentation. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2137 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/syslog/syslog.c: Merge from rough. Use SafeStringValue().knu2002-02-252-1/+9
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2135 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/syslog/syslog.c: Merge from rough. Turn Syslog into aknu2002-02-254-166/+136
| | | | | | | module keeping backward compatibility intact. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2134 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* commit miss.nobu2002-02-251-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2133 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * sample/test.rb (system): test with scripts under the sourcenobu2002-02-252-1/+11
| | | | | | | directory. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2132 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2002-02-25eban2002-02-251-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2130 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (method_inspect): should not dump core for unboundmatz2002-02-256-27/+63
| | | | | | | | | | | | | | singleton methods. * object.c (rb_mod_to_s): better description. * hash.c (env_select): should path the assoc list. * process.c (rb_syswait): thread kludge; should be fixed to support native thread. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2128 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/shell.rb (Shell::expand_path): relative to @cwd.nobu2002-02-252-1/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2126 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/digest/*/*.h: Merge from rough.knu2002-02-241-0/+5
| | | | | | | - Avoid namespace pollution. (MD5_* -> rb_Digest_MD5_*, etc.) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2123 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Merge from rough.knu2002-02-244-4/+64
| | | | | | | - Avoid namespace pollution. (MD5_* -> rb_Digest_MD5_*, etc.) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2122 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Refactoring. Added Context#format_frame to format a frame, used by up/downnahi2002-02-231-13/+16
| | | | | | | command and Context#display_frames. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2121 b2dd03c8-39d4-4d8f-98ff-823fe69b080e