aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* ditto.nobu2002-12-203-16/+12
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3194 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/curses/curses.c, ext/digest/digest.c, ext/dl/handle.c,nobu2002-12-2012-15/+22
| | | | | | | | | | ext/dl/ptr.c, ext/dl/sym.c, ext/gdbm/gdbm.c, ext/iconv/iconv.c, ext/stringio/stringio.c, ext/strscan/strscan.c, ext/tcltklib/tcltklib.c, ext/win32ole/win32ole.c: use rb_define_alloc_func(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3193 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (rb_io_fwrite): separated from io_write().nobu2002-12-204-24/+45
| | | | | | | | | | * marshal.c (w_byten): use rb_io_fwrite() to support non-blocking IO, and added error check. * rubyio.h: prototypes; rb_io_fwrite git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3191 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2002-12-20eban2002-12-201-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3190 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * object.c (Init_Object): should not remove Class#allocate.matz2002-12-204-63/+73
| | | | | | | | * lib/profiler.rb: separate profiling functions, without trace_func and at_exit setting. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3189 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (do_block): split "do" block and tLBRACE_ARG block.matz2002-12-2016-127/+194
| | | | | | | | | | | | | | | | | * parse.y (cmd_brace_block): new tLBRACE_ARG block rule * parse.y (command): can take optional cmd_brace_block; use %prec to resolve shift/reduce conflict. (ruby-bugs-ja PR#372) * eval.c (ruby_finalize): trace_func should be cleared here (after executing exit procs and finalizers). * eval.c (rb_define_alloc_func): new allocation framework, based on Nobu's work [ruby-dev:19116]. "allocate" method is no longer used for object allocation. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3188 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Fix a fatal typo. (pointed out by Jim Freeze)knu2002-12-201-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3187 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Improve.knu2002-12-196-23/+13
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3186 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Be consistent on the use of the implicit $_.knu2002-12-191-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3185 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Improve.knu2002-12-192-11/+9
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3184 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Fix a bug.knu2002-12-191-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3183 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* The use of $_ and ~/RE/ is discouraged.knu2002-12-191-2/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3182 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Strive to give better examples.knu2002-12-193-18/+20
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3181 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/README, lib/cgi/ftplib.rb, lib/telnet.rb: Delete ftplib.rbknu2002-12-195-27/+6
| | | | | | | | and telnet.rb. It has been quite some time sinc they were obsoleted and made to emit warnings. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3180 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Delete final.rb.knu2002-12-191-1/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3179 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/tempfile.rb: Embed Rdoc style comments.knu2002-12-192-41/+62
| | | | | | | * lib/tempfile.rb: Add length as an alias for size. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3178 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Add Tempfile#close!() as a shorthand for Tempfile#close(true).knu2002-12-192-7/+32
| | | | | | | Add Tempfile#{unlink,delete}(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3177 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Delete final.rb, which was obsoleted long ago.knu2002-12-194-6/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3176 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * re.c (rb_reg_match_pre, rb_reg_match_post, match_to_a,nobu2002-12-192-7/+15
| | | | | | | | match_select): return instances of same class as the original string. [ruby-dev:19119] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3175 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * numeric.c (DBL_EPSILON): fix typo.usa2002-12-192-1/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3174 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* [BUG] not SEGV.nobu2002-12-191-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3173 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (assign): avoid SEGV at multiple attribute assignment.nobu2002-12-192-0/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3172 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2002-12-19nobu2002-12-191-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3171 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * numeric.c (num_step): use DBL_EPSILON.matz2002-12-1918-47/+158
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * array.c (rb_check_array_type): new function: return an array (convert if possible), or nil. * string.c (rb_check_string_type): new function: return a string (convert if possible), or nil. * numeric.c (rb_dbl_cmp): returns nil if values are not comparable. * numeric.c (fix_cmp,flo_cmp): use rb_num_coerce_cmp() * bignum.c (rb_big_cmp): ditto. * numeric.c (rb_num_coerce_cmp): new coercing function for "<=>", which does not raise TypeError. * numeric.c (do_coerce): can be supress exception now. * object.c (rb_mod_cmp): should return nil for non class/module objects. * re.c (rb_reg_eqq): return false if the argument is not a string. now returns boolean value. * class.c (rb_include_module): argument should be T_MODULE, not T_class, nor T_ICLASS. * eval.c (is_defined): "defined?" should return "assignment" for attribute assignment (e.g. a.foo=b) and indexed assignment (e.g. a[2] = 44). * parse.y (aryset): use NODE_ATTRASGN. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3169 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Mention the open-uri.rb import.knu2002-12-191-0/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3168 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* forgot to commit with open-uri.rb.akr2002-12-191-0/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3167 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Add a missing ||.knu2002-12-182-1/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3166 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_str_dup_frozen): handle tail shared string.nobu2002-12-182-3/+8
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3165 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_str_new4): handle tail shared string.nobu2002-12-172-9/+29
| | | | | | | (ruby-bugs-ja:PR#370) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3164 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * re.c (rb_reg_nth_match): tail sharing.nobu2002-12-172-3/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3163 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (is_defined): NODE_ATTRASGN should be assignment.nobu2002-12-171-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3162 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2002-12-17nobu2002-12-171-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3161 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * node.h (NODE_ATTRASGN): new node, assignment to attribute.nobu2002-12-175-3/+45
| | | | | | | | | | | | | [ruby-core:00637]. * eval.c (is_defined, rb_eval): ditto. * parse.y (attrset, node_assign): ditto. * string.c (rb_str_substr): tail sharing. [ruby-core:00650] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3160 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/open-uri.rb: new file.akr2002-12-163-0/+395
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3159 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * file.c (utimbuf): need to define for VC++.usa2002-12-162-0/+7
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3158 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2002-12-16nobu2002-12-161-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3156 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (nextc): get rid of overrun. (pointed out by akrnobu2002-12-162-1/+6
| | | | | | | [ruby-list:36773]) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * removed URI::Generic#to_ary.akira2002-12-162-8/+5
| | | | | | | * URI::Generic included URI. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3152 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Add and update entries.knu2002-12-151-21/+74
| | | | | | | Submitted by: Matt Armstrong <matt@lickey.com> (mostly) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3151 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (init_mkmf): add $(topdir) to $LIBPATH if $extmk.eban2002-12-152-13/+16
| | | | | | | remove adding $(archdir) to $LIBPATH. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3150 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2002-12-15nobu2002-12-151-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3149 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in, defines.h, dir.c, dir.h, dln.c, error.c,uema22002-12-1531-133/+134
| | | | | | | | | | | | | | | eval.c, file.c, hash.c, io.c, main.c, missing.c, process.c, ruby.c, rubysig.h, signal.c, st.c, util.c, util.h, bcc/Makefile.sub, win32/Makefile.sub, win32/win32.h, ext/Win32API/Win32API.c, ext/socket/getaddrinfo.c, ext/socket/getnameinfo.c, ext/socket/socket.c, ext/tcltklib/stubs.c : replace "NT" with "_WIN32", add DOSISH_DRIVE_LETTER * wince/exe.mak : delete \r at the end of lines. * wince/mswince-ruby17.def : delete rb_obj_become git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3148 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (dispose_string): dispose String object.nobu2002-12-152-7/+21
| | | | | | | * parse.y (heredoc_restore, here_document): fix memory leak. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3147 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * wince/sys : add stat.c, stat.h, timeb.c, timeb.h,uema22002-12-1411-18/+377
| | | | | | | | | | types.h, utime.c, utime.h * wince/dll.mak : object file name changed. * wince/io.c : add empty dup2(). * wince/io.h : add dup2 definition. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3146 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dbm/extconf.rb (rb_check): support for GNU dbm 1.8.3.eban2002-12-132-0/+10
| | | | | | | | (-with-dbm-type=gdbm_compat). link against -lgdbm_compat and -lgdbm. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3144 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dbm/extconf.rb (db_check): check existence of the functioneban2002-12-132-1/+6
| | | | | | | in the specified library before checking it in libc. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3141 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2002-12-13nobu2002-12-131-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3140 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (expr): rescue clause was ignored.nobu2002-12-132-0/+7
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3139 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in (RUBY_PROG_GNU_LD): add $CFLAGS, $CPPFLAGS, $LDFLAGSeban2002-12-124-10/+35
| | | | | | | | | | | | | | | | | | to the option of $CC. * configure.in: set LIBRUBYARG to '-l$(RUBY_SO_NAME)' if the target os is cygwin and --disable-shared option is supplied. * lib/mkmf.rb (init_mkmf): expand config["LIBRUBY"] and config["LIBRUBY_A"]. don't link $LIBRUBYARG_STATIC if --disable-shared option is supplied. * configure.in (RUBY_CPPOUTFILE): should be a better message. * ext/Win32API/extconf.rb: join with a space. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3138 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * re.c (rb_reg_hash): define Regexp#hash to make regexps to bematz2002-12-122-0/+28
| | | | | | | | | hash keys. * re.c (Init_Regexp): define Regexp#eql? (alias to Regexp#==). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3137 b2dd03c8-39d4-4d8f-98ff-823fe69b080e