ruby-changes:4265
From: ko1@a...
Date: Wed, 12 Mar 2008 12:53:00 +0900 (JST)
Subject: [ruby-changes:4265] nobu - Ruby:r15755 (trunk): * gc.c: fixed indent.
nobu 2008-03-12 12:52:52 +0900 (Wed, 12 Mar 2008)
New Revision: 15755
Modified files:
trunk/gc.c
Log:
* gc.c: fixed indent.
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/gc.c?r1=15755&r2=15754&diff_format=u
Index: gc.c
===================================================================
--- gc.c (revision 15754)
+++ gc.c (revision 15755)
@@ -190,7 +190,8 @@
void
rb_memerror(void)
{
- static int recurse = 0;
+ static int recurse = 0;
+
if (!nomem_error || (recurse > 0 && rb_safe_level() < 4)) {
fprintf(stderr, "[FATAL] failed to allocate memory\n");
exit(1);
@@ -616,11 +617,11 @@
static int
stack_grow_direction(VALUE *addr)
{
- rb_thread_t *th = GET_THREAD();
- SET_STACK_END;
+ rb_thread_t *th = GET_THREAD();
+ SET_STACK_END;
- if (STACK_END > addr) return grow_direction = 1;
- return grow_direction = -1;
+ if (STACK_END > addr) return grow_direction = 1;
+ return grow_direction = -1;
}
# define stack_growup_p(x) ((grow_direction ? grow_direction : stack_grow_direction(x)) > 0)
# define STACK_UPPER(x, a, b) (stack_growup_p(x) ? a : b)
@@ -631,10 +632,10 @@
int
ruby_stack_length(VALUE **p)
{
- rb_thread_t *th = GET_THREAD();
- SET_STACK_END;
- if (p) *p = STACK_UPPER(STACK_END, STACK_START, STACK_END);
- return STACK_LENGTH;
+ rb_thread_t *th = GET_THREAD();
+ SET_STACK_END;
+ if (p) *p = STACK_UPPER(STACK_END, STACK_START, STACK_END);
+ return STACK_LENGTH;
}
int
--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/