summaryrefslogtreecommitdiff
path: root/vm.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-02-02 16:26:04 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-02-02 16:26:04 +0000
commit205f310c2963edec5fabebdce6aaae076d8af5fb (patch)
tree976bf46e69ecae65480e30ccb403a60ae0ef9564 /vm.c
parentd08112a656c4715d509f2b2ac7e1e2199068eed6 (diff)
* call_cfunc.ci, compile.c, compile.h, debug.h, eval.c,
eval_error.h, eval_jump.h, eval_load.c, eval_thread.c, gc.c, insnhelper.h, insns.def, iseq.c, main.c, numeric.c, parse.y, range.c, regenc.h, ruby.h, signal.c, thread.c, thread_win32.ci, vm.c, vm.h, vm_dump.c, vm_evalbody.ci, yarvcore.c, yarvcore.h: fixed indents and non-C90 comments. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11620 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm.c')
-rw-r--r--vm.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/vm.c b/vm.c
index cdf61509e6..3da1f53486 100644
--- a/vm.c
+++ b/vm.c
@@ -639,7 +639,7 @@ th_yield_setup_args(yarv_iseq_t *iseq, int argc, VALUE *argv)
}
}
else {
- if (argc == 1 && TYPE(argv[0]) == T_ARRAY) {// && iseq->arg_rest == 0) {
+ if (argc == 1 && TYPE(argv[0]) == T_ARRAY /* && iseq->arg_rest == 0 */) {
VALUE ary = argv[0];
argc = RARRAY_LEN(ary);
@@ -965,11 +965,10 @@ check_svar(void)
yarv_thread_t *th = GET_THREAD();
yarv_control_frame_t *cfp = th->cfp;
while ((void *)(cfp + 1) < (void *)(th->stack + th->stack_size)) {
-// printf("cfp: %p\n", cfp->magic);
- if(cfp->lfp)
- if(cfp->lfp[-1] != Qnil &&
- TYPE(cfp->lfp[-1]) != T_VALUES){
-// dp(cfp->lfp[-1]);
+ /* printf("cfp: %p\n", cfp->magic); */
+ if (cfp->lfp && cfp->lfp[-1] != Qnil &&
+ TYPE(cfp->lfp[-1]) != T_VALUES) {
+ /* dp(cfp->lfp[-1]); */
rb_bug("!!!illegal svar!!!");
}
cfp++;