summaryrefslogtreecommitdiff
path: root/thread.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-21 20:58:26 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-21 20:58:26 +0000
commitfe1ce93f52827f59c069247a6e5998c3a5f907b8 (patch)
treedc68c377c5347844138e9aa22610ee815677a7a4 /thread.c
parent2c34b66e24f1992e2ceca0b8a8f3d710f05f21ae (diff)
* compile.c, cont.c, gc.c, insns.def, iseq.c, iseq.h, process.c,
thread.c, vm.c, vm_core.h, vm_dump.c, vm_eval.c, vm_insnhelper.c, vm_method.c, template/insns_info.inc.tmpl, tool/instruction.rb: fixed types. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25030 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/thread.c b/thread.c
index caa9913374..adaaa8ebee 100644
--- a/thread.c
+++ b/thread.c
@@ -2528,7 +2528,7 @@ int
rb_thread_fd_writable(int fd)
{
rb_thread_wait_fd_rw(fd, 0);
- return Qtrue;
+ return TRUE;
}
int
@@ -3537,7 +3537,7 @@ exec_recursive_i(VALUE tag, struct exec_recursive_params *p)
recursive_push(p->list, p->objid, p->pairid);
PUSH_TAG();
if ((state = EXEC_TAG()) == 0) {
- result = (*p->func) (p->obj, p->arg, Qfalse);
+ result = (*p->func)(p->obj, p->arg, FALSE);
}
POP_TAG();
recursive_pop(p->list, p->objid, p->pairid);
@@ -3570,7 +3570,7 @@ exec_recursive(VALUE (*func) (VALUE, VALUE, int), VALUE obj, VALUE pairid, VALUE
if (outer && !outermost) {
rb_throw_obj(p.list, p.list);
}
- return (*func) (obj, arg, Qtrue);
+ return (*func)(obj, arg, TRUE);
}
else {
VALUE result = Qundef;
@@ -3584,7 +3584,7 @@ exec_recursive(VALUE (*func) (VALUE, VALUE, int), VALUE obj, VALUE pairid, VALUE
result = rb_catch_obj(p.list, exec_recursive_i, (VALUE)&p);
recursive_pop(p.list, ID2SYM(recursive_key), 0);
if (result == p.list) {
- result = (*func) (obj, arg, Qtrue);
+ result = (*func)(obj, arg, TRUE);
}
}
else {
@@ -4004,7 +4004,7 @@ call_trace_func(rb_event_flag_t event, VALUE proc, VALUE self, ID id, VALUE klas
args.self = self;
args.id = id;
args.klass = klass;
- ruby_suppress_tracing(call_trace_proc, (VALUE)&args, Qfalse);
+ ruby_suppress_tracing(call_trace_proc, (VALUE)&args, FALSE);
}
VALUE
@@ -4170,7 +4170,7 @@ ruby_native_thread_p(void)
{
rb_thread_t *th = ruby_thread_from_native();
- return th ? Qtrue : Qfalse;
+ return th != 0;
}
static int