summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* * configure.in (ac_cv_header_ucontext_h): do not use ucontext.h on Macnobu2008-12-162-1/+6
| | | | | | | OS X 10.5 or later. merged from MacPorts. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20773 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dln.c (dln_load): ditto.usa2008-12-162-2/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20772 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ruby.c (set_arg0): use strlcpy() instead of strncpy().usa2008-12-163-3/+8
| | | | | | | | * load.c (rb_feature_p): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20771 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (block_call): block should not be given to yield.matz2008-12-162-1/+11
| | | | | | [ruby-core:20583] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20770 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Removed json/runner.rb with permission from florian frank. it was serving no ↵ryan2008-12-151-25/+0
| | | | | | purpose git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20769 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2008-12-16svn2008-12-151-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20768 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add tests.akr2008-12-151-0/+60
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20767 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * thread.c (sleep_timeval): cast tv_usec to long to shut upmatz2008-12-152-2/+7
| | | | | | warnings on OSX. [ruby-dev:37449] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20766 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ruby.c (process_options): revive global sub, gsub, chop, chompmatz2008-12-152-0/+104
| | | | | | | only when auto looping options (-p/-n) is specified. [ruby-core:20570] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20765 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/pty/pty.c (pty_open): set FMODE_SYNC and FMODE_DUPLEX.akr2008-12-152-2/+6
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20763 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/pty/pty.c (pty_open): new method PTY.open.akr2008-12-152-0/+66
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20761 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/pty/pty.c (get_device_once): use DEVICELEN instead ofakr2008-12-153-7/+8
| | | | | | | | sizeof SlaveName. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20759 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/pty/pty.c (chfunc): make it static.akr2008-12-152-1/+6
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20758 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/pty/pty.c (child_info): add slavename.akr2008-12-152-1/+9
| | | | | | | | (chfunc): use slavename. (establishShell): set slavename. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20757 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk (EXTMK_ARGS): shouldn't use ``\"'' because cmd.exe eatusa2008-12-152-1/+6
| | | | | | | | ''\'' in such quotes. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20756 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* properties.nobu2008-12-150-0/+0
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20755 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/Makefile.sub (config.h): define CANONICALIZATION_FOR_MATHNusa2008-12-152-0/+6
| | | | | | | | to follow r20683. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20754 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rake/packagetask.rb (Rake::PackageTask): small documentmatz2008-12-152-3/+6
| | | | | | update from okkez in [ruby-dev:37443] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20751 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ChangeLog reformattedmatz2008-12-151-39/+20
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20750 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ChangeLog: fixed typo.nobu2008-12-151-2/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20749 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_insnhelper.c (vm_callee_setup_arg_complex): uses cfp fromnobu2008-12-153-1/+25
| | | | | | | blockptr instead of the current cfp. [ruby-core:20544] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20748 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_metaclass.rb: new test case for metaclass hierarchy.yugui2008-12-153-20/+232
| | | | | | | | | | | | | | | | | | | | * class.c (make_metametaclass): new function. extracted from rb_make_metaclass. * class.c (rb_make_metaclass): uses make_metametaclass when called for a metaclass. * class.c (rb_singleton_class): creates a meta^(n+2)-class in addition to a meta^(n+1)-class when called for a meta^(n)-class. This is because the returned meta^(n+1) class must acts as an instance of Class, metaclass of Class, ..., meta^(n+1)-class of Class, Module, metaclass of Module, ..., meta^(n+1)-class of Module, Object, metaclass of Object, ..., meta^(n+2)-class of Object, BasicObject, metaclass of BasicObject, ..., meta^(n+2)-class of and BasicObject even when Class, Module, Object or BasicObject has not have its meta^(i)-class yet. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20747 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * id.h, template/id.h.tmpl (ruby_method_ids): sees YYTOKENTYPE too.nobu2008-12-153-2/+7
| | | | | | | [ruby-dev:37436] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20746 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk (EXTMK_ARGS): needs MINIRUBY for cross-compile.nobu2008-12-152-1/+7
| | | | | | | [ruby-core:20131] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20745 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_eval.c (vm_call0): NODE_ZSUPER supported. [ruby-core:20480]nobu2008-12-152-1/+14
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20744 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_eval.c (vm_call_super): uses method_missing().nobu2008-12-153-38/+38
| | | | | | | | | | | | | | | * vm_eval.c (method_missing): get rid of too large alloca. * vm_eval.c (rb_call0, method_missing): uses idMethodMissing. * vm_method.c (rb_add_method, remove_method, rb_undef): uses id__send__. * vm_method.c (Init_eval_method): removed IDs which are defined as immediate values. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20743 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm.c (vm_backtrace): defaults to script name for C functions.nobu2008-12-152-1/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20742 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ruby.c (rubylib_mangled_path, rubylib_mangled_path2): cannot usenobu2008-12-152-12/+38
| | | | | | | | | | | | | locale encoding before load path is initialized * ruby.c (ruby_init_loadpath_safe): ditto. * ruby.c (process_options): loads encdb so that encodings can be loaded, then associates script name and load paths with the locale encoding. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20741 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk (btest-ruby): use RUNRUBY instead of MINIRUBY to load thenobu2008-12-153-3/+8
| | | | | | | shared library. [Bug #849] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20740 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bignum.c (bigmul1_karatsuba): remove temporal bignum.mame2008-12-142-54/+38
| | | | | | | | | | | * bignum.c (bigsqr): call bigmul0(x, x) because it is faster than the original bigsqr at this point. * bignum.c (rb_big_pow): a value returned from bigsqr is already truncated. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20739 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bignum.c (bigmul1_karatsuba): fix comment and refactoring.mame2008-12-142-4/+8
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20738 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bignum.c (bigmul1_balance, bigmul1_karatsuba): remove allmame2008-12-142-10/+5
| | | | | | | rb_gc_force_recycle which causes memory leak. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20737 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ChangeLog: fix Japanese date. Sorry.mame2008-12-141-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20736 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * spec/README: directory structrue changedyugui2008-12-142-18/+28
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20735 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ChangeLog: add a reference.mame2008-12-141-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bignum.c (rb_big_mul): faster multiplication by Karatsuba method andmame2008-12-144-68/+366
| | | | | | | | | | | twice faster square than normal multiplication. * random.c (rb_rand_internal): used by Bignum#*. * test/ruby/test_bignum.rb: add some tests for above. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20733 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* new file.akr2008-12-141-0/+46
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20732 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* reverts r20713yugui2008-12-142-6/+6
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20731 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* properties.nobu2008-12-130-0/+0
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20728 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2008-12-14svn2008-12-131-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20727 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (forked_child): new variable.akr2008-12-133-62/+100
| | | | | | | | | | | | | | | | (before_exec): don't call rb_thread_stop_timer_thread if forked_child. (after_exec): reset forked_child after rb_thread_start_timer_thread. (rb_fork): set forked_child just after fork in child. * ext/pty/pty.c (chfunc): extracted from establishShell. (establishShell): use rb_fork. [ruby-dev:37418] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20726 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk (help): describes more targets.yugui2008-12-132-8/+24
| | | | | | | based on a patch by Michael Klishin. [ruby-core:20523]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20725 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (sym_printable): wrong condition for string iteration.matz2008-12-132-4/+7
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20724 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (sym_inspect): quote if symbol contains non-printablematz2008-12-132-1/+18
| | | | | | characters. [ruby-dev:37398] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20723 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (sym_equal): remove documentation error "Otherwise,matz2008-12-132-2/+6
| | | | | | compares them as strings". [ruby-dev:37398] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20722 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * encoding.c (default_external): endless recursion duringyugui2008-12-132-1/+7
| | | | | | | | loading a locale encoding on some locale. fixed by Nobuyuki Nakada. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20721 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ruby.c (process_options): fixed default_internal is nil.kouji2008-12-132-1/+6
| | | | | | | (closes #862) git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20720 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/enc/test_utf16.rb: feature changed in r20626.yugui2008-12-132-1/+6
| | | | | | | follows it. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20719 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_m17n_comb.rb: feature changed in r20626.yugui2008-12-132-3/+12
| | | | | | | follows it. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20718 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * complex.c: use rb_usascii_str_new2 instead of rb_str_new2.tadf2008-12-133-11/+17
| | | | | | | | * rational.c: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20715 b2dd03c8-39d4-4d8f-98ff-823fe69b080e