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:
parent
c269ff0776
commit
c54c781076
2 changed files with 5 additions and 4 deletions
|
@ -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>
|
Thu Sep 29 07:22:05 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* evalc. (rb_f_send): underscores need to be escaped.
|
* evalc. (rb_f_send): underscores need to be escaped.
|
||||||
|
|
|
@ -557,11 +557,7 @@ rb_io_to_ptr(VALUE self)
|
||||||
GetOpenFile(self, fptr);
|
GetOpenFile(self, fptr);
|
||||||
fp = fptr->f;
|
fp = fptr->f;
|
||||||
|
|
||||||
#if defined(__DragonFly__)
|
|
||||||
return fp ? rb_dlptr_new(fp, 0, 0) : Qnil;
|
return fp ? rb_dlptr_new(fp, 0, 0) : Qnil;
|
||||||
#else
|
|
||||||
return fp ? rb_dlptr_new(fp, sizeof(FILE), 0) : Qnil;
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
VALUE
|
VALUE
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue