summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* * intern.h (HAVE_RB_DEFINE_ALLOC_FUNC): New boolean macro to makeknu2003-02-073-0/+12
| | | | | | | | | | | it easier to write extensions that work with both ~1.6 and 1.8~. * intern.h (RB_CVAR_SET_4ARGS): Ditto. * ruby.h (NORETURN_STYLE_NEW): Ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3458 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2003-02-07eban2003-02-071-3/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3457 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* re-indented.nobu2003-02-071-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3456 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * intern.h, re.c (rb_memsearch): returns long.nobu2003-02-074-3/+13
| | | | | | | * string.c (rb_str_index): should return offset position. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3455 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (proc_invoke): should propagate self to supernobu2003-02-072-0/+6
| | | | | | | methods. [ruby-dev:19510] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3454 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * re.c (rb_reg_initialize_m): shoule not preset "kcode" unlessmatz2003-02-062-15/+22
| | | | | | | encoding is explicitly specified. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3453 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/fileutils.rb: new method FileUtils.pwd.aamine2003-02-062-62/+59
| | | | | | | | | * lib/fileutils.rb: default label is ''. * lib/fileutils.rb: using module_eval again, to avoid ruby's bug. * lib/fileutils.rb: fix wrong examples in rdoc. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3452 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/complex.rb (Complex#==): should not raise error by typematz2003-02-063-9/+29
| | | | | | | | | mismatch. * lib/rational.rb (Rational#==): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3451 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2003-02-06eban2003-02-061-3/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3450 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * re.c (rb_reg_initialize_m): 3rd argument was ignored.matz2003-02-063-3/+12
| | | | | | | | * string.c (rb_str_count): return 0 for empty string (was returning nil). git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3449 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/open-uri.rb: dispatch code restructured to make it openableakr2003-02-052-46/+43
| | | | | | | that has `open' method. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3448 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/open-uri.rb: Location: field may has a relative URI.akr2003-02-052-1/+12
| | | | | | | pointed out by erik eriksson <ee@opera.com>. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3447 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2003-02-05eban2003-02-051-3/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3446 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (yylex): no .<digit> floating literal anymore.matz2003-02-052-10/+8
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3445 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* typonobu2003-02-041-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3444 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2003-02-04eban2003-02-041-3/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3443 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (rb_ary_equal): a == b is true when b is non T_ARRAYmatz2003-02-046-7/+38
| | | | | | | | | | | | | object, if b has "to_ary" and b == a. * hash.c (rb_hash_equal): a == b is true when b is non T_HASH object, if b has "to_hash" and b == a. * string.c (rb_str_equal): a == b is true when b is non T_STRING object, if b has "to_str" and b == a. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3442 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Added RDoc comments. See comments at EOF for remaining issues.gsinclair2003-02-041-37/+148
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3438 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Added RDoc comments.gsinclair2003-02-031-3/+147
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3437 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * re.c (rb_reg_initialize_m): unfotunate serious typo.matz2003-02-032-1/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3436 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * object.c (Init_Object): default Object#=== now calls "=="matz2003-02-036-41/+65
| | | | | | | | | | | | | | | | | | internally. * re.c (rb_reg_initialize_m): should honor option status of original regexp. * array.c (rb_ary_equal): ary2 should be T_ARRAY (no to_ary conversion). * array.c (rb_ary_eql): ditto. * string.c (rb_str_equal): str2 should be T_STRING (no to_str conversion). git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3435 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * re.c (rb_memsearch): a little improvement.nobu2003-02-032-12/+17
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3434 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* typonobu2003-02-031-3/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3433 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2003-02-03eban2003-02-031-4/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3432 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * re.c (rb_memsearch): algolithm body of String#index.matz2003-02-039-63/+108
| | | | | | | | | | | | | | | | * error.c (Init_Exception): "to_str" removed. * eval.c (eval): should not rely on Exception#to_str * eval.c (compile_error): ditto. * error.c (err_append): ditto. * hash.c (rb_hash_merge): Hash#merge, non destructive "update". now there's also Hash#merge! which is an alias to "update". git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3431 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Added RDoc comments. See comments at EOF for remaining issues.gsinclair2003-01-311-22/+230
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3430 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_str_index): search using Karp-Rabin algolithm.matz2003-01-312-2/+28
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3429 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * variable.c (rb_obj_classname): wrong tail recursion.nobu2003-01-311-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3428 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * variable.c (rb_obj_classname): new function.matz2003-01-3119-64/+92
| | | | | | | | | | | | * string.c (rb_str_dup): should preserve original's class (but not hidden singleton class). * string.c (rb_str_substr): ditto. * parse.y: backout EXPR_CMDARG removal. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3427 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * random.c (rb_f_rand): type fix.eban2003-01-312-4/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3426 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (yylex): remove EXPR_CMDARG according to the RHG book.matz2003-01-315-27/+31
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3425 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/optparse.rb (OptionParser::make_switch): NoArgument doesn'tnobu2003-01-312-5/+16
| | | | | | | override other styles. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3424 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/optparse.rb (OptionParser::List::accept): defaultnobu2003-01-302-1/+6
| | | | | | | pattern must not be nil. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3423 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2003-01-30eban2003-01-301-3/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3422 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/optparse.rb (OptionParser::Switch::PlacedArgument): added.nobu2003-01-302-24/+52
| | | | | | | | | | | | | if the next argument doesn't start with '-', use it as the value. * lib/optparse.rb (OptionParser::make_switch): fixed a bug of pattern. * lib/optparse.rb (Array): no need to guard. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3421 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * file.c (rb_file_s_expand_path): removed a sludge.nobu2003-01-292-2/+9
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3420 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * instruby.rb (parse_args), ext/extmk.rb (parse_args): Prepend aknu2003-01-273-33/+23
| | | | | | | | hyphen to the first argument of MAKEFLAGS only if appropriate. Remove wrong comments. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3419 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2003-01-27eban2003-01-271-3/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3418 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * error.c (get_syserror): use snprintf() instead of sprintf(). pointedusa2003-01-262-3/+9
| | | | | | | out by knu. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3417 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * error.c (get_syserror): some Windows' errno have 5 digits.usa2003-01-262-2/+6
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3416 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Update.knu2003-01-261-0/+9
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3415 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * instruby.rb ($mflags.set?): Check $make instead of $nmake, sinseusa2003-01-263-1/+11
| | | | | | | | | | there is no such a variable. * instruby.rb ($mflags.set?), ext/extmk.rb ($mflags.set?): Return false if unmatched. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3414 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/shellwords.rb: Embed rdoc style comments.knu2003-01-261-24/+36
| | | | | | | | | | * lib/shellwords.rb (shellwords): Use String#lstrip!. * lib/shellwords.rb (shellwords): Recognize an object that responds to to_str() by using String.new(). git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3413 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * instruby.rb (parse_args), ext/extmk.rb (parse_args): Detect -nknu2003-01-263-13/+38
| | | | | | | | and emulate a dry run. Use 'make' in case no --make argument is given. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3412 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * instruby.rb (makedirs): make same directory only once even ifnobu2003-01-252-3/+17
| | | | | | | dryrun. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3411 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * instruby.rb: re-define individual methods verbosely rather thannobu2003-01-251-0/+9
| | | | | | | | | | | including FileUtils::Verbose, in order to suppress messages from FileUtils#cmp. * lib/fileutils.rb (FileUtils::Verbose, FileUtils::NoWrite): re-define methods with define_method instead of module_eval. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3410 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* *** empty log message ***nobu2003-01-252-19/+23
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3409 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * instruby.rb, ext/extmk.rb, Makefile.in, win32/Makefile.sub,knu2003-01-256-58/+122
| | | | | | | | | | | | bcc32/Makefile.sub: Replace the complicated MFLAGS/MAKEFLAGS parser with something plain and comprehensible. This fixes a bug where make flags were wrongly reordered and the resulted command line often did not make sense especially when BSD make is used with extra arguments given. Tested with FreeBSD and Linux by me and mswin32, bccwin32 and mingw by usa. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3408 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Converted RD to RDoc and improved documentation. See comments at EOF.gsinclair2003-01-241-261/+321
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3407 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2003-01-24eban2003-01-241-3/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3406 b2dd03c8-39d4-4d8f-98ff-823fe69b080e