summaryrefslogtreecommitdiff
path: root/eval_error.h
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 /eval_error.h
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 'eval_error.h')
-rw-r--r--eval_error.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/eval_error.h b/eval_error.h
index 1239665ae9..757204b15f 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;
}