From: kjana@... (YANAGAWA Kazuhisa) Date: 2001-07-12T22:29:52+09:00 Subject: [ruby-talk:17718] Re: IO in a Ruby extension In message <200107111709.f6BH90027067@moulon.inra.fr> decoux@moulon.inra.fr writes: > Now in rubyio.h (snip) > FILE *fd = RFILE(io)->fptr->f; > > where `io' is the object created by File::new And you missed useful macros defined in rubyio.h? :-P OpenFile *fptr; FILE *fp; GetOpenFile(io, fptr); fp = GetReadFile(fptr); ....well it's pretty long and redundant, but somewhat `official' and usable sound way. -- kjana@os.xaxon.ne.jp July 12, 2001 Time is illusion, life is confusion.