summaryrefslogtreecommitdiff
path: root/variable.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-03-19 03:20:24 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-03-19 03:20:24 +0000
commit1f904eed442f268d9f856aa25edbc7d7e906e6ae (patch)
treecbaec0fd2c96e995c07daf489fbb8f62782621c9 /variable.c
parentaa6fa0c75dff68dbe7a66b2fa1add778a050fb5d (diff)
* dir.c (glob_helper): replace lstat() by stat() to follow symlink
in the case like 'symlink/*'. * dir.c (glob_helper): gave warning too much. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1261 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'variable.c')
-rw-r--r--variable.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/variable.c b/variable.c
index 1c44c1c6d0..4f8ed302b7 100644
--- a/variable.c
+++ b/variable.c
@@ -266,7 +266,7 @@ rb_class2name(klass)
struct trace_var {
int removed;
void (*func)();
- void *data;
+ VALUE data;
struct trace_var *next;
};
@@ -362,7 +362,7 @@ val_setter(val, id, data, entry)
static void
val_marker(data)
- void *data;
+ VALUE data;
{
if (data) rb_gc_mark_maybe(data);
}
@@ -387,7 +387,7 @@ var_setter(val, id, var)
static void
var_marker(var)
- VALUE **var;
+ VALUE *var;
{
if (var) rb_gc_mark_maybe(*var);
}
@@ -514,7 +514,7 @@ rb_f_trace_var(argc, argv)
trace = ALLOC(struct trace_var);
trace->next = entry->trace;
trace->func = rb_trace_eval;
- trace->data = (void*)cmd;
+ trace->data = cmd;
trace->removed = 0;
entry->trace = trace;
@@ -576,7 +576,7 @@ rb_f_untrace_var(argc, argv)
}
else {
while (trace) {
- if (trace->data == (void*)cmd) {
+ if (trace->data == cmd) {
trace->removed = 1;
if (!entry->block_trace) remove_trace(entry);
return rb_ary_new3(1, cmd);