* file.c (rb_stat_inspect): protoized function pointer.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9251 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
ca829d5926
commit
c59306cccb
@ -1,8 +1,10 @@
|
|||||||
Tue Sep 20 21:26:23 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Tue Sep 20 22:25:43 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* ext/io/wait/lib/nonblock.rb: disable on platforms non-blocking flag
|
* ext/io/wait/lib/nonblock.rb: disable on platforms non-blocking flag
|
||||||
is not available. fixed: [ruby-dev:27187]
|
is not available. fixed: [ruby-dev:27187]
|
||||||
|
|
||||||
|
* file.c (rb_stat_inspect): protoized function pointer.
|
||||||
|
|
||||||
Tue Sep 20 18:23:04 2005 Tanaka Akira <akr@m17n.org>
|
Tue Sep 20 18:23:04 2005 Tanaka Akira <akr@m17n.org>
|
||||||
|
|
||||||
* eval.c (thread_mark): mark th->last_status. [ruby-dev:27179]
|
* eval.c (thread_mark): mark th->last_status. [ruby-dev:27179]
|
||||||
|
4
file.c
4
file.c
@ -544,7 +544,7 @@ rb_stat_inspect(VALUE self)
|
|||||||
int i;
|
int i;
|
||||||
static struct {
|
static struct {
|
||||||
char *name;
|
char *name;
|
||||||
VALUE (*func)();
|
VALUE (*func)(VALUE);
|
||||||
} member[] = {
|
} member[] = {
|
||||||
{"dev", rb_stat_dev},
|
{"dev", rb_stat_dev},
|
||||||
{"ino", rb_stat_ino},
|
{"ino", rb_stat_ino},
|
||||||
@ -4062,7 +4062,7 @@ rb_find_file(VALUE path)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
define_filetest_function(const char *name, VALUE (*func) (/* ??? */), int argc)
|
define_filetest_function(const char *name, VALUE (*func)(ANYARGS), int argc)
|
||||||
{
|
{
|
||||||
rb_define_module_function(rb_mFileTest, name, func, argc);
|
rb_define_module_function(rb_mFileTest, name, func, argc);
|
||||||
rb_define_singleton_method(rb_cFile, name, func, argc);
|
rb_define_singleton_method(rb_cFile, name, func, argc);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user