mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* cont.c: parenthesize macro arguments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30106 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
0298916292
commit
75877a30a4
2 changed files with 9 additions and 5 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
Sun Dec 5 10:32:11 2010 Tanaka Akira <akr@fsij.org>
|
||||||
|
|
||||||
|
* cont.c: parenthesize macro arguments.
|
||||||
|
|
||||||
Tue Dec 7 00:27:14 2010 Masaya Tarui <tarui@ruby-lnag.org>
|
Tue Dec 7 00:27:14 2010 Masaya Tarui <tarui@ruby-lnag.org>
|
||||||
|
|
||||||
* win32/win32.c (rb_w32_read): fixed more for readline,
|
* win32/win32.c (rb_w32_read): fixed more for readline,
|
||||||
|
|
10
cont.c
10
cont.c
|
@ -116,18 +116,18 @@ static VALUE rb_cFiber;
|
||||||
static VALUE rb_eFiberError;
|
static VALUE rb_eFiberError;
|
||||||
|
|
||||||
#define GetContPtr(obj, ptr) \
|
#define GetContPtr(obj, ptr) \
|
||||||
TypedData_Get_Struct(obj, rb_context_t, &cont_data_type, ptr)
|
TypedData_Get_Struct((obj), rb_context_t, &cont_data_type, (ptr))
|
||||||
|
|
||||||
#define GetFiberPtr(obj, ptr) do {\
|
#define GetFiberPtr(obj, ptr) do {\
|
||||||
TypedData_Get_Struct(obj, rb_fiber_t, &fiber_data_type, ptr); \
|
TypedData_Get_Struct((obj), rb_fiber_t, &fiber_data_type, (ptr)); \
|
||||||
if (!ptr) rb_raise(rb_eFiberError, "uninitialized fiber"); \
|
if (!(ptr)) rb_raise(rb_eFiberError, "uninitialized fiber"); \
|
||||||
} while(0)
|
} while(0)
|
||||||
|
|
||||||
NOINLINE(static VALUE cont_capture(volatile int *stat));
|
NOINLINE(static VALUE cont_capture(volatile int *stat));
|
||||||
|
|
||||||
void rb_thread_mark(rb_thread_t *th);
|
void rb_thread_mark(rb_thread_t *th);
|
||||||
#define THREAD_MUST_BE_RUNNING(th) do { \
|
#define THREAD_MUST_BE_RUNNING(th) do { \
|
||||||
if (!th->tag) rb_raise(rb_eThreadError, "not running thread"); \
|
if (!(th)->tag) rb_raise(rb_eThreadError, "not running thread"); \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -746,7 +746,7 @@ cont_restore_0(rb_context_t *cont, VALUE *addr_in_prev_frame)
|
||||||
cont_restore_1(cont);
|
cont_restore_1(cont);
|
||||||
}
|
}
|
||||||
#ifdef __ia64
|
#ifdef __ia64
|
||||||
#define cont_restore_0(cont, vp) register_stack_extend(cont, vp, (VALUE*)rb_ia64_bsp());
|
#define cont_restore_0(cont, vp) register_stack_extend((cont), (vp), (VALUE*)rb_ia64_bsp());
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Add table
Reference in a new issue