summaryrefslogtreecommitdiff
path: root/eval.c
Commit message (Collapse)AuthorAgeFilesLines
* merge revision(s) 16514:shyouhei2008-06-161-4/+9
| | | | | | | | | * proc.c (proc_dup): should copy safe_level from src proc properly. a patch from Keita Yamaguchi <keita.yamaguchi at gmail.com> git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_5@17357 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merge revision(s) 16564:shyouhei2008-06-151-1/+1
| | | | | | | | * marshal.c (reentrant_check): check reentrance via callcc. [ruby-dev:34802] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_5@17317 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merge revision(s) 16385:shyouhei2008-06-151-0/+2
| | | | | | | | * eval.c (is_defined): add NODE_OP_ASGN_{OR,AND}. "defined?(a||=1)" should not operate assignment. [ruby-dev:34645] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_5@17292 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merge revision(s) 15054:shyouhei2008-06-091-4/+5
| | | | | | | * eval.c (eval): check if backtrace is empty. [ruby-core:15040] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_5@17047 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merge revision(s) 15005:shyouhei2008-06-071-2/+3
| | | | | | | | * eval.c (rb_define_alloc_func, rb_undef_alloc_func): should define/undef on a signleton class. [ruby-core:09959] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_5@17012 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merge revision(s) 14086:shyouhei2008-06-071-1/+2
| | | | | | | | * eval.c (error_print): put newline unless multiple line message ends with a newline. [ruby-dev:32429] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_5@16968 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merge revision(s) 13957:shyouhei2008-06-071-0/+3
| | | | | | | | * eval.c (rb_alias): do not call hook functions until initialization finishes. [ruby-talk:279538] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_5@16949 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merge revision(s) 13586:shyouhei2008-06-041-2/+7
| | | | | | | | * eval.c (remove_method): should not remove undef place holder. [ruby-dev:31817] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_5@16814 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (mnew): should preserve noex as safe_level.shyouhei2007-09-071-2/+2
| | | | | | | * eval.c (rb_call0): tighten security check condition.. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_5@13369 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (get_backtrace): check the result more.shyouhei2007-08-151-1/+3
| | | | | | | [ruby-dev:31261] [ruby-bugs-12398] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_5@13024 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (method_inspect): show proper class name.shyouhei2007-06-071-1/+5
| | | | | | | [ruby-talk:248647], Thanks Calamitas. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_5@12461 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (mnew): call of super via a method object should work again.shyouhei2007-05-261-1/+0
| | | | | | | | | | [ruby-talk:248647], Thanks Calamitas. * test/ruby/test_method.rb (TestMethod::test_method_super): test for above fix. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_5@12393 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merge -c 12187shyouhei2007-05-221-2/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_5@12320 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * merge -c 11972shyouhei2007-03-081-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_5@12016 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * merge -c 11965shyouhei2007-03-081-1/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_5@12013 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * removed svn:keywords for compatibility.shugo2007-01-311-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_5@11599 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (dyna_var_lookup): should not alter dvar->val not toshyouhei2007-01-271-1/+0
| | | | | | | | | | destroy living value. [ruby-core:10076] * parse.y (dyna_init): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_5@11583 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dln.c, eval.c, gc.c, regex.c, ruby.h: shut up AIX allocamatz2006-08-071-3/+1
| | | | | | | warning. [ruby-dev:29191] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10694 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (Init_Binding): fix old commit miss.nobu2006-08-011-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10653 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ruby.h: use ifdef (or defined) for macro constants that may ormatz2006-07-311-1/+1
| | | | | | | | may not be defined to shut up gcc's -Wundef warnings. [ruby-core:08447] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10648 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (rb_call0): trace call/return of method defined from block.nobu2006-07-301-0/+8
| | | | | | | fixed: [ruby-core:08329] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10644 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (rb_trap_eval): make the current thread runnable to deal withnobu2006-07-301-0/+1
| | | | | | | exceptions which occurred within the trap. fixed: [ruby-dev:27729] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10641 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (backtrace): skip frames successive on node and method name.nobu2006-07-241-2/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10593 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (rb_call0): revert last change. [ruby-dev:29112]matz2006-07-241-1/+1
| | | | | | | [ruby-core:08374] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10586 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (rb_call0): include funcalled methods in caller list.nobu2006-07-211-0/+1
| | | | | | | fixed: [ruby-core:08290] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10581 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ruby.h: export classes/modules to implement sandbox.matz2006-07-201-5/+5
| | | | | | | [ruby-core:08283] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10573 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (rb_require_safe): wait for another thread requiring the samenobu2006-07-151-2/+2
| | | | | | | feature. fixed: [ruby-core:08229] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10539 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (rb_ary_pop): may cause realloc oscillation. a patchmatz2006-07-131-1/+2
| | | | | | | | | | | | | | | | | | | from MORITA Naoyuki <mlgetter at kidou.sakura.ne.jp>. [ruby-dev:29028] * parse.y (then): we'd like to reserve colon here for the future. warning added. * ruby.h: export rb_cMethod. [ruby-talk:201259] * ext/bigdecimal/bigdecimal.c: Allows '_' to appear within digits. [ruby-dev:28872] * ext/bigdecimal/lib/bigdecimal/util.rb: Bug in to_r reported by [ruby-list:42533] fixed. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10526 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * signal.c (ruby_nativethread_signal, posix_nativethread_signal,nagai2006-07-101-0/+9
| | | | | | | | | | | | sigsend_to_ruby_thread, install_nativethread_sighandler): nativethread-support on signal handler. RE-backport from 1.9. * ruby.h (HAVE_NATIVETHREAD_KILL): ditto. * eval.c (ruby_native_thread_kill): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10502 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (rb_clear_cache_for_undef): clear entries for includednobu2006-07-101-1/+2
| | | | | | | module. fixed: [ruby-core:08180] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10495 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (next_jump): deal with destination of next.nobu2006-07-081-3/+28
| | | | | | | fixed: [ruby-core:08169] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10488 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * util.c (powersOf10): constified.nobu2006-06-261-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10401 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * signal.c: revert last change.nagai2006-06-231-9/+0
| | | | | | | | * ruby.h: ditto. * eval.c: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10373 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * signal.c (ruby_nativethread_signal, posix_nativethread_signal,nagai2006-06-211-0/+9
| | | | | | | | | | | | sigsend_to_ruby_thread, install_nativethread_sighandler): nativethread-support on signal handler (backport from 1.9). * ruby.h (HAVE_NATIVETHREAD_KILL): ditto. * eval.c (ruby_native_thread_kill): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10359 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (rb_call0): binding for the return event hook should havematz2006-06-071-7/+12
| | | | | | | | | | | consistent scope. [ruby-core:07928] * eval.c (EXEC_EVENT_HOOK): trace_func may remove itself from event_hooks. no guarantee for arbitrary hook deletion. [ruby-dev:28632] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10221 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (umethod_bind): should not update original class.matz2006-05-221-3/+2
| | | | | | | [ruby-dev:28636] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10171 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (ev_const_get): should support constant access frommatz2006-05-221-1/+1
| | | | | | | within instance_eval(). [ruby-dev:28327] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10169 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (arg): too much NEW_LIST()matz2006-04-191-4/+4
| | | | | | | * eval.c (SETUP_ARGS0): remove unnecessary access to nd_alen. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10101 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (rb_eval): use ARGSCAT for NODE_OP_ASGN1.matz2006-04-191-16/+15
| | | | | | | | | | | | | | | | | [ruby-dev:28585] * parse.y (list_concat): revert last change. * parse.y (arg): use NODE_ARGSCAT for placeholder. * lib/getoptlong.rb (GetoptLong::get): RDoc update patch from mathew <meta at pobox.com>. [ruby-core:07738] * variable.c (rb_const_set): raise error when no target klass is supplied. [ruby-dev:28582] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10100 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c: block_unique should be 1, not frame_unique.matz2006-04-171-2/+2
| | | | | | | [ruby-dev:28577] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10094 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (backtrace): reports aliased method names in a generatedmatz2006-03-281-8/+10
| | | | | | | | | | | | | | | | | backtrace. a patch from "U.Nakamura" <usa at garbagecollect.jp>. [ruby-dev:28471] * eval.c (rb_call0): insecure calling should be checked for non NODE_SCOPE method invocations too. * eval.c (rb_alias): should preserve the current safe level as well as method definition. * eval.c (yield_under_i): pass self again for instance_eval(). [ruby-dev:28466] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10063 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (method_missing): should support argument splat inmatz2006-03-231-3/+14
| | | | | | | super. [ruby-talk:185438] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10047 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rdoc/ri/ri_paths.rb (RI::Paths): adding paths from rubygemsmatz2006-03-031-0/+1
| | | | | | | | | | | directories. a patch from Eric Hodel <drbrain at segment7.net>. [ruby-core:07423] * eval.c (rb_thread_fd_writable): should not re-schedule output from KILLED thread (must be error printing). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10020 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (SETUP_ARGS0): fixed memory corruption. [ruby-dev:28360]ocean2006-02-231-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9985 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rational.rb (Integer::gcd): replaced by gcd4 inmatz2006-02-201-1/+1
| | | | | | | | | | [ruby-core:07390]. [ruby-core:07377] * eval.c: initial value for block_unique must be 1. [ruby-talk:180420] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9965 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (rb_thread_wait_for): sleep should always sleep formatz2006-02-171-1/+1
| | | | | | | specified amount of time. [ruby-talk:180067] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9944 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (backtrace): frame->orig_func may not be initialized.matz2006-02-151-7/+6
| | | | | | | [ruby-core:07367] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9942 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (rb_eval): NODE_OP_ASGN1 should allow splat in itsmatz2006-02-151-25/+26
| | | | | | | | | | | | | argument list. [ruby-core:07366] * parse.y (arg): avoid unnecessary extra argument. [ruby-core:07366] * eval.c (rb_eval): honor visibility on OP_ASGN1 and OP_ASGN2. [ruby-core:07366] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9941 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (yield_under_i): should not pass self as an argument tomatz2006-02-151-1/+1
| | | | | | | the block for instance_eval. [ruby-core:07364] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9937 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (rb_obj_instance_eval): should no singleton classes formatz2006-02-151-1/+1
| | | | | | | true, false, and nil. [ruby-dev:28186] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9936 b2dd03c8-39d4-4d8f-98ff-823fe69b080e