diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-03-19 03:20:24 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-03-19 03:20:24 +0000 |
| commit | 5ab2b8a553950333ff98642a4e4c8d8d3d87f4b8 (patch) | |
| tree | cbaec0fd2c96e995c07daf489fbb8f62782621c9 /variable.c | |
| parent | d97ac4405eb23ce98c49de5f1fd486755aa6a503 (diff) | |
| download | ruby-5ab2b8a553950333ff98642a4e4c8d8d3d87f4b8.tar.gz ruby-5ab2b8a553950333ff98642a4e4c8d8d3d87f4b8.tar.xz ruby-5ab2b8a553950333ff98642a4e4c8d8d3d87f4b8.zip | |
* 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: http://svn.ruby-lang.org/repos/ruby/trunk@1261 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'variable.c')
| -rw-r--r-- | variable.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/variable.c b/variable.c index 1c44c1c6d..4f8ed302b 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); |
