1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* ext/dl/dl.c (rb_io_to_ptr): abolish sizeof(FILE).

[ruby-dev:27317]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9338 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2005-09-29 01:29:24 +00:00
parent c269ff0776
commit c54c781076
2 changed files with 5 additions and 4 deletions

View file

@ -1,3 +1,8 @@
Thu Sep 29 10:26:18 2005 Tanaka Akira <akr@m17n.org>
* ext/dl/dl.c (rb_io_to_ptr): abolish sizeof(FILE).
[ruby-dev:27317]
Thu Sep 29 07:22:05 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
* evalc. (rb_f_send): underscores need to be escaped.

View file

@ -557,11 +557,7 @@ rb_io_to_ptr(VALUE self)
GetOpenFile(self, fptr);
fp = fptr->f;
#if defined(__DragonFly__)
return fp ? rb_dlptr_new(fp, 0, 0) : Qnil;
#else
return fp ? rb_dlptr_new(fp, sizeof(FILE), 0) : Qnil;
#endif
}
VALUE