summaryrefslogtreecommitdiff
path: root/eval.c
diff options
context:
space:
mode:
authorocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-09-14 08:30:16 +0000
committerocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-09-14 08:30:16 +0000
commitca32aea6a24d443434f1fa40b9091edc16ef03bf (patch)
treeb8c1a5df91b119f95dbccc89ce69e4fc09e7b40a /eval.c
parent6c32e232d90c3347dbb52366a378265f19022e38 (diff)
downloadruby-ca32aea6a24d443434f1fa40b9091edc16ef03bf.tar.gz
* dir.c: changed `foo (*bar)_((boo))' to `foo (*bar)(boo)`.
* enumerator.c, eval.c, gc.c, intern.h, io.c, process.c, ruby.c, ruby.h, signal.c: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9157 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/eval.c b/eval.c
index 2758cb8d30..43bed97690 100644
--- a/eval.c
+++ b/eval.c
@@ -1589,7 +1589,7 @@ rb_eval_string(const char *str)
VALUE
rb_eval_string_protect(const char *str, int *state)
{
- return rb_protect((VALUE (*)_((VALUE)))rb_eval_string, (VALUE)str, state);
+ return rb_protect((VALUE (*)(VALUE))rb_eval_string, (VALUE)str, state);
}
VALUE
@@ -8540,7 +8540,7 @@ block_pass(VALUE self, NODE *node)
struct block_arg arg;
arg.self = self;
arg.iter = node->nd_iter;
- return rb_block_pass((VALUE (*)_((VALUE)))call_block,
+ return rb_block_pass((VALUE (*)(VALUE))call_block,
(VALUE)&arg, rb_eval(self, node->nd_body));
}
@@ -9124,7 +9124,7 @@ rb_proc_new(
VALUE val)
{
struct BLOCK *data;
- VALUE proc = rb_iterate((VALUE(*)_((VALUE)))mproc, 0, func, val);
+ VALUE proc = rb_iterate((VALUE(*)(VALUE))mproc, 0, func, val);
Data_Get_Struct(proc, struct BLOCK, data);
data->body->nd_state = YIELD_FUNC_AVALUE;
@@ -9149,7 +9149,7 @@ method_proc(VALUE method)
if (nd_type(mdata->body) == NODE_BMETHOD) {
return mdata->body->nd_cval;
}
- proc = rb_iterate((VALUE(*)_((VALUE)))mproc, 0, bmcall, method);
+ proc = rb_iterate((VALUE(*)(VALUE))mproc, 0, bmcall, method);
Data_Get_Struct(proc, struct BLOCK, bdata);
bdata->body->nd_file = mdata->body->nd_file;
nd_set_line(bdata->body, nd_line(mdata->body));
@@ -10445,7 +10445,7 @@ rb_thread_schedule(void)
if (rb_trap_pending) {
int status;
- rb_protect((VALUE (*)_((VALUE)))rb_trap_exec, Qnil, &status);
+ rb_protect((VALUE (*)(VALUE))rb_trap_exec, Qnil, &status);
if (status) {
rb_fd_term(&readfds);
rb_fd_term(&writefds);
@@ -12825,7 +12825,7 @@ catch_i(VALUE tag)
VALUE
rb_catch(const char *tag, VALUE (*func) (/* ??? */), VALUE data)
{
- return rb_iterate((VALUE(*)_((VALUE)))catch_i, ID2SYM(rb_intern(tag)), func, data);
+ return rb_iterate((VALUE(*)(VALUE))catch_i, ID2SYM(rb_intern(tag)), func, data);
}
/*