From 99d65b14b4ec3a546a28b6b17b3b4553eaf27b2f Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 5 Jun 2007 04:25:10 +0000 Subject: * compile.c, dir.c, eval.c, eval_jump.h, eval_method.h, numeric.c, pack.c, parse.y, re.c, thread.c, vm.c, vm_dump.c, call_cfunc.ci, thread_pthread.ci, thread_win32.ci: fixed indentation. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12431 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- eval_jump.h | 46 +++++++++++++++++++++++----------------------- 1 file changed, 23 insertions(+), 23 deletions(-) (limited to 'eval_jump.h') diff --git a/eval_jump.h b/eval_jump.h index 331bdbf6b1..ff45080178 100644 --- a/eval_jump.h +++ b/eval_jump.h @@ -9,7 +9,7 @@ NORETURN(static VALUE rb_f_throw _((int, VALUE *))); /* * call-seq: * throw(symbol [, obj]) - * + * * Transfers control to the end of the active +catch+ block * waiting for _symbol_. Raises +NameError+ if there * is no +catch+ block for the symbol. The optional second @@ -61,7 +61,7 @@ rb_throw(const char *tag, VALUE val) /* * call-seq: * catch(symbol) {| | block } > obj - * + * * +catch+ executes its block. If a +throw+ is * executed, Ruby searches up its stack for a +catch+ block * with a tag corresponding to the +throw+'s @@ -71,18 +71,18 @@ rb_throw(const char *tag, VALUE val) * the value of +catch+ is the value of the last expression * evaluated. +catch+ expressions may be nested, and the * +throw+ call need not be in lexical scope. - * + * * def routine(n) * puts n * throw :done if n <= 0 * routine(n-1) * end - * - * + * + * * catch(:done) { routine(3) } - * + * * produces: - * + * * 3 * 2 * 1 @@ -162,12 +162,12 @@ rb_exit(int status) * exit(integer=0) * Kernel::exit(integer=0) * Process::exit(integer=0) - * + * * Initiates the termination of the Ruby script by raising the * SystemExit exception. This exception may be caught. The * optional parameter is used to return a status code to the invoking * environment. - * + * * begin * exit * puts "never get here" @@ -175,22 +175,22 @@ rb_exit(int status) * puts "rescued a SystemExit exception" * end * puts "after begin block" - * + * * produces: - * + * * rescued a SystemExit exception * after begin block - * + * * Just prior to termination, Ruby executes any at_exit functions * (see Kernel::at_exit) and runs any object finalizers (see * ObjectSpace::define_finalizer). - * + * * at_exit { puts "at_exit function" } * ObjectSpace.define_finalizer("string", proc { puts "in finalizer" }) * exit - * + * * produces: - * + * * at_exit function * in finalizer */ @@ -204,13 +204,13 @@ rb_f_exit(int argc, VALUE *argv) rb_secure(4); if (rb_scan_args(argc, argv, "01", &status) == 1) { switch (status) { - case Qtrue: + case Qtrue: istatus = EXIT_SUCCESS; break; - case Qfalse: + case Qfalse: istatus = EXIT_FAILURE; break; - default: + default: istatus = NUM2INT(status); #if EXIT_SUCCESS != 0 if (istatus == 0) @@ -232,7 +232,7 @@ rb_f_exit(int argc, VALUE *argv) * abort * Kernel::abort * Process::abort - * + * * Terminate execution immediately, effectively by calling * Kernel.exit(1). If _msg_ is given, it is written * to STDERR prior to terminating. @@ -272,21 +272,21 @@ call_end_proc(VALUE data) /* * call-seq: * at_exit { block } -> proc - * + * * Converts _block_ to a +Proc+ object (and therefore * binds it at the point of call) and registers it for execution when * the program exits. If multiple handlers are registered, they are * executed in reverse order of registration. - * + * * def do_at_exit(str1) * at_exit { print str1 } * end * at_exit { puts "cruel world" } * do_at_exit("goodbye ") * exit - * + * * produces: - * + * * goodbye cruel world */ -- cgit v1.2.3