From b3c4e5348f02320789eac8eff5ec4128b5c5262b Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 2 Feb 2007 16:26:04 +0000 Subject: * 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: http://svn.ruby-lang.org/repos/ruby/trunk@11620 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- eval_error.h | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'eval_error.h') diff --git a/eval_error.h b/eval_error.h index 1239665ae..757204b15 100644 --- a/eval_error.h +++ b/eval_error.h @@ -203,37 +203,37 @@ error_handle(int ex) if (thread_set_raised(th)) return EXIT_FAILURE; switch (ex & TAG_MASK) { - case 0: + case 0: status = EXIT_SUCCESS; break; - case TAG_RETURN: + case TAG_RETURN: error_pos(); warn_print(": unexpected return\n"); break; - case TAG_NEXT: + case TAG_NEXT: error_pos(); warn_print(": unexpected next\n"); break; - case TAG_BREAK: + case TAG_BREAK: error_pos(); warn_print(": unexpected break\n"); break; - case TAG_REDO: + case TAG_REDO: error_pos(); warn_print(": unexpected redo\n"); break; - case TAG_RETRY: + case TAG_RETRY: error_pos(); warn_print(": retry outside of rescue clause\n"); break; - case TAG_THROW: - // TODO: fix me + case TAG_THROW: + /* TODO: fix me */ error_pos(); warn_printf(": unexpected throw\n"); break; - case TAG_RAISE: - case TAG_FATAL: + case TAG_RAISE: + case TAG_FATAL: if (rb_obj_is_kind_of(GET_THREAD()->errinfo, rb_eSystemExit)) { status = sysexit_status(GET_THREAD()->errinfo); } @@ -241,7 +241,7 @@ error_handle(int ex) error_print(); } break; - default: + default: rb_bug("Unknown longjmp status %d", ex); break; } -- cgit